.NET

Reply
Valued Contributor
HelloWorlddd
Posts: 87
Registered: ‎05-03-2013
Message 1 of 3 (139 Views)
Accepted Solution

How to change DBtext style by the StyleName

139 Views, 2 Replies
03-19-2014 08:53 AM

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

*Expert Elite*
_gile
Posts: 2,084
Registered: ‎04-29-2006
Message 2 of 3 (134 Views)

Re : How to change DBtext style by the StyleName

03-19-2014 09:27 AM 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
Valued Contributor
HelloWorlddd
Posts: 87
Registered: ‎05-03-2013
Message 3 of 3 (106 Views)

Re : How to change DBtext style by the StyleName

03-20-2014 04:51 AM in reply to: _gile

Thank you very much

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.