<?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: Replace styles in Drawing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594320#M134829</link>
    <description>&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Create the parts list and set a reference to it.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oPartsList As PartsList&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oPartsList = oSheet.PartsLists.Add(oDrawingView1, oPlacementPoint)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPartsList.Style = oDrawDoc.StylesManager.PartsListStyles.Item("PARTS LIST PART")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Fri, 24 Aug 2012 12:31:06 GMT</pubDate>
    <dc:creator>cmines</dc:creator>
    <dc:date>2012-08-24T12:31:06Z</dc:date>
    <item>
      <title>Replace styles in Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594108#M134828</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have some styles I will like to replace in some drawings&lt;/P&gt;&lt;P&gt;but how? I cant find any function to do this.&lt;/P&gt;&lt;P&gt;Do I missing some thing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oIDWStyles As Inventor.DrawingStylesManager&lt;BR /&gt;&amp;nbsp;Set oIDWStyles = oDrawDoc.StylesManager&lt;BR /&gt;&amp;nbsp;Dim oldstyle As style&lt;BR /&gt;&amp;nbsp;Dim Newstyle As style&lt;BR /&gt;&amp;nbsp;&amp;nbsp; For Each oldstyle In oIDWStyles.Styles&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If oldstyle.Name = "Old style" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&amp;nbsp; Debug.Print oldstyle.Name &amp;amp; " : " &amp;amp; oldstyle.InternalName&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each Newstyle In oIDWStyles.Styles&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Newstyle.Name = "New style" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Debug.Print Newstyle.Name &amp;amp; " : " &amp;amp; Newstyle.InternalName&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'How to replace oldstyle with newstyle&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'oldstyle = Newstyle&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;René J&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2012 09:52:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594108#M134828</guid>
      <dc:creator>Rene-J</dc:creator>
      <dc:date>2012-08-24T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replace styles in Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594320#M134829</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' Create the parts list and set a reference to it.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oPartsList As PartsList&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oPartsList = oSheet.PartsLists.Add(oDrawingView1, oPlacementPoint)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPartsList.Style = oDrawDoc.StylesManager.PartsListStyles.Item("PARTS LIST PART")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2012 12:31:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594320#M134829</guid>
      <dc:creator>cmines</dc:creator>
      <dc:date>2012-08-24T12:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace styles in Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594346#M134830</link>
      <description>&lt;P&gt;You can rename it, delete it, set another style as the object default, but no direct replace that I know of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you set the new styles as object defaults, then you could &lt;A target="_self" href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Change-DimStyle-to-Active-Standard/td-p/3508768"&gt;change all elements&lt;/A&gt; to the active standard.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2012 12:53:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594346#M134830</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-08-24T12:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replace styles in Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594366#M134831</link>
      <description>&lt;P&gt;UGHHHH....I swear I read "parts list style" the first time I read your post!&amp;nbsp; Thats what I get for responding before I've had some caffeine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2012 12:57:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594366#M134831</guid>
      <dc:creator>cmines</dc:creator>
      <dc:date>2012-08-24T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace styles in Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594384#M134832</link>
      <description>&lt;P&gt;Get some coffee, it will be alright - for a Friday &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2012 13:04:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3594384#M134832</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-08-24T13:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replace styles in Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3608168#M134833</link>
      <description>&lt;P&gt;Thanks Jonathan&lt;/P&gt;&lt;P&gt;Finally I got the time, to look at your suggestion.&lt;/P&gt;&lt;P&gt;I'm sorry I have not commented earlier, I've been on vacation.&lt;/P&gt;&lt;P&gt;I thought there was an easier solution.&lt;/P&gt;&lt;P&gt;René J&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 15:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/replace-styles-in-drawing/m-p/3608168#M134833</guid>
      <dc:creator>Rene-J</dc:creator>
      <dc:date>2012-09-05T15:59:57Z</dc:date>
    </item>
  </channel>
</rss>

