<?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: Dimensioning sheet metal parts in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11240620#M35985</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple questions about your code:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In your "Overall Dimension" code, how does it recognize the intent?&lt;/LI&gt;&lt;LI&gt;In all your coding, is there a reason why you don't comment on what is happening in your code?&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I cannot get the intent to snap to the edges with I add a break in the view. Could you please give me some guidance on how to correct this? (Please see attached image)&lt;/LI&gt;&lt;LI&gt;Since I cant use attributes to get intent on dimensioning the flanges on the flat pattern, how would you define those lines to dimension them?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Otherwise Your code works great! I also appreciate the help.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 22:00:04 GMT</pubDate>
    <dc:creator>jkorson</dc:creator>
    <dc:date>2022-06-16T22:00:04Z</dc:date>
    <item>
      <title>Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11232125#M35983</link>
      <description>&lt;P&gt;Is there any quick tips how to efficiently dimension out a flat pattern and a folded model? Is there any example code(s) I can follow to dimension out a folded sheet metal part views and a flat pattern view?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 16:40:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11232125#M35983</guid>
      <dc:creator>jkorson</dc:creator>
      <dc:date>2022-06-13T16:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11232242#M35984</link>
      <description>&lt;P&gt;You might want to check out my blog. you can find posts about automatically generating&amp;nbsp;&lt;A href="http://www.hjalte.nl/53-automatically-generate-bend-notes" target="_blank" rel="noopener"&gt;bend notes&lt;/A&gt;, &lt;A href="http://www.hjalte.nl/37-auto-overall-dimension" target="_blank"&gt;Overall dimensions&lt;/A&gt;,&amp;nbsp;&lt;A href="http://www.hjalte.nl/40-hole-position-dimensions" target="_blank"&gt;Hole position&lt;/A&gt; and &lt;A href="http://www.hjalte.nl/51-automatically-generate-bend-dimensions" target="_blank"&gt;Bend dimensions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 17:46:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11232242#M35984</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-06-13T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11240620#M35985</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple questions about your code:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In your "Overall Dimension" code, how does it recognize the intent?&lt;/LI&gt;&lt;LI&gt;In all your coding, is there a reason why you don't comment on what is happening in your code?&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I cannot get the intent to snap to the edges with I add a break in the view. Could you please give me some guidance on how to correct this? (Please see attached image)&lt;/LI&gt;&lt;LI&gt;Since I cant use attributes to get intent on dimensioning the flanges on the flat pattern, how would you define those lines to dimension them?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Otherwise Your code works great! I also appreciate the help.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:00:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11240620#M35985</guid>
      <dc:creator>jkorson</dc:creator>
      <dc:date>2022-06-16T22:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11294730#M35986</link>
      <description>&lt;P&gt;After a bunch of trail and error, I have developed some code that works for me. This code was created in Inventor 2022 and might not work in previous versions as it uses iLogic manage objects. I tried using Inventor's API but could not access the flat pattern features. Below is my code that I used to create an origin point and create two ordinate dimensions. To see how to get work points on flat pattern see:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/placing-origin-indicator-on-a-flat-pattern/td-p/11283466#M140250" target="_blank"&gt;Solved: Placing origin indicator on a flat pattern - Autodesk Community - Inventor&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'Sets the origin workpoint on the flat pattern view. Also creates two ordinate dimensions.&lt;/SPAN&gt;
&lt;SPAN&gt;' Set a reference to the drawing document.&lt;/SPAN&gt;
&lt;SPAN&gt;' This assumes a drawing document is active.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;' Set a reference to the active sheet.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;

&lt;SPAN&gt;'Reference the View we want.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;View&lt;/SPAN&gt;(&lt;SPAN&gt;"FlatPattern"&lt;/SPAN&gt;).&lt;SPAN&gt;View&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;iSheet&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;iView&lt;/SPAN&gt; = &lt;SPAN&gt;iSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN&gt;"FlatPattern"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;WorkPoint_Origin&lt;/SPAN&gt; = &lt;SPAN&gt;iView&lt;/SPAN&gt;.&lt;SPAN&gt;GetIntent&lt;/SPAN&gt;(&lt;SPAN&gt;"WorkPoint Origin"&lt;/SPAN&gt;)

