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

How to change DBtext style by the StyleName

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
HelloWorlddd
642 Views, 2 Replies

How to change DBtext style by the StyleName

I think I need to get a textStyleId at first, but how to return a textStyleID by the textStyleName. Because textStyleName property is read-only and it can not be assigned.

 

For example: I just want to change a DBtext style to STD70, this is a new Style create by me.

 

Thanks for any help very

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

Hi,

 

You can get the TextStyleId using the the TextStyleName from the TextStyleTable

 

if (textStyleTable.Has("STD70"))
{
    text.TextStyleId = tst["STD70"];
}

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3
HelloWorlddd
in reply to: _gile

Thank you very much

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost