Jump to content

Accessing a layers linetype name?


btraemoore

Recommended Posts

From what i am reading, it takes some work to access a layers linetype name (LineTypeTableRecord.name). Is there another way around this? Is there a way to access the linetype name from within the layer in question?

Link to comment
Share on other sites

i figured it out, i was just not thinking the right way..

 

LinetypeTableRecord Ltype = (LinetypeTableRecord)curTrans.GetObject(
					curLayer.LinetypeObjectId,OpenMode.ForRead
			        );
newRow["LINETYPE"] = Ltype.Name;

Link to comment
Share on other sites

i figured it out, i was just not thinking the right way..

 

LinetypeTableRecord Ltype = (LinetypeTableRecord)curTrans.GetObject(
					curLayer.LinetypeObjectId,OpenMode.ForRead
			        );
newRow["LINETYPE"] = Ltype.Name;

 

I should hope so... That's exactly what Viru did in his code sample in the above referenced article (get the Name Property of the LinetypeTableRecord Object).

 

Glad you got it sorted.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...