Load linetype with textstyle

Load linetype with textstyle

fieldguy
Advisor Advisor
591 Views
2 Replies
Message 1 of 3

Load linetype with textstyle

fieldguy
Advisor
Advisor

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 "[]"?

0 Likes
Accepted solutions (1)
592 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

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



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 3

fieldguy
Advisor
Advisor

Thank you - I should have dug a little deeper.

There is an example >>here<<

0 Likes