<?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 Change DimStyle to Active Standard in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3508768#M135897</link>
    <description>&lt;P&gt;Wanted to post this hoping others will find it useful. Works for most versions of Inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changes all dimensions, balloons, ect (define more if you want) to current object default in active standard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try it out, let me know if it works well for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub ChangeDimStyle()
'J.Kriek 2012
    Dim oApp As Application
    Dim oIdw As DrawingDocument
    Dim oDim As DrawingDimension
    Dim oBalloon As Balloon
    Dim oDimStyle As DrawingStandardStyle
    Dim oSheet As Sheet
    Set oApp = ThisApplication
    Set oIdw = oApp.ActiveDocument
    
    Set oDimStyle = oIdw.StylesManager.ActiveStandardStyle
    For Each oSheet In oIdw.Sheets
        For Each oDim In oSheet.DrawingDimensions
                'Add more Styles here
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LinearDimensionStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.LinearDimensionStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.AngularDimensionStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.AngularDimensionStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.ChamferNoteStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.ChamferNoteStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LeaderTextStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.LeaderTextStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.BendNoteStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.BendNoteStyle
                End If
        Next
        For Each oBalloon In oSheet.Balloons
                If oBalloon.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.BalloonStyle.Name Then
                    oBalloon.Style = oDimStyle.ActiveObjectDefaults.BalloonStyle
                End If
        Next
   Next
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2012 17:38:29 GMT</pubDate>
    <dc:creator>jdkriek</dc:creator>
    <dc:date>2012-06-20T17:38:29Z</dc:date>
    <item>
      <title>Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3508768#M135897</link>
      <description>&lt;P&gt;Wanted to post this hoping others will find it useful. Works for most versions of Inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changes all dimensions, balloons, ect (define more if you want) to current object default in active standard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try it out, let me know if it works well for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub ChangeDimStyle()
