.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load linetype with textstyle

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
fieldguy
399 Views, 2 Replies

Load linetype with textstyle

I have found several posts on how to load a line type. But, now I need to know if the line type definition uses a text style, and if it does, I need to load it before I can load the line type.

Is there a way to determine if the line type definition includes a text style and it's name?  

Maybe I have to read the .lin file as text and check each line for "[]"?

2 REPLIES 2
Message 2 of 3
_gile
in reply to: fieldguy

Hi,

 

The LinetypeTableRecord.ShapeStyleAt() method returns the ObjectId of the TextStyleTableRecord of the text if any.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3
fieldguy
in reply to: _gile

Thank you - I should have dug a little deeper.

There is an example >>here<<

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta