<?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: Measure the Length of 3D Sketch Helix / Spiral in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654481#M147257</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524915"&gt;@b.mccarthy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That line there is looking for the second 3d sketch as per the OP setup. If you have only one sketch change the index to 1.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Sketches3D&lt;/SPAN&gt;(1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 16:00:58 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2023-01-03T16:00:58Z</dc:date>
    <item>
      <title>Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/9532112#M111129</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning!&amp;nbsp; I think I've got a relatively simple question, but I've got a mind block and cannot seem to get it worked out.&amp;nbsp; I'm trying to determine the length of the helical spiral in the attached part's 3DSketch2.&amp;nbsp; I can figure out how to select the helicalcurve object that I want, but I cannot seem to extract the length from it.&amp;nbsp; If I use the Measure command in the part model, I can obtain the length, but ideally I'd like to assign this to a parameter, so that if the characteristics of the spiral change, the parameter will automatically update.&amp;nbsp; Hopefully this makes sense, but please let me know if you have any questions.&amp;nbsp; Thanks in advance for any assistance, hope all is well and have a most blessed day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peace,&lt;/P&gt;
&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:20:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/9532112#M111129</guid>
      <dc:creator>petestrycharske</dc:creator>
      <dc:date>2020-05-21T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/9533898#M111140</link>
      <description>&lt;P&gt;Pete,&lt;/P&gt;&lt;P&gt;This is your way...&lt;/P&gt;&lt;P&gt;PartComponentDefinition -&amp;gt; Sketches3D -&amp;gt; Item1 -&amp;gt; SketchFixedSplines3D -&amp;gt; Item1 -&amp;gt;&amp;nbsp; : Length : 245,43 (centimeter!)&lt;/P&gt;&lt;P&gt;And take a look at this: &lt;A href="https://modthemachine.typepad.com/files/mathgeometry.pdf" target="_blank"&gt;https://modthemachine.typepad.com/files/mathgeometry.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 11:37:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/9533898#M111140</guid>
      <dc:creator>C-Hoppen</dc:creator>
      <dc:date>2020-05-22T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/9537828#M111206</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104212"&gt;@petestrycharske&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The HelicalCurve contains some sketch entities and one of these is of type SketchFixedSpline3D. This is the object we want to get the length of. Thats actually pretty simple since the object has a length property. It could be a good idea to loop through the sketch entities to find that object. If you add this rule and set it to trigger on any model parameter change I think you'll get the result you want &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch3D&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Dim SE As SketchEntity3D&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SE&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;HelicalCurve&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches3D&lt;/SPAN&gt;(2)
&lt;SPAN style="color: #808080;"&gt;'SE = ThisDoc.Document.ComponentDefinition.Sketches3D(2).SketchLines3D(1)&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;SE&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;HelicalCurves&lt;/SPAN&gt;(1)

&lt;SPAN style="color: #808080;"&gt;'Get parameter&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oParam&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameter&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oParam&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"HelicalCurveLength"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'Parameter doesnt exist&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;