'J.Kriek 2012
    Dim oApp As Application
    Dim oIdw As DrawingDocument
    Dim oDim As DrawingDimension
    Dim oBalloon As Balloon
    Dim oDimStyle As DrawingStandardStyle
    Dim oSheet As Sheet
    Set oApp = ThisApplication
    Set oIdw = oApp.ActiveDocument
    
    Set oDimStyle = oIdw.StylesManager.ActiveStandardStyle
    For Each oSheet In oIdw.Sheets
        For Each oDim In oSheet.DrawingDimensions
                'Add more Styles here
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LinearDimensionStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.LinearDimensionStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.AngularDimensionStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.AngularDimensionStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.ChamferNoteStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.ChamferNoteStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LeaderTextStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.LeaderTextStyle
                End If
                If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.BendNoteStyle.Name Then
                    oDim.Style = oDimStyle.ActiveObjectDefaults.BendNoteStyle
                End If
        Next
        For Each oBalloon In oSheet.Balloons
                If oBalloon.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.BalloonStyle.Name Then
                    oBalloon.Style = oDimStyle.ActiveObjectDefaults.BalloonStyle
                End If
        Next
   Next
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:38:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3508768#M135897</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-06-20T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3609236#M135898</link>
      <description>&lt;P&gt;Very nice. I've been trying to create something similiar for a couple of hours now. Thanks for the share, it's much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon Brabbs&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 10:13:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3609236#M135898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-06T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3609442#M135899</link>
      <description>&lt;P&gt;Glad it was useful to you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 13:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3609442#M135899</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-09-06T13:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3664578#M135900</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I use this rule in Inventor 2012 64bit.&amp;nbsp;I am unfamiliar with I-logic, but this seems ideal for what I'm wanting to achieve. Any sort of help is welcome. Thanks&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 10:05:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3664578#M135900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-18T10:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3665622#M135901</link>
      <description>&lt;P&gt;This is VBA (Visual Basic for Applications). It can be rewritten in iLogic fairly easy (essentially VB.NET)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could&amp;nbsp;use as is, simply go to Tools &amp;gt; VBA Editor &amp;gt; Paste it into a Module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then from iLogic you could run with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;RunMacro&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;projectName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;, &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;moduleName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;, &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;macroName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or simply run it manually by adding it as a button. Right-click on toolbar &amp;gt; Customize User Commands &amp;gt; Change Drop-down to Macros &amp;gt; Select Macro &amp;gt; Click Add &amp;gt; Then Ok.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 19:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3665622#M135901</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-10-18T19:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3666396#M135902</link>
      <description>&lt;P&gt;I appreciate your Help on this. I'm trying to get this to work, but may need some pointers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some old Legacy drawings which I'm trying to bring up to date by applying&amp;nbsp;the current&amp;nbsp;standard’s Layers &amp;amp; Styles. My drawings are from 2003 and are typically using a local style called ANSI. I am looking to convert all Layers and styles to&amp;nbsp;a new Active Standard called Default Standard (ISO). Presently, I am manually replacing all local styles within the Style Editor, but this is a long and tedious process and I have to do this for every drawing. Really, it’s&amp;nbsp;something I should be automating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I wish to&amp;nbsp;change all Linear, Diameter, Angular dimensions to&amp;nbsp;&amp;nbsp;Layer - Default Standard (ISO) and Style - Dimension ISO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can point&amp;nbsp;me&amp;nbsp;in the right direction I’ll figure out how to do the rest of the layers such as Centerlines, Symbols, Annotations etc. I take it these will all have some sort of tag that I’ll need to find out in order to input them into the snippet, or do I just use the layer and style names within the angle brackets &amp;lt;&amp;gt; ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 10:38:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3666396#M135902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-19T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3666472#M135903</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Few questons first. Are you using the Style Library Manager (outside Inventor) for global styles? Is&amp;nbsp;&lt;SPAN&gt;Default Standard (ISO) a global standard? Are&amp;nbsp;&lt;SPAN&gt;Dimension ISO, ect setup as the Object Defaults for that standard?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This script will make sure all the elements specificed on the drawing get updated to the active standard. And yes they do have specific "tags" as you call them. Some even have diffrent methods in order to access them. It would be a proccess of letting me know which elements in addition to what's already here you need and me showing you that method.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:53:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3666472#M135903</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-10-19T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3666866#M135904</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;Yes,&amp;nbsp;I am&amp;nbsp;using a Style Library Manager (which reads styles&amp;nbsp;from an external folder), and the&amp;nbsp;Standard I&amp;nbsp;use is a modified Global ISO standard (mostly using Imperial units instead of Metric; 3rd Angle etc.). The object defaults have been&amp;nbsp;set up for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;If you like, I&amp;nbsp;can show you a&amp;nbsp;typical legacy drawing, as well as an&amp;nbsp;up-to-date&amp;nbsp;drawing with the layers applied by the&amp;nbsp;Standard from the Style Library.&amp;nbsp;This way you can see the styles that&amp;nbsp;I am&amp;nbsp;needing changed, and may, hopefully, be able to offer some advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;I tend to carry out 'Drawing Resource Transfer Wizard' first, so that Drawing Border, Title block and Symbols can be transferred before I start&amp;nbsp;replacing the&amp;nbsp;Styles.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 14:51:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3666866#M135904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-19T14:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3667114#M135905</link>
      <description>&lt;P&gt;Ok, so when you go to Tools &amp;gt; Document Settings &amp;gt; Your Style is listed as the active standard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, then script will work fine. We have the ability to change every elemenet on the drawing, including section and view labels, but not everyone needs those updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just let me know what you need help with.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 16:33:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3667114#M135905</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-10-19T16:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3668902#M135906</link>
      <description>&lt;P&gt;My style is the active standard, so yes, I am hoping to apply styles to the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension; Text; Tables; Revision Table; Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of these use custom styles names that are no longer in the Active Standard i.e' COMPANY ANSI'; 'Table_COMPANY ANSI' etc.&amp;nbsp;I wish to&amp;nbsp;change these to 'Default (Imperial)' for example, which is now the Active Standard for the Styles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a list of all the Object Types, i'd like to include in the Macro.&lt;/P&gt;&lt;P&gt;My question then would be where to find/identify the 'tags' and write them into the snippet?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:26:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3668902#M135906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-22T13:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3670370#M135907</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;P&gt;My question then would be where to find/identify the 'tags' and write them into the snippet?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;The nice thing about the&amp;nbsp;&lt;/SPAN&gt;VBA Editor is&amp;nbsp;&lt;EM&gt;IntelliSense&lt;/EM&gt;&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;which is an autocompletion system designed to help you troubleshoot and write code. If you copy any statement with&amp;nbsp;oDimStyle.ActiveObjectDefaults and backspace the specific style off, then as you type "." it will trigger&amp;nbsp;&lt;EM&gt;IntelliSense&amp;nbsp;&lt;/EM&gt;showing you all available "tags" &lt;SPAN&gt;(see image)&lt;/SPAN&gt;. Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" alt="IntelliSense.PNG" align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/40738iC1379A1E542DC8D1/image-size/original?v=mpbl-1&amp;amp;px=-1" title="IntelliSense.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note some styles like balloons will require thier own For Each() loop. While others don't support direct compare, so I had to go about them diffrently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;View labels are especiallly difficult, because the text DETAIL, SECTION, and VIEW was getting removed by resetting the style. So I had rewrite the text back in, but it was worth it to insure correct compliance with our standards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shows you a few diffrent methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub ChangeDimStyle()
