<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: set current text style in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618472#M67481</link>
    <description>If I may rephrase...&lt;BR /&gt;
&lt;BR /&gt;
How can you Modify properties of the Style set as the current style?&lt;BR /&gt;
&lt;BR /&gt;
you would use it's objectID to open it as a TextStyleTableRecord and modify it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
How can you Set the Current text Style to a different (existing) text style?&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
to get the ObjectID, use the Item property of the TextStyleTable.</description>
    <pubDate>Tue, 19 Jan 2010 01:06:43 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2010-01-19T01:06:43Z</dc:date>
    <item>
      <title>set current text style</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618471#M67480</link>
      <description>how can I change the current text style?</description>
      <pubDate>Mon, 18 Jan 2010 23:38:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618471#M67480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-18T23:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: set current text style</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618472#M67481</link>
      <description>If I may rephrase...&lt;BR /&gt;
&lt;BR /&gt;
How can you Modify properties of the Style set as the current style?&lt;BR /&gt;
&lt;BR /&gt;
you would use it's objectID to open it as a TextStyleTableRecord and modify it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
How can you Set the Current text Style to a different (existing) text style?&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
to get the ObjectID, use the Item property of the TextStyleTable.</description>
      <pubDate>Tue, 19 Jan 2010 01:06:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618472#M67481</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-01-19T01:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: set current text style</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618473#M67482</link>
      <description>Most system variables which are stored with the drawing&lt;BR /&gt;
have counterpart properties on the Database class that&lt;BR /&gt;
allow you to set/get their values.&lt;BR /&gt;
&lt;BR /&gt;
See the TextStyle property of the Database. The value&lt;BR /&gt;
of that property is not the name of the text style, it is the&lt;BR /&gt;
ObjectId of the text style's TextStyleTableRecord.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
"Ray S Whitmore" &lt;RAY&gt; wrote in message &lt;BR /&gt;
news:6320382@discussion.autodesk.com...&lt;BR /&gt;
how can I change the current text style?&lt;/RAY&gt;</description>
      <pubDate>Tue, 19 Jan 2010 04:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-current-text-style/m-p/2618473#M67482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-19T04:58:47Z</dc:date>
    </item>
  </channel>
</rss>

