<?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: How do I measure the loop length of a 3D Sketch and set it as a parameter? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808458#M400589</link>
    <description>&lt;P&gt;You will have to have an iLogic rule to accomplish this.&amp;nbsp; Here is a rule that used to use for this exact purpose.&amp;nbsp; I would set this rule to run on the geometry change trigger.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDoc as PartDocument
Dim se As SketchEntity3D
Dim oParameters As Inventor.Parameters

Try
	oDoc = ThisDoc.Document
	se = oDoc.ComponentDefinition.Sketches3D("3D Sketch1").SketchLines3D(1)
	oParameters = oDoc.ComponentDefinition.Parameters
	oParameters.Item("HOSE_LENGTH").Value = ThisApplication.MeasureTools.GetLoopLength(se)
Catch Ex2 As Exception
	MessageBox.Show ("ERROR, HOSE LENGTH VALUE WILL NOT UPDATE" &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; Ex2.Message, _
		"SKETCH LOOP LENGTH ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Sep 2025 19:15:42 GMT</pubDate>
    <dc:creator>andrewiv</dc:creator>
    <dc:date>2025-09-12T19:15:42Z</dc:date>
    <item>
      <title>How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808431#M400586</link>
      <description>&lt;P&gt;How do I measure the loop length of a 3D Sketch with splines and set it as a parameter? For example I want the total length of a hose to be saved as a parameter to show up the Description or QTY field on a drawing. Obviously you can measure it with the Measure tool, but how to set the length to a Parameter? Thanks.&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="2025-09-12 14_42_51.png" style="width: 640px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1570362i7A191A97DDC9631C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-09-12 14_42_51.png" alt="2025-09-12 14_42_51.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 18:49:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808431#M400586</guid>
      <dc:creator>JohnRambo4</dc:creator>
      <dc:date>2025-09-12T18:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808441#M400587</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;This is a question for &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 18:57:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808441#M400587</guid>
      <dc:creator>kacper.suchomski</dc:creator>
      <dc:date>2025-09-12T18:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808458#M400589</link>
      <description>&lt;P&gt;You will have to have an iLogic rule to accomplish this.&amp;nbsp; Here is a rule that used to use for this exact purpose.&amp;nbsp; I would set this rule to run on the geometry change trigger.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDoc as PartDocument
Dim se As SketchEntity3D
Dim oParameters As Inventor.Parameters

Try
	oDoc = ThisDoc.Document
	se = oDoc.ComponentDefinition.Sketches3D("3D Sketch1").SketchLines3D(1)
	oParameters = oDoc.ComponentDefinition.Parameters
	oParameters.Item("HOSE_LENGTH").Value = ThisApplication.MeasureTools.GetLoopLength(se)
Catch Ex2 As Exception
	MessageBox.Show ("ERROR, HOSE LENGTH VALUE WILL NOT UPDATE" &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; Ex2.Message, _
		"SKETCH LOOP LENGTH ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 19:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13808458#M400589</guid>
      <dc:creator>andrewiv</dc:creator>
      <dc:date>2025-09-12T19:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13811991#M400699</link>
      <description>&lt;P&gt;Hi! Another approach is to use an iLogic rule to get the volume of the tube and divide it by the tube cross section area. The result should be the length.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 03:56:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13811991#M400699</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2025-09-16T03:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13812782#M400733</link>
      <description>&lt;P&gt;This worked. I just needed to create a&amp;nbsp;HOSE_LENGTH parameter before running the code, and checking the Export box in Parameters. Now I can have the length populate in the part description. Thanks. How do I get it to auto update on geometry change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strange there isn't a way to dimension the whole length in a sketch but whatever.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 12:41:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13812782#M400733</guid>
      <dc:creator>JohnRambo4</dc:creator>
      <dc:date>2025-09-16T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816756#M400863</link>
      <description>&lt;P&gt;Would something like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2441327"&gt;@kacper.suchomski&lt;/a&gt;&amp;nbsp;may mention help you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://youtu.be/zN06eaBr2eY" target="_blank" rel="noopener"&gt;https://youtu.be/zN06eaBr2eY&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And please vote the idea if you think this is a good addition for future releases of Inventor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/sweep-length-to-parameter/idi-p/13005488" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/sweep-length-to-parameter/idi-p/13005488&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 20:02:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816756#M400863</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2025-09-18T20:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816768#M400864</link>
      <description>&lt;P&gt;That tool looks great. Did you make it available somewhere?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 20:04:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816768#M400864</guid>
      <dc:creator>JohnRambo4</dc:creator>
      <dc:date>2025-09-18T20:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816785#M400866</link>
      <description>&lt;P&gt;Could you send me a private message maybe we can have a look at the possibilities.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 20:17:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816785#M400866</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2025-09-18T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I measure the loop length of a 3D Sketch and set it as a parameter?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816946#M400872</link>
      <description>&lt;P&gt;To have it update whenever the geometry changes you just have to add the ilogic rule to the the event triggers.&amp;nbsp; Just put it under the part geometry change trigger and then it will update the parameter any time the part is changed.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 23:09:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-do-i-measure-the-loop-length-of-a-3d-sketch-and-set-it-as-a/m-p/13816946#M400872</guid>
      <dc:creator>andrewiv</dc:creator>
      <dc:date>2025-09-18T23:09:18Z</dc:date>
    </item>
  </channel>
</rss>