'J.Kriek 2012
    Set oApp = ThisApplication
    Set oIDW = oApp.ActiveDocument
    Set oDimStyle = oIDW.StylesManager.ActiveStandardStyle
    For Each oSheet In oIDW.Sheets
        For Each oDim In oSheet.DrawingDimensions

            'Add more Dim Styles here
            'Debug.Print "Name, Val: " &amp;amp; oDim.Style.Name &amp;amp; ", " &amp;amp; oDim.ModelValue
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LinearDimensionStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.LinearDimensionStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.AngularDimensionStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.AngularDimensionStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.ChamferNoteStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.ChamferNoteStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LeaderTextStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.LeaderTextStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.BendNoteStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.BendNoteStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.OrdinateDimensionStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.OrdinateDimensionStyle
            End If
            If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.OrdinateDimensionStyle.Name Then
                oDim.Style = oDimStyle.ActiveObjectDefaults.OrdinateDimensionStyle
            End If
            
            'Set automaticly because it doesn't support compare
            oDim.Style = oDimStyle.ActiveObjectDefaults.ChamferNoteStyle
            
        Next
        For Each oBalloon In oSheet.Balloons
            'Debug.Print "Name: " &amp;amp; oBalloon.Style.Name
            If oBalloon.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.BalloonStyle.Name Then
                oBalloon.Style = oDimStyle.ActiveObjectDefaults.BalloonStyle
            End If
        Next
        Dim i As Integer
        For i = 1 To oSheet.DrawingViews.count
            Set oView = oSheet.DrawingViews.Item(i)
                If oView.ShowLabel = True Then
                    'B Size: .396 = .156 Text
                    'D Dize: .458 = .180in Text
                    Dim LabelB As String
                    Dim LabelD As String
                    'Added detection for type of view 9/5/2012 - JDK
                    Select Case oView.ViewType
                        Case kDetailDrawingViewType
                            LabelB = "&amp;lt;StyleOverride FontSize='.396' Underline='True'&amp;gt;DETAIL &amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                            LabelD = "&amp;lt;StyleOverride FontSize='.458' Underline='True'&amp;gt;DETAIL &amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                        Case kSectionDrawingViewType
                            LabelB = "&amp;lt;StyleOverride FontSize='.396' Underline='True'&amp;gt;SECTION &amp;lt;DrawingViewName/&amp;gt;-&amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                            LabelD = "&amp;lt;StyleOverride FontSize='.458' Underline='True'&amp;gt;SECTION &amp;lt;DrawingViewName/&amp;gt;-&amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                        Case kProjectedDrawingViewType
                            LabelB = "&amp;lt;StyleOverride FontSize='.396' Underline='True'&amp;gt;VIEW &amp;lt;DrawingViewName/&amp;gt;-&amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                            LabelD = "&amp;lt;StyleOverride FontSize='.458' Underline='True'&amp;gt;VIEW &amp;lt;DrawingViewName/&amp;gt;-&amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                        Case kStandardDrawingViewType
                            'oView.ShowLabel = False
                           LabelB = "&amp;lt;StyleOverride FontSize='.396' Underline='True'&amp;gt;&amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                            LabelD = "&amp;lt;StyleOverride FontSize='.458' Underline='True'&amp;gt;&amp;lt;DrawingViewName/&amp;gt;&amp;lt;/StyleOverride&amp;gt;"
                    End Select
                    
                    'Set automaticly because it doesn't support compare
                    oView.Label.TextStyle = oDimStyle.ActiveObjectDefaults.ViewLabelStyle
                    
                    'Debug.Print "Name: " &amp;amp; oView.Label.TextStyle.Name
                    Select Case oView.Label.TextStyle.Name
                        Case "LABEL_B"
                            oView.Label.FormattedText = LabelB
                        Case "LABEL_B_16"
                            oView.Label.FormattedText = LabelB
                        Case "LABEL_D"
                            oView.Label.FormattedText = LabelD
                        Case "LABEL_D_16"
                            oView.Label.FormattedText = LabelD
                    End Select
                    End If
                End If
       Next
   Next
