<?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 Update old Drawings to current Template help in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11379722#M141767</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am looking for help to create an ilogic to update old drawings to match our standard current template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible id like to to update the title block and border, update styles to standard and purge old styles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 04:06:53 GMT</pubDate>
    <dc:creator>mgeeW7SQV</dc:creator>
    <dc:date>2022-08-25T04:06:53Z</dc:date>
    <item>
      <title>Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11379722#M141767</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am looking for help to create an ilogic to update old drawings to match our standard current template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible id like to to update the title block and border, update styles to standard and purge old styles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 04:06:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11379722#M141767</guid>
      <dc:creator>mgeeW7SQV</dc:creator>
      <dc:date>2022-08-25T04:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394148#M142071</link>
      <description>&lt;P&gt;Ok so I have searched and managed to put a few different Ilogics together.&lt;/P&gt;&lt;P&gt;Firstly I open an old drawing and delete unused drawing resources then run the ilogic.&lt;/P&gt;&lt;P&gt;It seems to do what I would like except I have to run the ilogic twice to purge old styles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things id like to try add:&lt;/P&gt;&lt;P&gt;1. Delete un used drawing resources in old drawing&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Id like to get it to copy the sheet formats as&amp;nbsp;well&lt;/P&gt;&lt;P&gt;3. Fix the need to run it twice to purge styles completly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Option Explicit
Imports System.Windows.Forms
Dim oTargetDoc, oSourceDoc As DrawingDocument
Dim oTBdef As TitleBlockDefinition
Dim oTBdefs As TitleBlockDefinitions
Dim oBorderDef As BorderDefinition
Dim oBorderDefs As BorderDefinitions
Dim oSymbol As SketchedSymbolDefinition
Dim oSymbols As SketchedSymbolDefinitions
Dim oPrompt As String

If ThisDoc.Document.DocumentType &amp;lt;&amp;gt; kDrawingDocumentObject Then
	MsgBox("This rule may only be run on drawing documents!",vbOKOnly,"Update Titleblocks")
	Exit Sub
End If

oTargetDoc = ThisDrawing.Document

oPrompt = MsgBox("Update Titleblocks and Styles?",vbYesNo,"Update Titleblocks")
Select Case oPrompt
Case vbNo
	Exit Sub
Case vbYes
	oSourceDoc = ThisApplication.Documents.Open("C:\_Vault\WS\Standards\Inventor Templates\Standard.idw", False)
	oTargetDoc.StylesManager.ActiveStandardStyle.UpdateFromGlobal
End Select

oTBdefs = oSourceDoc.TitleBlockDefinitions
oBorderDefs = oSourceDoc.BorderDefinitions
oSymbols = oSourceDoc.SketchedSymbolDefinitions

For Each oTBdef In oTBdefs
	Try
		If oTBdef.Name &amp;lt;&amp;gt; "ANSI - Large" Then
			oTBdef.CopyTo(oTargetDoc, True)
		End If
	Catch
		MsgBox("Unknown error in copy title block for " &amp;amp; Chr(34) &amp;amp; oTBdef.Name &amp;amp; Chr(34),vbOKOnly,"Error")
	End Try
Next
For Each oBorderDef In oBorderDefs
	Try
		If oBorderDef.Name &amp;lt;&amp;gt; "Default Border" Then
			oBorderDef.CopyTo(oTargetDoc, True)
		End If
	Catch
		MsgBox("Unknown error in copy border definition for " &amp;amp; Chr(34) &amp;amp; oBorderDef.Name &amp;amp; Chr(34),vbOKOnly,"Error")
	End Try
Next
For Each oSymbol In oSymbols
	Try
		oSymbol.CopyTo(oTargetDoc, True)
	Catch
		MsgBox("Unknown error in copy sketched symbol for " &amp;amp; Chr(34) &amp;amp; oSymbol.Name &amp;amp; Chr(34),vbOKOnly,"Error")
	End Try
Next


'Set Styles Standard to suit Template
Const kStandardName = "Company Standards" 
    Const kObjDefaultsName = "My Defaults" 
    Dim oDoc As DrawingDocument 
    
     
    oDoc = ThisApplication.ActiveDocument 
    Dim oStylesMgr As DrawingStylesManager 
    oStylesMgr = oDoc.StylesManager 
    Dim oStandard As DrawingStandardStyle 
    
    oStandard = oStylesMgr.StandardStyles _ 
                             .Item(kStandardName) 
    
    If oStandard Is Nothing Then 
        oStandard = oStylesMgr.StandardStyles _ 
                       .Item(1).Copy(kStandardName) 
    End If 
    
    oStylesMgr.ActiveStandardStyle = oStandard
	
	
'Update Sytles

Dim oCM As CommandManager = ThisApplication.CommandManager

Dim oCD As ControlDefinitions = oCM.ControlDefinitions

