<?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 SheetMetal - Styles in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/sheetmetal-styles/m-p/2898878#M141522</link>
    <description>&lt;P&gt;I´m trying to update the style&amp;nbsp;in many sheet metal documents by vba in Inventor 2009.&lt;/P&gt;&lt;P&gt;I would update the local styles from the style library.&lt;/P&gt;&lt;P&gt;Is there any way to do this in vba or&amp;nbsp;by iLogic?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2011 08:46:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-31T08:46:46Z</dc:date>
    <item>
      <title>SheetMetal - Styles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/sheetmetal-styles/m-p/2898878#M141522</link>
      <description>&lt;P&gt;I´m trying to update the style&amp;nbsp;in many sheet metal documents by vba in Inventor 2009.&lt;/P&gt;&lt;P&gt;I would update the local styles from the style library.&lt;/P&gt;&lt;P&gt;Is there any way to do this in vba or&amp;nbsp;by iLogic?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2011 08:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/sheetmetal-styles/m-p/2898878#M141522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-31T08:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: SheetMetal - Styles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/sheetmetal-styles/m-p/2899652#M141523</link>
      <description>&lt;P&gt;something like this will do what you want I think in .NET, I am sure that you could convert it to VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is using an list of files from an open file dialog and passing the list into the SMStylesUpdate sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;       &lt;/PRE&gt;&lt;PRE&gt;    Public Sub SMStylesUpdate(ByVal Files As List(Of String))
        For Each I As String In Files
            Dim oDoc As Document = G_oApp.Documents.Open(I)
            If oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
                Dim oPartDoc As PartDocument = oDoc
                If oPartDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then
                    ' we know this is a sheet metal part
                    Dim oSheetMetalCompDef As SheetMetalComponentDefinition = oPartDoc.ComponentDefinition
                    Dim oStyles As SheetMetalStyles = oSheetMetalCompDef.SheetMetalStyles
                    For Each oStyle As SheetMetalStyle In oStyles
                        If oStyle.UpToDate = False Then
                            oStyle.UpdateFromGlobal()
                        End If
                    Next
                End If
            End If
        Next
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2011 19:16:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/sheetmetal-styles/m-p/2899652#M141523</guid>
      <dc:creator>Mike.Wohletz</dc:creator>
      <dc:date>2011-01-31T19:16:55Z</dc:date>
    </item>
  </channel>
</rss>