&lt;SPAN&gt;' If origin indicator has not been already created, create it first.&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;HasOriginIndicator&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;CreateOriginIndicator&lt;/SPAN&gt;(&lt;SPAN&gt;WorkPoint_Origin&lt;/SPAN&gt;)
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;OriginIndicator&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;OriginIndicator&lt;/SPAN&gt;.&lt;SPAN&gt;Intent&lt;/SPAN&gt; = &lt;SPAN&gt;WorkPoint_Origin&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;' Set a reference to the ordinate dimensions collection.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOrdinateDimensions&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;OrdinateDimensions&lt;/SPAN&gt;
&lt;SPAN&gt;oOrdinateDimensions&lt;/SPAN&gt; = &lt;SPAN&gt;oActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingDimensions&lt;/SPAN&gt;.&lt;SPAN&gt;OrdinateDimensions&lt;/SPAN&gt;

&lt;SPAN&gt;' Create point intents to anchor the dimension to.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;GI1&lt;/SPAN&gt; = &lt;SPAN&gt;iView&lt;/SPAN&gt;.&lt;SPAN&gt;GetIntent&lt;/SPAN&gt;(&lt;SPAN&gt;"Dimension WP:3"&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;GI2&lt;/SPAN&gt; = &lt;SPAN&gt;iView&lt;/SPAN&gt;.&lt;SPAN&gt;GetIntent&lt;/SPAN&gt;(&lt;SPAN&gt;"Dimension WP:4"&lt;/SPAN&gt;)

&lt;SPAN&gt;'Create a point for the text&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;TextPoint1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;XPos&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;YPos&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt;
&lt;SPAN&gt;XPos&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Left&lt;/SPAN&gt; + 1.25
&lt;SPAN&gt;YPos&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Top&lt;/SPAN&gt; + 1.25
&lt;SPAN&gt;TextPoint1&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;XPos&lt;/SPAN&gt;, &lt;SPAN&gt;YPos&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;TextPoint2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
&lt;SPAN&gt;XPos&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Left&lt;/SPAN&gt; + 5.25
&lt;SPAN&gt;YPos&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Top&lt;/SPAN&gt; + 1.25
&lt;SPAN&gt;TextPoint2&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;XPos&lt;/SPAN&gt;, &lt;SPAN&gt;YPos&lt;/SPAN&gt;)

&lt;SPAN&gt;' Create the first ordinate dimension.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOrdinateDimension1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;OrdinateDimension&lt;/SPAN&gt;
&lt;SPAN&gt;oOrdinateDimension1&lt;/SPAN&gt; = &lt;SPAN&gt;oOrdinateDimensions&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;GI1&lt;/SPAN&gt;, &lt;SPAN&gt;TextPoint1&lt;/SPAN&gt;, &lt;SPAN&gt;kVerticalDimensionType&lt;/SPAN&gt;)

&lt;SPAN&gt;' Create the second ordinate dimension.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOrdinateDimension2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;OrdinateDimension&lt;/SPAN&gt;
&lt;SPAN&gt;oOrdinateDimension2&lt;/SPAN&gt; = &lt;SPAN&gt;oOrdinateDimensions&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;GI2&lt;/SPAN&gt;, &lt;SPAN&gt;TextPoint2&lt;/SPAN&gt;, &lt;SPAN&gt;kVerticalDimensionType&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:13:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11294730#M35986</guid>
      <dc:creator>jkorson</dc:creator>
      <dc:date>2022-07-13T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11336022#M35987</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your add-ons, namely Hole Dimensions; Overall Dimensions; and Bend Notes, are intriguing. I could see us implementing this code to automate flat pattern detailing for sheetmetal. Are any of these programs available as VBA modules?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks and kind regards,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INV2022.3 PRO, WIN10PRO&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:30:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11336022#M35987</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2022-08-02T19:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11336063#M35988</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3934006"&gt;@rcolon9E4ZX&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are not addins but iLogic rules. Probably you could convert them to VBA. But I think you should not do that. In my post "&lt;A href="http://www.hjalte.nl/44-is-vba-obsolete" target="_blank" rel="noopener"&gt;Is VBA in Inventor obsolete?&lt;/A&gt;" I explained why.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:50:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11336063#M35988</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-08-02T19:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensioning sheet metal parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11336082#M35989</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. I have used VBA for the past 5yrs in Inventor as it was accessible. I see examples of Inventor macros that are in C-sharp or VB.Net. Do I need to run these from Visual Studio? I could convert my code, but I would not know how to run it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimensioning-sheet-metal-parts/m-p/11336082#M35989</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2022-08-02T19:57:57Z</dc:date>
    </item>
  </channel>
</rss>

