<?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: Using Measure function within iPart. in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878545#M76510</link>
    <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;Sorry for only replying now.&amp;nbsp; Between running around on a project and trying to land new business its hectic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the idea would be when one bolts two plates of steel together, have a hole already where the bolting needs to be done....to then just select the start and end faces to specify the grip length.&amp;nbsp; This should happen as part of the exercise when placing the single part bolt and nut.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached all the part and assembly files of what we already have and use.&amp;nbsp; Also some screenshots of how it should work.&amp;nbsp; Quite happy to arrange a Teams screenshare if needed - I assume you sit in a different timezone than me but I am willing to look at either early morning or late evening for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kobus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 07:24:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-28T07:24:51Z</dc:date>
    <item>
      <title>Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752210#M76499</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;
&lt;P&gt;I am busy setting up a simplified bolt &amp;amp; nut iPart (the assembly in IV is too cumbersome and heavy and fiddly).&amp;nbsp; Anyone ever used the Measure function in an iPart to set a specific parameter, in this case to set the griplength which will then drive the bolt length....?&amp;nbsp; If you have, how would one go about it, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kobus&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:26:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752210#M76499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-25T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752231#M76500</link>
      <description>&lt;P&gt;Hi Kobus,&lt;/P&gt;
&lt;P&gt;I would make the job easier by just (manually) creating a sketch with the normal Inventor tools, with a dimension (a reference dimension if necessary) for the grip length, the parameter for which you can refer to in another parameter like the bolt length. This is normal practice for Inventor parametric part design.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Luke&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:40:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752231#M76500</guid>
      <dc:creator>LukeDavenport</dc:creator>
      <dc:date>2019-04-25T09:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752247#M76501</link>
      <description>&lt;P&gt;Hi Luke,&lt;/P&gt;
&lt;P&gt;I appreciate your answer thanks, however I want to use this in an assembly where I will have parts being bolted together and I do not want to create sketches to drive my grip length.&amp;nbsp; First issue will be to either create a new part just for the sketch and parameter, or then the question would be in which part to have the sketch reside?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to make this as simple as possible so one will have a existing set of holes in the 2 or 3 parts, place the iPart of the bolt/nut/washer combo, select 2 surfaces (Measure function) which will determine the grip length and voila, the bolt part is inserted.&amp;nbsp; The only step thereafter would be to constrain it and the insert will work well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am pretty sure somebody has done this already....my iPart / iLogic capabilities are just lacking...&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kobus&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 09:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752247#M76501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-25T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752301#M76502</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For my understanding:&lt;/P&gt;
&lt;P&gt;you need a (Part) ipart&amp;nbsp; that looks like a bolt with nuts and washer, right.&lt;/P&gt;
&lt;P&gt;Only the grip length is a parameter that needs to be filled in and that is all, and is first measured in the assembly file?&lt;/P&gt;
&lt;P&gt;Of course the bolt diameter is a parameter fot the I part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:19:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752301#M76502</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-04-25T10:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752383#M76503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes you have it to a tee.&amp;nbsp; The actual bolt size I will select from a dropdown list which is part of my table.&amp;nbsp; If I see what the griplength is during this process I can select the bolt length from the dropdown.&amp;nbsp; Maybe once I have this working, I can use the measured griplength in a formula to calculate the bolt length to use but for now I will be happy with just measuring the length during the process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "Bolted Connection" that comes with IV is just too cumbersome and when we create the assemblies with these bolt assemblies in them, more often than not we experience problems when opening it on another user's pc.&amp;nbsp; Granted most of these issues are user errors....its also a time thing.&amp;nbsp; It does make the assembly react slower as well, especially when we start having big assemblies, which happens most of the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kobus&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 11:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752383#M76503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-25T11:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752491#M76504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One suggestion from my side:&lt;/P&gt;
&lt;P&gt;Why don't you use a excel driven part instead.&lt;/P&gt;
&lt;P&gt;Within excel you can create formulas easily to select a grip length within a range.&lt;/P&gt;
&lt;P&gt;I use it often and it is much easier to define than with I-logic of I-parts...&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 11:57:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8752491#M76504</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-04-25T11:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8754550#M76505</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more understanding, can you please demonstrate the process with non confidential sample files ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 06:32:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8754550#M76505</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-04-26T06:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8754983#M76506</link>
      <description>&lt;P&gt;See attached file.&amp;nbsp; Simply two plates being bolted together.&amp;nbsp; The bolts are included and are iParts where you can select the length and specify the grip length manually.&amp;nbsp; I want to replace the grip length manual entry with a prompt using the measure function to get the length between the 2 outer edges of the plates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kobus&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:12:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8754983#M76506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T11:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8754984#M76507</link>
      <description>&lt;P&gt;See attached file.&amp;nbsp; Simply two plates being bolted together.&amp;nbsp; The bolts are included and are iParts where you can select the length and specify the grip length manually.&amp;nbsp; I want to replace the grip length manual entry with a prompt using the measure function to get the length between the 2 outer edges of the plates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kobus&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 11:12:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8754984#M76507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-26T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8768539#M76508</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I have attached files as requested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kobus&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 04:11:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8768539#M76508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-03T04:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8769034#M76509</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use attributesets to detect 2 outer edges of plate. Same outer edges can be used to measure grip length through Inventor API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please mention the edges in a image which can be used to measure length?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 10:06:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8769034#M76509</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-05-03T10:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878545#M76510</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;Sorry for only replying now.&amp;nbsp; Between running around on a project and trying to land new business its hectic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the idea would be when one bolts two plates of steel together, have a hole already where the bolting needs to be done....to then just select the start and end faces to specify the grip length.&amp;nbsp; This should happen as part of the exercise when placing the single part bolt and nut.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached all the part and assembly files of what we already have and use.&amp;nbsp; Also some screenshots of how it should work.&amp;nbsp; Quite happy to arrange a Teams screenshare if needed - I assume you sit in a different timezone than me but I am willing to look at either early morning or late evening for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kobus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 07:24:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878545#M76510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-28T07:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878591#M76511</link>
      <description>&lt;P&gt;Hi @Anonymous ,&lt;/P&gt;&lt;P&gt;Can't you just measure the distance between start- and end face while selecting them for the placement and then set that value to the grip length parameter?&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FaceProxy&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartFacePlanarFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Select start face"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace2&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FaceProxy&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartFacePlanarFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Select end face"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oGripLength&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Double&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Math&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MeasureTools&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetMinimumDistance&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oFace1&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oFace2&lt;/SPAN&gt;), 5) *10
