<?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 Betreff: How to find sheetmetal Mark contour in flat pattern? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13044766#M172205</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5056650"&gt;@fullevent&lt;/a&gt;.&amp;nbsp; I am working on other stuff right now, so no time for testing on attached files, but a couple ideas come to mind that may help in this process.&amp;nbsp; Instead of getting all curves from the view, then working backwards, trying to figure out which feature in the model is responsible for them, try doing it the other way around.&amp;nbsp; When you use the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingView_DrawingCurves" target="_blank" rel="noopener"&gt;DrawingView.DrawingCurves&lt;/A&gt; property, specify the MarkFeature as the 'model object' to input.&amp;nbsp; Then you should get all the view geometry belonging to that feature in one &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-DrawingCurvesEnumerator" target="_blank" rel="noopener"&gt;DrawingCurvesEnumerator&lt;/A&gt;.&amp;nbsp; Another thing to keep in mind is 'context' (or edit mode, if that makes more sense).&amp;nbsp; If the view is a flat pattern view, then the context of the model geometry associated with the 2D curves in that view will be in the flat pattern mode of the model file.&amp;nbsp; I'm not sure if you are aware of this or not, but the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-FlatPattern" target="_blank" rel="noopener"&gt;FlatPattern&lt;/A&gt; object is derived from the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-ComponentDefinition" target="_blank" rel="noopener"&gt;ComponentDefinition&lt;/A&gt;, so it is capable of having its own, separate set of parameters, features, and other such things.&amp;nbsp; When in 'folded' mode, you will not even see the parameters defined within the FlatPattern available within the Parameters dialog.&amp;nbsp; So, you may need to transition from scope of the FlatPattern into the 'folded' scope, before you can access the feature that was defined within the 'folded' mode.&amp;nbsp; If the feature was added in 'flat pattern' mode, then it would not be available in the 'folded' mode...unless you used fold/unfold features in the process, or something odd like that, maybe.&amp;nbsp; Just some food for thought.&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; I should probably add this link in here too, to avoid confusion, because the 'folded' model of a sheet metal part is in the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SheetMetalComponentDefinition" target="_blank" rel="noopener"&gt;SheetMetalComponentDefinition&lt;/A&gt;&amp;nbsp;(which is derived from the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-PartComponentDefinition" target="_blank" rel="noopener"&gt;PartComponentDefinition&lt;/A&gt;, but is further customized for sheet metal stuff).&amp;nbsp; To get access to that type of 'definition', create a variable of that Type, then set the variable's value using the PartDocument.ComponentDefinition property, which just says that it returns a normal PartComponentDefinition, in the documentation.&amp;nbsp; But you will get the SheetMetalComponentDefinition type instead.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 16:25:31 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2024-09-25T16:25:31Z</dc:date>
    <item>
      <title>How to find sheetmetal Mark contour in flat pattern?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13043646#M172180</link>
      <description>&lt;P&gt;In our sheetmetal parts we use the Mark-tool to create an identification text that wil be engraved. This Mark-feature is created and placed in the Folded Model. In the Flat Pattern this identification is of course visible as a consequence. Our sheetmetal supplier wants to have DXF files in which the flat-pattern is visible but also wants two or three views of the folded model, if folds are present. We created a VBA macro that finds all sheetmetal parts in an assembly, creates Inventor-dwg files in which the flat-pattern and, if necessary, the views of the folded model are placed. These dwg files will then be exported as final DXF-files by the use of another macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the problem is, the contourlines of the Marking features in all views are all put in the "Visible (ISO)"-layer. I'd like to have all lines that are created by Mark-features in the views of the folded model as well as in the view with the flat-pattern be put in the "Laser Engraving"-layer instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a VBA program in which I can select the flat-pattern-view and iterate through all edges found, but I guess there's no way to find out to which feature those countless edges belong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way in VBA/iLogic to find the Mark features of the folded sheetmetal-document displayed on the dwg, have the associated contourlines of the Mark features selected (for both folded- and flat-pattern views!) and put in the "Laser Engraving"-layer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help is greatly appreciated. I've put two files in this message, the dwg contains both the flat-pattern view and the projections of the folded model.&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-left" image-alt="Mark feature in Folded Model" style="width: 976px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1413746i5E8B993305D68ADD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Export to DXF_Marking_2.png" alt="Mark feature in Folded Model" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Mark feature in Folded Model&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Mark feature created in Folded Model, in Flat Pattern" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1413747iC05FCB3F84517CD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Export to DXF_Marking_1.png" alt="Mark feature created in Folded Model, in Flat Pattern" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Mark feature created in Folded Model, in Flat Pattern&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 09:04:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13043646#M172180</guid>
      <dc:creator>miechh</dc:creator>
      <dc:date>2024-09-25T09:04:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to find sheetmetal Mark contour in flat pattern?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13044605#M172201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/501655"&gt;@miechh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;very interesting challenge.&lt;BR /&gt;Unfortunately, I have not found a solution yet.&lt;BR /&gt;The assignment is relatively easy in the part. The CreatedbyFeature property can be used to assign each edge or surface etc. to the feature used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fullevent_0-1727277899159.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1413972i5BA2918D53258986/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fullevent_0-1727277899159.png" alt="fullevent_0-1727277899159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try the same via the drawing and try to find out from which model feature, for example, a DrawingCurveSegment was created, then an error is stored as the value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fullevent_1-1727278127716.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1413976iAAE7A6A2F67746C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fullevent_1-1727278127716.png" alt="fullevent_1-1727278127716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little frustrating. Maybe we'll find something else.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13044605#M172201</guid>
      <dc:creator>fullevent</dc:creator>
      <dc:date>2024-09-25T15:30:38Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to find sheetmetal Mark contour in flat pattern?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13044766#M172205</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5056650"&gt;@fullevent&lt;/a&gt;.&amp;nbsp; I am working on other stuff right now, so no time for testing on attached files, but a couple ideas come to mind that may help in this process.&amp;nbsp; Instead of getting all curves from the view, then working backwards, trying to figure out which feature in the model is responsible for them, try doing it the other way around.&amp;nbsp; When you use the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingView_DrawingCurves" target="_blank" rel="noopener"&gt;DrawingView.DrawingCurves&lt;/A&gt; property, specify the MarkFeature as the 'model object' to input.&amp;nbsp; Then you should get all the view geometry belonging to that feature in one &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-DrawingCurvesEnumerator" target="_blank" rel="noopener"&gt;DrawingCurvesEnumerator&lt;/A&gt;.&amp;nbsp; Another thing to keep in mind is 'context' (or edit mode, if that makes more sense).&amp;nbsp; If the view is a flat pattern view, then the context of the model geometry associated with the 2D curves in that view will be in the flat pattern mode of the model file.&amp;nbsp; I'm not sure if you are aware of this or not, but the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-FlatPattern" target="_blank" rel="noopener"&gt;FlatPattern&lt;/A&gt; object is derived from the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-ComponentDefinition" target="_blank" rel="noopener"&gt;ComponentDefinition&lt;/A&gt;, so it is capable of having its own, separate set of parameters, features, and other such things.&amp;nbsp; When in 'folded' mode, you will not even see the parameters defined within the FlatPattern available within the Parameters dialog.&amp;nbsp; So, you may need to transition from scope of the FlatPattern into the 'folded' scope, before you can access the feature that was defined within the 'folded' mode.&amp;nbsp; If the feature was added in 'flat pattern' mode, then it would not be available in the 'folded' mode...unless you used fold/unfold features in the process, or something odd like that, maybe.&amp;nbsp; Just some food for thought.&lt;/P&gt;
&lt;P&gt;Edit:&amp;nbsp; I should probably add this link in here too, to avoid confusion, because the 'folded' model of a sheet metal part is in the&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-SheetMetalComponentDefinition" target="_blank" rel="noopener"&gt;SheetMetalComponentDefinition&lt;/A&gt;&amp;nbsp;(which is derived from the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-PartComponentDefinition" target="_blank" rel="noopener"&gt;PartComponentDefinition&lt;/A&gt;, but is further customized for sheet metal stuff).&amp;nbsp; To get access to that type of 'definition', create a variable of that Type, then set the variable's value using the PartDocument.ComponentDefinition property, which just says that it returns a normal PartComponentDefinition, in the documentation.&amp;nbsp; But you will get the SheetMetalComponentDefinition type instead.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 16:25:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-find-sheetmetal-mark-contour-in-flat-pattern/m-p/13044766#M172205</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-09-25T16:25:31Z</dc:date>
    </item>
  </channel>
</rss>

