<?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: Flipping a flat pattern in sheet metal part in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10128290#M121668</link>
    <description>&lt;P&gt;Thanks, code will be used !&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 23:40:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-03T23:40:38Z</dc:date>
    <item>
      <title>Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10125168#M121595</link>
      <description>&lt;P&gt;When I enter a drawing made from a sheet metal part, inventor always defaults the flat pattern to have all the bends going down.&amp;nbsp; I actually need the bends coming in as 'up' instead. Is there any way to automate this ?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 23:42:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10125168#M121595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-02T23:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10125771#M121600</link>
      <description>&lt;P&gt;You know that you can change that in the flat-pattern definition within inventor!?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1614755776893.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/887876iF4311B15E42447E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1614755776893.png" alt="bradeneuropeArthur_0-1614755776893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Or do you need it with coding?&lt;/P&gt;
&lt;P&gt;And do you need it in i-logic; VBA; Vb.net; or else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 07:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10125771#M121600</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T07:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127519#M121639</link>
      <description>&lt;P&gt;Yes, I do it manually every time as of now. Trying to automate processes for my company.&amp;nbsp; Preferably ilogic.&amp;nbsp; Will try to incorporate this with a code that streamlines most of the process of making drawings.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:05:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127519#M121639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T18:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127648#M121642</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;'Dim su As Inventor.DocumentTypeEnum = a.DocumentSubType&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt;.&lt;SPAN&gt;SubType&lt;/SPAN&gt; = &lt;SPAN&gt;"{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;s&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;SheetMetalComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;a&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;FlatPattern&lt;/SPAN&gt; = &lt;SPAN&gt;s&lt;/SPAN&gt;.&lt;SPAN&gt;FlatPattern&lt;/SPAN&gt;
	&lt;SPAN&gt;'f.FlatPatternOrientations.ActiveFlatPatternOrientation.FlipAlignmentAxis&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;fl&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;FlatPatternOrientation&lt;/SPAN&gt; = &lt;SPAN&gt;f&lt;/SPAN&gt;.&lt;SPAN&gt;FlatPatternOrientations&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1)
	&lt;SPAN&gt;fl&lt;/SPAN&gt;.&lt;SPAN&gt;FlipBaseFace&lt;/SPAN&gt;= &lt;SPAN&gt;True&lt;/SPAN&gt;
	
	&lt;SPAN&gt;'MsgBox ("")&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127648#M121642</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T18:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127796#M121651</link>
      <description>&lt;P&gt;Or use this to flip it back an forward:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim a As Inventor.PartDocument = ThisDoc.Document


If a.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then
	Dim s As Inventor.SheetMetalComponentDefinition = a.ComponentDefinition
	Dim f As Inventor.FlatPattern = s.FlatPattern

	Dim fl As Inventor.FlatPatternOrientation = f.FlatPatternOrientations.Item(1)
	If fl.FlipBaseFace = False Then
		fl.FlipBaseFace = True
		ElseIf fl.FlipBaseFace = True
			fl.FlipBaseFace= False
		End If

	End If&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:44:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127796#M121651</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127818#M121655</link>
      <description>&lt;P&gt;Looks great, would you happen to know if this rule can be run from a drawing ?&amp;nbsp; It is usually in the drawing where my coworkers notice that the part needs to be flipped. (The majority of the bends need to be up instead of down).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:55:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127818#M121655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T19:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127836#M121658</link>
      <description>&lt;P&gt;sure it can hang on..&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:04:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127836#M121658</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T20:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127862#M121661</link>
      <description>&lt;LI-CODE lang="general"&gt;Dim dwg As Inventor.DrawingDocument = ThisDrawing.Document

Dim v As Inventor.DrawingView = dwg.ActiveSheet.DrawingViews.Item(1)
'v.ReferencedDocumentDescriptor.ReferencedDocument
Dim a As Inventor.PartDocument = v.ReferencedDocumentDescriptor.ReferencedDocument 'ThisDoc.Document


If a.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then

	Dim s As Inventor.SheetMetalComponentDefinition = a.ComponentDefinition
	Dim f As Inventor.FlatPattern = s.FlatPattern

	Dim fl As Inventor.FlatPatternOrientation = f.FlatPatternOrientations.Item(1)
	If fl.FlipBaseFace = False Then
		fl.FlipBaseFace = True
		ElseIf fl.FlipBaseFace = True
			fl.FlipBaseFace= False
		End If
dwg.Update
	End If&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:12:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127862#M121661</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T20:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127886#M121662</link>
      <description>&lt;P&gt;More user friendly with a Picker selection from the user:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim dwg As Inventor.DrawingDocument = ThisDrawing.Document

Dim v As Inventor.DrawingView '= dwg.ActiveSheet.DrawingViews.Item(1)
v = ThisApplication.CommandManager.Pick(Inventor.selectionfilterenum.kDrawingViewFilter,"Select a Flat Pattern View")
Dim a As Inventor.PartDocument = v.ReferencedDocumentDescriptor.ReferencedDocument 'ThisDoc.Document


If a.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then

	Dim s As Inventor.SheetMetalComponentDefinition = a.ComponentDefinition
	Dim f As Inventor.FlatPattern = s.FlatPattern

	Dim fl As Inventor.FlatPatternOrientation = f.FlatPatternOrientations.Item(1)
	If fl.FlipBaseFace = False Then
		fl.FlipBaseFace = True
		ElseIf fl.FlipBaseFace = True
			fl.FlipBaseFace= False
		End If
dwg.Update
	End If
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:24:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127886#M121662</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T20:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127890#M121663</link>
      <description>&lt;P&gt;Next the error will occur when the View is no Flat Pattern view:&lt;/P&gt;
&lt;P&gt;Now you receive a message if it is not:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim dwg As Inventor.DrawingDocument = ThisDrawing.Document

Dim v As Inventor.DrawingView '= dwg.ActiveSheet.DrawingViews.Item(1)
v = ThisApplication.CommandManager.Pick(Inventor.selectionfilterenum.kDrawingViewFilter, "Select a Flat Pattern View")

If v.IsFlatPatternView = True Then
Dim a As Inventor.PartDocument = v.ReferencedDocumentDescriptor.ReferencedDocument 'ThisDoc.Document


If a.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then

	Dim s As Inventor.SheetMetalComponentDefinition = a.ComponentDefinition
	Dim f As Inventor.FlatPattern = s.FlatPattern

	Dim fl As Inventor.FlatPatternOrientation = f.FlatPatternOrientations.Item(1)
	If fl.FlipBaseFace = False Then
		fl.FlipBaseFace = True
		ElseIf fl.FlipBaseFace = True
			fl.FlipBaseFace= False
		End If
dwg.Update

	End If
Else 
	MsgBox("This View Contains no Flat Pattern")
	End If
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:26:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10127890#M121663</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-03-03T20:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Flipping a flat pattern in sheet metal part</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10128290#M121668</link>
      <description>&lt;P&gt;Thanks, code will be used !&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 23:40:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/flipping-a-flat-pattern-in-sheet-metal-part/m-p/10128290#M121668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T23:40:38Z</dc:date>
    </item>
  </channel>
</rss>