&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;UnitsOfMeasure&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UnitsOfMeasure&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oEnt&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SketchEntity3D&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SE&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchEntities&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oEnt&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Type&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;ObjectTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kSketchFixedSpline3DObject&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSpline&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SketchFixedSpline3D&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oEnt&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetStringFromValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oSpline&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Length&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;LengthUnits&lt;/SPAN&gt;))
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oParam&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;oParam&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByExpression&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"HelicalCurveLength"&lt;/SPAN&gt;, _
			&lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetStringFromValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oSpline&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Length&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;LengthUnits&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;LengthUnits&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
			&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"HelicalCurveLength"&lt;/SPAN&gt;) = &lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetStringFromValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oSpline&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Length&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oUM&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;LengthUnits&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 May 2020 09:36:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/9537828#M111206</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-05-25T09:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114184#M136955</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you direct me to the info that informed you what a 'HelicalCurve' is and where to find it in the Inventor VBA ObjectsBrowser?&lt;/P&gt;&lt;P&gt;Thanx...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 14:16:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114184#M136955</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2022-04-19T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114369#M136960</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88249"&gt;@cadman777&lt;/a&gt;.&amp;nbsp; First of all, the HelicalCurves &amp;amp; HelicalCurve objects and some of the other objects related to them were created within the Inventor API back in 2019.&amp;nbsp; So, if you have an earlier version of Inventor, you may not have access to them yet.&amp;nbsp; In 2019 the HelicalCurves property was added to the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-C30FAF86-6494-4170-AFD7-0D98E686159D" target="_blank" rel="noopener"&gt;Sketch3d&lt;/A&gt; object.&amp;nbsp; It returned a &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=HelicalCurves" target="_blank" rel="noopener"&gt;HelicalCurves&lt;/A&gt; object.&amp;nbsp; For some reason, pretty much all of the browser addresses or URL's for the HelicalCurve related stuff seems to be incomplete right now, much like all the links to the newer ModelState related stuff.&amp;nbsp; That HelicalCurves object has an Add method (among others) and an Item property (among others), both of which return a HelicalCurve object.&amp;nbsp; Then this HelicalCurve object has a property called SketchEntities, which just returns a &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-92314588-BA25-460A-BC1F-D011E193D3F1" target="_blank" rel="noopener"&gt;SketchEntities3DEnumerator&lt;/A&gt; object.&amp;nbsp; That collection could be looped through, and you could use one of the various techniques to identify what specific Type of object each item was, which would lead you towards looking into the more specific object types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another technique for looking into such things would be to scroll down through all the available Sketch related objects in the online help home page, then expand the "Programming Interface" node, then expand the "Inventor API Reference Manual" node, then expand the "Objects" node, then scroll down through all the objects who's names start with "Sketch".&amp;nbsp; When you see something that sounds about right, click on it to learn more.&amp;nbsp; For instance, if I wanted to learn more about what a &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-39FA6A1D-422D-47DD-9AA9-E43BC16F8516" target="_blank" rel="noopener"&gt;SketchFixedSpline3D&lt;/A&gt; object was, I could follow those steps to find its online help page.&amp;nbsp; Unfortunately, this doesn't exactly point you back to the HelicalCurves direction, so it can be difficult to connect the two from this end.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WCrihfield_0-1650380841028.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1056374iF0D0E2E0763B4154/image-size/large?v=v2&amp;amp;px=999" role="button" title="WCrihfield_0-1650380841028.png" alt="WCrihfield_0-1650380841028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WCrihfield_1-1650380868985.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1056376iA66C9701362E68E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="WCrihfield_1-1650380868985.png" alt="WCrihfield_1-1650380868985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:13:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114369#M136960</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-04-19T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114394#M136962</link>
      <description>&lt;P&gt;I have no idea why Autodesk still has not fixed these web page addresses after this many years.&amp;nbsp; Those objects were made available in the 2019 release of Inventor, and now Inventor 2023 is out and available, and they still have not fixed the online help web pages for these objects.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WCrihfield_0-1650381733561.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1056383i6EB1FC040FD52CBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="WCrihfield_0-1650381733561.png" alt="WCrihfield_0-1650381733561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:22:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114394#M136962</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-04-19T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114652#M136964</link>
      <description>&lt;P&gt;Thanx for the clear and concise explanation!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have 2010, so none of this is available to me...bummer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, I tried searching online for "HelicalCurve" and the only relevant link I found after 1/2 an hour of reading was the link for this thread. I will refrain from the usual RANT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to give you a GreenCheckMark b/c you answered my question, but this isn't my thread. Maybe Johnson can do it for me?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 03:04:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11114652#M136964</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-01-03T03:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11653113#M147231</link>
      <description>&lt;P&gt;I have a number of situations where this rule would be helpful, but I could not get it to run. What changes to the code do I need to make? I keep getting these errors:&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="2023-01-02 581.jpg" style="width: 422px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1157927i4CC420CD3105C88C/image-dimensions/422x187?v=v2" width="422" height="187" role="button" title="2023-01-02 581.jpg" alt="2023-01-02 581.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-02 582.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1157928iDE6E5A757F369618/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-02 582.jpg" alt="2023-01-02 582.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Line 5 is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Sketches3D&lt;/SPAN&gt;(2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Measure tool reports a&amp;nbsp;3.068686928 in. length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 00:54:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11653113#M147231</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2023-01-03T00:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654481#M147257</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524915"&gt;@b.mccarthy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That line there is looking for the second 3d sketch as per the OP setup. If you have only one sketch change the index to 1.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Sketches3D&lt;/SPAN&gt;(1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654481#M147257</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-01-03T16:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654578#M147262</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;Thank you for responding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the correction you indicated. This error then presented:&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="2023-01-03 584.jpg" style="width: 422px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1158186i4E33F4AC5309DF82/image-dimensions/422x160?v=v2" width="422" height="160" role="button" title="2023-01-03 584.jpg" alt="2023-01-03 584.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-03 585.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1158187iD9D2E7995221A8C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-03 585.jpg" alt="2023-01-03 585.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running this, perhaps I am incorrect in thinking that this rule will work for a non-periodic curve aka 3D spline. If not, what do I change for that use case?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654578#M147262</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2023-01-03T16:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654833#M147270</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524915"&gt;@b.mccarthy&lt;/a&gt;.&amp;nbsp; That is a tough question to answer, because how to fix it depends on what type of sketch geometry you have within your 3D sketch.&amp;nbsp; There are many possible types of objects that could be found within it, and we don't know for sure which type you may have, so it would be a guessing game for us to suggest something.&amp;nbsp; If you pre-define the variable's Type ahead of time within the code, like the example above, then try to set a value to that variable by attempting to retrieve one from the sketch, and there is none of them in the sketch, it will throw another error.&amp;nbsp; There are a couple of commented out lines of code in the last example that would help make your code a bit more generic (useful in more scenarios).&amp;nbsp; Instead of looking specifically for a HelicalCurve Type object, you could try looking for the first &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SketchEntity3D" target="_blank" rel="noopener"&gt;SketchEntity3d&lt;/A&gt; Type object, which would cover much more possible Types of objects.&amp;nbsp; However, that would still be error prone, because some things, such as SketchPoint3d (and others) can not be measured for length.&amp;nbsp; You may have to use a much larger block of code there, which would attempt to loop through all of the entities in the sketch, check what Type they are, then only attempt to 'measure' certain ones.&amp;nbsp; But from the sounds of it, you are describing a &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SketchLine3D" target="_blank" rel="noopener"&gt;SketchSpline3d&lt;/A&gt; Type object.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 18:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11654833#M147270</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-01-03T18:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11655160#M147273</link>
      <description>&lt;P&gt;I can't remember where I saw it, but I believe there's a snippet of code on here that can be used to identify the type of sketch entity in a sketch. Then the OP can use that to determine what sketch entity type he has, so he can adjust his iLogic descriptor to access it. He can do this on a case-by-case-basisfor each new sketch he creates, and then change his code accordingly to suit that entity type. How does that sound? I just can't find the snippet of code used to ID the sketch entity. Maybe you know it off the top of your head?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 20:21:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11655160#M147273</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2023-01-03T20:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11655168#M147274</link>
      <description>&lt;P&gt;That sounds like a great approach. I vaguely remember a post like that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 20:25:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11655168#M147274</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2023-01-03T20:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11656464#M147297</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524915"&gt;@b.mccarthy&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88249"&gt;@cadman777&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi guys.&amp;nbsp; If you are looking for ways to identify object Type by code, I wrote an article about that early last year that you might find helpful.&amp;nbsp; It points out several of the most popular/easy ways of identifying things.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/community/article/350676" target="_blank" rel="noopener"&gt;Identify The 'Type' And/Or ObjectTypeEnum Name Of Selected Objects&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 12:01:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11656464#M147297</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-01-04T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11656949#M147311</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. That will be helpful, especially since I am a coding newb...&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:34:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11656949#M147311</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2023-01-04T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11665293#M147463</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;I ran your code verbatim, and it generates this for the&amp;nbsp;"HelicalCurveLength" parameter:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-08 596.jpg" style="width: 342px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1160112iD0B212ACB66A2432/image-dimensions/342x36?v=v2" width="342" height="36" role="button" title="2023-01-08 596.jpg" alt="2023-01-08 596.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the Measure tool displays the length as this:&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="2023-01-08 595.jpg" style="width: 390px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1160111iFAAC2F3D062C2DCD/image-dimensions/390x68?v=v2" width="390" height="68" role="button" title="2023-01-08 595.jpg" alt="2023-01-08 595.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why do these values vary?&lt;/LI&gt;&lt;LI&gt;Why does the code round to 3 decimal places?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can post the part, if you wish, but it is a simple helix.&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 03:15:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11665293#M147463</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2023-01-09T03:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure the Length of 3D Sketch Helix / Spiral</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11665463#M147465</link>
      <description>&lt;P&gt;Update...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a rule that will calculate the length of a sweep, and generated a basic sweep using the same sketch. Except for the rounding of&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;'s code, the values are similar:&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="2023-01-08 598.jpg" style="width: 667px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1160152i27480A9B6AF9B02E/image-dimensions/667x60?v=v2" width="667" height="60" role="button" title="2023-01-08 598.jpg" alt="2023-01-08 598.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since 2 different rules return basically the same value, this would appear that the Measure tool is functioning incorrectly, at least for some 3d curves, yes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone verify this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 05:47:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/measure-the-length-of-3d-sketch-helix-spiral/m-p/11665463#M147465</guid>
      <dc:creator>b.mccarthy</dc:creator>
      <dc:date>2023-01-09T05:47:02Z</dc:date>
    </item>
  </channel>
</rss>

