set current text style

set current text style

Anonymous
Not applicable
771 Views
2 Replies
Message 1 of 3

set current text style

Anonymous
Not applicable
how can I change the current text style?
0 Likes
772 Views
2 Replies
Replies (2)
Message 2 of 3

chiefbraincloud
Collaborator
Collaborator
If I may rephrase...

How can you Modify properties of the Style set as the current style?

you would use it's objectID to open it as a TextStyleTableRecord and modify it.


How can you Set the Current text Style to a different (existing) text style?

The Database.Textstyle property is not listed as read only, so you should be able to assign it the ObjectID of the Textstyle you want.

to get the ObjectID, use the Item property of the TextStyleTable.
Dave O.                                                                  Sig-Logos32.png
0 Likes
Message 3 of 3

Anonymous
Not applicable
Most system variables which are stored with the drawing
have counterpart properties on the Database class that
allow you to set/get their values.

See the TextStyle property of the Database. The value
of that property is not the name of the text style, it is the
ObjectId of the text style's TextStyleTableRecord.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

"Ray S Whitmore" wrote in message
news:6320382@discussion.autodesk.com...
how can I change the current text style?
0 Likes