<?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 Export flat pattern dxf for all ipart members in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/9894516#M55591</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;is there any way to export all dxfs from Ipart?&lt;/P&gt;&lt;P&gt;The way I have done it so far is: generate files, insert all them in an assembly, export from assembly using ilogic rule.&lt;/P&gt;&lt;P&gt;I wonder if there is a better way. Another reason to look for it is that Ipart often has got a custom Iproperty called Qty. I fill it from the excel table and would like to have that number in the file name.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 11:54:41 GMT</pubDate>
    <dc:creator>aurel_e</dc:creator>
    <dc:date>2020-11-25T11:54:41Z</dc:date>
    <item>
      <title>Export flat pattern dxf for all ipart members</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/9894516#M55591</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;is there any way to export all dxfs from Ipart?&lt;/P&gt;&lt;P&gt;The way I have done it so far is: generate files, insert all them in an assembly, export from assembly using ilogic rule.&lt;/P&gt;&lt;P&gt;I wonder if there is a better way. Another reason to look for it is that Ipart often has got a custom Iproperty called Qty. I fill it from the excel table and would like to have that number in the file name.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 11:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/9894516#M55591</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2020-11-25T11:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export flat pattern dxf for all ipart members</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/9978643#M55592</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6128690"&gt;@aurel_e&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here below rule will save all the dxf of the iPart member in the folder where iPart is being saved. Technically if there is a sheet metal component then only a flat pattern or dxf can be developed. So you may iterate this rule as per your need in any occurrences of sheet metal in an assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to assign custom properties, you may visit this link:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-rule-to-update-custom-iproperties-with-ipart/td-p/9973877" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-rule-to-update-custom-iproperties-with-ipart/td-p/9973877&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;SheetMetalComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartMember&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;iPartMember&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oTab&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;iPartTableRow&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;iPartFactory&lt;/SPAN&gt;.&lt;SPAN&gt;TableRows&lt;/SPAN&gt;

&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oTab&lt;/SPAN&gt;.&lt;SPAN&gt;MemberName&lt;/SPAN&gt;, &lt;SPAN&gt;"Name of the Memeber"&lt;/SPAN&gt;)

&lt;SPAN&gt;iPart&lt;/SPAN&gt;.&lt;SPAN&gt;ChangeRow&lt;/SPAN&gt;(&lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;oTab&lt;/SPAN&gt;.&lt;SPAN&gt;MemberName&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFeat&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartFeature&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oFeat&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;

	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;SubType&lt;/SPAN&gt; = &lt;SPAN&gt;"{9C464203-9BAE-11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;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;CreateDirectory&lt;/SPAN&gt;(&lt;SPAN&gt;oPath&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;odxfname&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;

	&lt;SPAN&gt;odxf&lt;/SPAN&gt; = &lt;SPAN&gt;"FLAT PATTERN DXF?OuterProfileLayer=0&amp;amp;OuterProfileLayerColor=0;0;0&amp;amp;InteriorProfilesLayer=0&amp;amp;InteriorProfilesLayerColor=0;0;0&amp;amp;BendDownLayerLineType=37633&amp;amp;BendDownLayerColor=0;0;255&amp;amp;BendUpLayerLineType=37633&amp;amp;BendUpLayerColor=0;0;255IV_BEND;IV_BEND_DOWN;IV_OUTER_PROFILE;IV_INTERIOR_PROFILES;IV_FEATURE_PROFILES;IV_FEATURE_PROFILES_DOWN;IV_ALTREP_FRONT;IV_ALTREP_BACK;IV_ROLL_TANGENT;IV_ROLL&amp;amp;InvisibleLayers=IV_TANGENT;IV_TOOL_CENTER;IV_TOOL_CENTER_DOWN;IV_ARC_CENTERS;IV_UNCONSUMED_SKETCHES"&lt;/SPAN&gt; _
		+ &lt;SPAN&gt;"&amp;amp;RebaseGeometry=True"&lt;/SPAN&gt; _
		+ &lt;SPAN&gt;"&amp;amp;SimplifySplines=True"&lt;/SPAN&gt; _
		+ &lt;SPAN&gt;"&amp;amp;SplineTolerance=0.01"&lt;/SPAN&gt; _
		
	&lt;SPAN&gt;odxfname&lt;/SPAN&gt; = &lt;SPAN&gt;oPath&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"\"&lt;/SPAN&gt;&amp;amp; &lt;SPAN&gt;oTab&lt;/SPAN&gt;.&lt;SPAN&gt;MemberName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;".dxf"&lt;/SPAN&gt;
	&lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;DataIO&lt;/SPAN&gt;.&lt;SPAN&gt;WriteDataToFile&lt;/SPAN&gt;(&lt;SPAN&gt;odxf&lt;/SPAN&gt;, &lt;SPAN&gt;odxfname&lt;/SPAN&gt;)
	&lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;FlatPattern&lt;/SPAN&gt;.&lt;SPAN&gt;ExitEdit&lt;/SPAN&gt;
	
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"DXF has been saved in this location: "&lt;/SPAN&gt; + &lt;SPAN&gt;odxfname&lt;/SPAN&gt;)
	&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"There must be a sheetmetal component to get the dxf file!"&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 09:50:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/9978643#M55592</guid>
      <dc:creator>bhavik4244</dc:creator>
      <dc:date>2021-01-05T09:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export flat pattern dxf for all ipart members</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/12898190#M55593</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6716856"&gt;@bhavik4244&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for this post! It was very useful. I am curious, is it possible to run this rule without needing to click ok after each I-part instance has been saved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbanksUHFZ7_0-1721048638686.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1386803i3B42F82A9D7062BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dbanksUHFZ7_0-1721048638686.png" alt="dbanksUHFZ7_0-1721048638686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dylan&lt;/P&gt;&lt;P&gt;INV PRO 23&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 13:05:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-flat-pattern-dxf-for-all-ipart-members/m-p/12898190#M55593</guid>
      <dc:creator>dbanksUHFZ7</dc:creator>
      <dc:date>2024-07-15T13:05:33Z</dc:date>
    </item>
  </channel>
</rss>