End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Oct 2012 13:01:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3670370#M135907</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-10-23T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3700554#M135908</link>
      <description>&lt;P&gt;Thanks for your help on this Jonathan.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2012 15:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3700554#M135908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-15T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3702204#M135909</link>
      <description>&lt;P&gt;Quite welcome!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2012 16:42:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/3702204#M135909</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2012-11-16T16:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/4304758#M135910</link>
      <description>&lt;P&gt;Hi Johnathan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a similar situation where i need to change all the elements (dims, text, leaders etc) on an idw to the currently active style&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a code snippet for this process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark Tommis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INV 2013 64bit&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 17:33:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/4304758#M135910</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2013-06-20T17:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/4316320#M135911</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&lt;A id="link_13f9e8bf299" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1023779" target="_self"&gt;mark&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it looks to me&amp;nbsp;&lt;SPAN&gt;Johnathan's demo in the message 11 has nearly done what you wanted to do. Could you clarify a bit the details or your difficulty?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 08:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/4316320#M135911</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-07-02T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/4568139#M135912</link>
      <description>&lt;P&gt;Hi jdkriek!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try you rule but i have this error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="change style.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/67657i6228D8512856D865/image-size/large?v=mpbl-1&amp;amp;px=-1" border="0" alt="change style.PNG" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is my rule&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oIDWDoc As DrawingDocument&lt;BR /&gt;oIDWDoc = ThisApplication.ActiveDocument&lt;BR /&gt;Dim oSheet As Sheet&lt;BR /&gt;Dim oDim As DrawingDimension&lt;BR /&gt;Dim oDimStyle As DrawingStandardStyle&lt;BR /&gt;Dim oGeneralDimensions As GeneralDimension&lt;BR /&gt;oDimStyle = oIDWDoc.StylesManager.ActiveStandardStyle&lt;BR /&gt;For Each oSheet In oIDWDoc.Sheets&lt;BR /&gt;For Each oDim In oSheet.DrawingDimensions&lt;BR /&gt;&lt;BR /&gt;Debug.Print ("Style Name and Val: " &amp;amp; oDim.style.Name &amp;amp; " " &amp;amp; oDim.ModelValue)&lt;BR /&gt;&lt;BR /&gt;If oDim.style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LinearDimensionStyle.Name Then&lt;BR /&gt;iProperties.Value("Custom", "test1") = oDim.style.Name&lt;BR /&gt;iProperties.Value("Custom", "test2") = oDimStyle.ActiveObjectDefaults.LinearDimensionStyle.Name&lt;BR /&gt;oDim.Style = oDimStyle.ActiveObjectDefaults.LinearDimensionStyle&lt;BR /&gt;End If&lt;BR /&gt;If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.LeaderTextStyle.Name Then&lt;BR /&gt;oDim.Style = oDimStyle.ActiveObjectDefaults.LeaderTextStyle&lt;BR /&gt;End If&lt;BR /&gt;If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.AngularDimensionStyle.Name Then&lt;BR /&gt;oDim.Style = oDimStyle.ActiveObjectDefaults.AngularDimensionStyle&lt;BR /&gt;End If&lt;BR /&gt;If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.ChamferNoteStyle.Name Then&lt;BR /&gt;oDim.Style = oDimStyle.ActiveObjectDefaults.ChamferNoteStyle&lt;BR /&gt;End If&lt;BR /&gt;If oDim.Style.Name &amp;lt;&amp;gt; oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle.Name Then&lt;BR /&gt;oDim.Style = oDimStyle.ActiveObjectDefaults.DiameterDimensionStyle&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:07:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/4568139#M135912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-28T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/8314972#M135913</link>
      <description>&lt;P&gt;just want to spam a thank you. This saves me quite some time.&lt;/P&gt;&lt;P&gt;And you are not getting enough likes for your generous sharing!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 09:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/8314972#M135913</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2018-10-05T09:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/8315077#M135914</link>
      <description>&lt;P&gt;Ok I have been cheering a bit too early.&lt;/P&gt;&lt;P&gt;Somehow this works:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Style&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" - "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oDimStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveObjectDefaults&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;LinearDimensionStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;But this fails:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800000;"&gt;oDim&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;style&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDimStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveObjectDefaults&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;LinearDimensionStyle&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;(Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it looked like easy copy paste code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I look at all the options within DrawingDimension, I can't see 'Style'. msgbox(oDim.Style.Name)&amp;nbsp; seems to work, but I dont see it in the 'intelliSense'. Why is that?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 10:47:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/8315077#M135914</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2018-10-05T10:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/8319627#M135915</link>
      <description>&lt;P&gt;Ok so I currently work for a company that needs to update external drawings to their styles&lt;/P&gt;&lt;P&gt;If the styles does not exist, it updates the styles to some base style.&lt;/P&gt;&lt;P&gt;I wanted to update every dimension and balloon to the new style as explained in this post, only to learn that is not possible for every object (for example break lines, details or section lines were not updatable)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then after some heavy meditating, I tried renaming the current style to the style that is in our styles library, and then update it. And that works flawless. So a whole day work for these few lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oSTDStyle As DrawingStandardStyle = oStylMan.ActiveStandardStyle&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not oSTDStyle.Name = "companyname" Then oSTDStyle.Name = "companyname"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each oStyle In oDoc.StylesManager.Styles&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; If oStyle.UpToDate = False 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oStyle.UpdateFromGlobal()&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;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 12:41:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/8319627#M135915</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2018-10-08T12:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change DimStyle to Active Standard</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/9219452#M135916</link>
      <description>&lt;P&gt;Can we update drawing style "Yes to All" and change part list ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 12:33:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-dimstyle-to-active-standard/m-p/9219452#M135916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-25T12:33:23Z</dc:date>
    </item>
  </channel>
</rss>