Dim oUpdateStyles As ControlDefinition = oCD.Item("UpdateStylesCmd")

oUpdateStyles.Execute2(False)

SendKeys.SendWait("Y ")


'Purge Styles
Dim doc As Document = ThisApplication.ActiveDocument
If (doc.DocumentType = DocumentTypeEnum.kDrawingDocumentObject) Then
    Dim dDoc As DrawingDocument = doc
    Dim styles As styles = dDoc.StylesManager.Styles
    For Each styl As Style In styles
        If (styl.InUse = False And styl.StyleLocation &amp;lt;&amp;gt; StyleLocationEnum.kLibraryStyleLocation) Then
            styl.Delete()
        End If
    Next
ElseIf (doc.DocumentType = DocumentTypeEnum.kPartDocumentObject Or doc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject) Then
    For Each Asset As Asset In doc.Assets
        If (Asset.IsUsed = False) Then
            If (Asset.AssetType = AssetTypeEnum.kAssetTypeMaterial Or
                    Asset.AssetType = AssetTypeEnum.kAssetTypeAppearance) Then
                Asset.Delete()
            End If
        End If
    Next
End If

'---Execute twice---

If (doc.DocumentType = DocumentTypeEnum.kDrawingDocumentObject) Then
    Dim dDoc As DrawingDocument = doc
    Dim styles As styles = dDoc.StylesManager.Styles
    For Each styl As Style In styles
        If (styl.InUse = False And styl.StyleLocation &amp;lt;&amp;gt; StyleLocationEnum.kLibraryStyleLocation) Then
            styl.Delete()
        End If
    Next
ElseIf (doc.DocumentType = DocumentTypeEnum.kPartDocumentObject Or doc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject) Then
    For Each Asset As Asset In doc.Assets
        If (Asset.IsUsed = False) Then
            If (Asset.AssetType = AssetTypeEnum.kAssetTypeMaterial Or
                    Asset.AssetType = AssetTypeEnum.kAssetTypeAppearance) Then
                Asset.Delete()
            End If
        End If
    Next
End If&lt;/LI-CODE&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;&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>Wed, 31 Aug 2022 23:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394148#M142071</guid>
      <dc:creator>mgeeW7SQV</dc:creator>
      <dc:date>2022-08-31T23:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394226#M142072</link>
      <description>&lt;P&gt;For 2. all that is required is to loop through the sheetformats collection in the drawing document, get the sheetformat object and use the copy method.&lt;/P&gt;&lt;P&gt;See Links to the API help embeded&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Syntax&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;DrawingDocument.&lt;/SPAN&gt;&lt;STRONG&gt;SheetFormats&lt;/STRONG&gt;&lt;SPAN&gt;() As&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SheetFormats" target="_blank" rel="noopener"&gt;SheetFormats&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Syntax&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SheetFormat.&lt;/SPAN&gt;&lt;STRONG&gt;CopyTo&lt;/STRONG&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;TargetDocument&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;As&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=DrawingDocument" target="_blank" rel="noopener"&gt;DrawingDocument&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;) As&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SheetFormat" target="_blank" rel="noopener"&gt;SheetFormat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For 1. Loop through each object from the drawing document and try and delete. Use try catch statement.&amp;nbsp; It will not delete anything that is currently in use in the sheet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 00:19:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394226#M142072</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-09-01T00:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394273#M142073</link>
      <description>&lt;P&gt;Firstly thanks for that but that has all gone over my head sorry&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 01:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394273#M142073</guid>
      <dc:creator>mgeeW7SQV</dc:creator>
      <dc:date>2022-09-01T01:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394382#M142074</link>
      <description>&lt;P&gt;Here is the copy for loop for the sheet format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;For Each oShtFormat as SheetFormat in oSourceDoc.SheetFormats
	oShtFormat.CopyTo( oTargetDoc)
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;To delete target Drawing resources not in use. *Note: Only run this at the end when you want to purge any unused items. Any resources contained in the sheet will remain untouched.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;oTBdefs = oTargetDoc.TitleBlockDefinitions
oBorderDefs = oTargetDoc.BorderDefinitions
oSymbols = oTargetDoc.SketchedSymbolDefinitions

For Each oTBdef In oTBdefs
	Try
		oTBdef.Delete
	Catch
		MsgBox("Unknown error in copy title block for " &amp;amp; Chr(34) &amp;amp; oTBdef.Name &amp;amp; Chr(34),vbOKOnly,"Error")
	End Try
Next
For Each oBorderDef In oBorderDefs
	Try
		oBorderDef.Delete
	Catch
		MsgBox("Unknown error in copy border definition for " &amp;amp; Chr(34) &amp;amp; oBorderDef.Name &amp;amp; Chr(34),vbOKOnly,"Error")
	End Try