&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oGripLength&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" mm"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 07:55:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878591#M76511</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-06-28T07:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878995#M76512</link>
      <description>&lt;P&gt;Hi again @Anonymous ,&lt;/P&gt;&lt;P&gt;I took the time to write an iLogic rule for you. Hopefully it's what you're looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&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;oFace1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FaceProxy&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartFacePlanarFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Select start face"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFace2&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FaceProxy&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartFacePlanarFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Select end face"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oHole&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FaceProxy&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Pick&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartFaceCylindricalFilter&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Select Circular reference"&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FactoryFile&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"C:\VaultWorkingFolder\Designs\Temp\Jhoel\BoltingAssy\M12 Bolt Nut Washer.ipt"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Full file path to iPart factory&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MemberFile&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"C:\VaultWorkingFolder\Designs\Temp\Jhoel\BoltingAssy\TestMember1"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;".ipt"&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'Full file path to iPart member&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oGripLength&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Double&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Math&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;MeasureTools&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetMinimumDistance&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oFace1&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oFace2&lt;/SPAN&gt;), 5) *10
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustomArr&lt;/SPAN&gt;(0) &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCustomArr&lt;/SPAN&gt;(0) = &lt;SPAN style="color: #800000;"&gt;oGripLength&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" mm"&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddCustomiPartMember&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FactoryFile&lt;/SPAN&gt;, _
&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateMatrix&lt;/SPAN&gt;(), &lt;SPAN style="color: #800000;"&gt;MemberFile&lt;/SPAN&gt;, ,&lt;SPAN style="color: #800000;"&gt;oCustomArr&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oZaxis&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkAxisProxy&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z Axis"&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;oZaxis&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oInsPlane&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;WorkPlaneProxy&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateGeometryProxy&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oMember&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkPlanes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"XY Plane"&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;oInsPlane&lt;/SPAN&gt;)

&lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddMateConstraint&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oZaxis&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oHole&lt;/SPAN&gt;, 0, ,&lt;SPAN style="color: #800000;"&gt;InferredTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kInferredLine&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddMateConstraint&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oFace1&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oInsPlane&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"2.5 mm"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;If you run this rule from the main assembly you've attached previously you'll be asked to select start face, end face and hole.&lt;/P&gt;&lt;P&gt;The code will then place your bolt with desired grip length and constrain it in position &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 11:18:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8878995#M76512</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-06-28T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8880932#M76513</link>
      <description>&lt;P&gt;Thanks a million, if ever you're in South Africa, I owe you a beer and a steak.&amp;nbsp; We're going to put it all together, will keep you up to date.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2019 14:44:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8880932#M76513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-29T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure function within iPart.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8881005#M76514</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy to help!&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Good luck with your project!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jun 2019 16:57:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-measure-function-within-ipart/m-p/8881005#M76514</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2019-06-29T16:57:38Z</dc:date>
    </item>
  </channel>
</rss>