Next
For Each oSymbol In oSymbols
	Try
		oSymbol.Delete
	Catch
		MsgBox("Unknown error in copy sketched symbol for " &amp;amp; Chr(34) &amp;amp; oSymbol.Name &amp;amp; Chr(34),vbOKOnly,"Error")
	End Try
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 03:10:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11394382#M142074</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-09-01T03:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11396279#M142132</link>
      <description>&lt;P&gt;If I run the sheet copy part with my script it copys everything fine, but because I need to run the script twice to purge old styles it creates double of each sheet ect&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:50:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11396279#M142132</guid>
      <dc:creator>mgeeW7SQV</dc:creator>
      <dc:date>2022-09-01T20:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11399295#M142200</link>
      <description>&lt;P&gt;Unfortunately I have not much experience with updating styles. It sounds like if you need to run the rule twice it is only doing a partial update. This &lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/need-help-to-make-a-better-code-purge-amp-update-with-ilogic/m-p/11364444#M141479" target="_blank" rel="noopener"&gt;post&lt;/A&gt; here describes in more detail how to set this up without using the control definition update style. In your case if your not comfortable with the longer method discussed there you may be able to place the update style in a sub routine and just call it twice in the same rule. If you need more assistance just post the code your working with and hopefully someone can spot the required changes.&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>Sat, 03 Sep 2022 15:33:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11399295#M142200</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2022-09-03T15:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11403494#M142292</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            For i = 1 To odraw.StylesManager.DimensionStyles.Count
                If odraw.StylesManager.DimensionStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.DimensionStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.StandardStyles.Count
                If odraw.StylesManager.StandardStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.StandardStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.BalloonStyles.Count
                If odraw.StylesManager.BalloonStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.BalloonStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.CentermarkStyles.Count
                If odraw.StylesManager.CentermarkStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.CentermarkStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.FeatureControlFrameStyles.Count
                If odraw.StylesManager.FeatureControlFrameStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.FeatureControlFrameStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.HoleTableStyles.Count
                If odraw.StylesManager.HoleTableStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.HoleTableStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.LeaderStyles.Count
                If odraw.StylesManager.LeaderStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.LeaderStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.ObjectDefaultsStyles.Count
                If odraw.StylesManager.ObjectDefaultsStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.ObjectDefaultsStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.PartsListStyles.Count
                If odraw.StylesManager.PartsListStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.PartsListStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.RevisionTableStyles.Count
                If odraw.StylesManager.RevisionTableStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.RevisionTableStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.StandardStyles.Count
                If odraw.StylesManager.StandardStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.StandardStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.TableStyles.Count
                If odraw.StylesManager.TableStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.TableStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.TextStyles.Count
                If odraw.StylesManager.TextStyles.Item(i).UpToDate = False Then
                    odraw.StylesManager.TextStyles.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.Layers.Count
                If odraw.StylesManager.Layers.Item(i).UpToDate = False Then
                    odraw.StylesManager.Layers.Item(i).UpdateFromGlobal()
                End If
            Next
            For i = 1 To odraw.StylesManager.Styles.Count
                If odraw.StylesManager.Styles.Item(i).UpToDate = False Then
                    odraw.StylesManager.Styles.Item(i).UpdateFromGlobal()
                End If
            Next
            Dim oStyles As DrawingStylesManager = odraw.StylesManager
            Dim noneleft As Boolean = True
            Dim ostyle As Style
            Do While (noneleft)
                noneleft = False
                For Each ostyle In oStyles.Styles
                    If ostyle.StyleLocation = 51202 And ostyle.InUse = False Then
                        ' uncomment next line to see styles being deleted
                        '			MsgBox(ostyle.Name)
                        ostyle.Delete()
                        noneleft = True
                    End If
                Next
            Loop&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 12:25:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11403494#M142292</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-06T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11404701#M142330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1734991"&gt;@marcin_otręba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to run your rule I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line 1: 'odraw' is not declared. It may be inaccessible due to its protection level&lt;/P&gt;&lt;P&gt;Line 76 : Type 'DrawingStylesManager' is not defined&lt;/P&gt;&lt;P&gt;line 78 ; Type ' Style' is not defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 21:52:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11404701#M142330</guid>
      <dc:creator>mgeeW7SQV</dc:creator>
      <dc:date>2022-09-06T21:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update old Drawings to current Template help</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11405332#M142337</link>
      <description>&lt;P&gt;this was only part of code.&lt;/P&gt;&lt;P&gt;to ruyn it add in first line :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;odraw&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Sep 2022 07:17:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/update-old-drawings-to-current-template-help/m-p/11405332#M142337</guid>
      <dc:creator>marcin_otręba</dc:creator>
      <dc:date>2022-09-07T07:17:15Z</dc:date>
    </item>
  </channel>
</rss>

