<?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: Change only Size of Thread feature in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13638529#M167</link>
    <description>&lt;P&gt;Are you changing the diameter of the bolt manually, or by using a code process?&amp;nbsp; Either way, since the thread feature is dependent on that earlier feature's size, you will most likely need to 'roll-back' the 'End of Part' to before that thread feature, before changing the diameter of the bolt, then modify the thread size of the thread feature, while it remains in its rolled-back state, then reset the 'End of Part' to its natural end again after that step is finished.&amp;nbsp; We do have ways of doing those roll-back &amp;amp; roll-forward steps by code also, if needed.&amp;nbsp; Either that or suppress the thread feature, instead of roll-back, but suppression is more difficult to work with by code.&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 16:06:25 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2025-05-19T16:06:25Z</dc:date>
    <item>
      <title>Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13636660#M166</link>
      <description>&lt;P&gt;When I change the bolt diameter, the thread feature does not automatically adjust, so an error occurs.&lt;/P&gt;&lt;P&gt;Is there a way to change the Size of the Thread feature so that the error does not occur?&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="tim11_manhhieu_0-1747626958692.png" style="width: 695px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1534664iBFA6E84825206217/image-dimensions/695x330?v=v2" width="695" height="330" role="button" title="tim11_manhhieu_0-1747626958692.png" alt="tim11_manhhieu_0-1747626958692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 03:58:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13636660#M166</guid>
      <dc:creator>tim11_manhhieu</dc:creator>
      <dc:date>2025-05-19T03:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13638529#M167</link>
      <description>&lt;P&gt;Are you changing the diameter of the bolt manually, or by using a code process?&amp;nbsp; Either way, since the thread feature is dependent on that earlier feature's size, you will most likely need to 'roll-back' the 'End of Part' to before that thread feature, before changing the diameter of the bolt, then modify the thread size of the thread feature, while it remains in its rolled-back state, then reset the 'End of Part' to its natural end again after that step is finished.&amp;nbsp; We do have ways of doing those roll-back &amp;amp; roll-forward steps by code also, if needed.&amp;nbsp; Either that or suppress the thread feature, instead of roll-back, but suppression is more difficult to work with by code.&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 16:06:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13638529#M167</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-05-19T16:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13639142#M168</link>
      <description>&lt;P&gt;I change the bolt diameter by code, I change the diameter through parameter.&lt;/P&gt;&lt;P&gt;The idea is to create bolts with different diameters and lengths through parameter.&lt;/P&gt;&lt;P&gt;However when changing the bolt diameter there is an error in the Thread feature.&lt;/P&gt;&lt;P&gt;I can change the Thread feature profile like designation, class.&lt;/P&gt;&lt;P&gt;But I find it unnecessary because just changing Size will eliminate the error.&lt;/P&gt;&lt;P&gt;Moreover, it is easy to cause errors, because if M8 has M8x1.25, but M6 does not have M6x1.25.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 00:23:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13639142#M168</guid>
      <dc:creator>tim11_manhhieu</dc:creator>
      <dc:date>2025-05-20T00:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13640289#M169</link>
      <description>&lt;P&gt;Within the code, get the ThreadFeature, then try setting the 'End of Part' to before that feature, before changing the parameter's value that changes the bolt's diameter.&amp;nbsp; Then, while it is still in that state, update the ThreadFeature to the same size thread specification.&amp;nbsp; Then set the 'End of Part' back to after that ThreadFeature (or to end of all features).&amp;nbsp; That should help eliminate the error.&amp;nbsp; However, there is not much I can do to eliminate the possibility of the other portion of the thread specification, after the diameter portion, not matching an existing/available thread specification within the 'thread.xls' file.&amp;nbsp; I generally do not change those types of things by code where I work, so I do not have any super advanced, or highly developed solutions for preventing thread specification mismatches.&amp;nbsp; You would likely have to develop a Sub or Function routine that you supply the specification to, then have it check within that 'thread.xls' file to see if that specification exists for you...and if it does, apply it, but if not, do not apply it.&amp;nbsp; It would likely be a very large and complex code to accomplish that, due to how large that Excel file is, how many sheets, and how many different layouts/formatting there are across all the sheets.&amp;nbsp; Some 'Search' functionality would likely be required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For further reference, below are some links to online API help about different ways to move the 'End of Part' by code.&lt;/P&gt;
&lt;P&gt;This first one lets you move it to just before, or just after a specific feature.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=PartFeature_SetEndOfPart" target="_blank" rel="noopener"&gt;PartFeature.SetEndOfPart&lt;/A&gt;&amp;nbsp;(method) (is available to pretty much all sub-types of features, such as ExtrudeFeature &amp;amp; ThreadFeature)&lt;/P&gt;
&lt;P&gt;This next one is for moving it to top or bottom of all features in a part.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=PartComponentDefinition_SetEndOfPartToTopOrBottom" target="_blank" rel="noopener"&gt;PartComponentDefinition.SetEndOfPartToTopOrBottom&lt;/A&gt;&amp;nbsp;(method)&lt;/P&gt;
&lt;P&gt;This next one is just an Object type, for if you attempt to navigate the model browser tree nodes, this is one of the objects you can encounter.&amp;nbsp; Not very useful other than that though.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-EndOfFeatures" target="_blank" rel="noopener"&gt;EndOfFeatures&lt;/A&gt;&amp;nbsp;(object)&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 12:32:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13640289#M169</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-05-20T12:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13641454#M170</link>
      <description>&lt;P&gt;Thanks for the help.&lt;BR /&gt;Even if I change the End of Part bar position, it still gives an error if I specify the wrong Thread Designation.&lt;BR /&gt;I'll probably create the Thread Info for each bolt diameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;M6x1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M8x1.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M10x1.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M12x1.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M14x2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M16x2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M18x2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M20x2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M22x3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M24x3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 21 May 2025 01:32:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13641454#M170</guid>
      <dc:creator>tim11_manhhieu</dc:creator>
      <dc:date>2025-05-21T01:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13642515#M171</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/16570444"&gt;@tim11_manhhieu&lt;/a&gt;&amp;nbsp;won't the simpler iLogic code of changing the thread designation work?&lt;BR /&gt;see attached part1.ipt (i was able to change the diameter (thru Form 1) in Inventor 2022 w/o error prompts&lt;BR /&gt;i think my sample is a bit simplistic (as the threads belong to the same family under "ANSI Metric M Profile") but maybe suffice for your use case?&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 12:42:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13642515#M171</guid>
      <dc:creator>jnowel</dc:creator>
      <dc:date>2025-05-21T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change only Size of Thread feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13643495#M172</link>
      <description>&lt;P&gt;It works. Thank you for your time.&lt;/P&gt;&lt;P&gt;But my wish is that I don't need to create thread info for each diameter, when I change the bolt diameter to Φ20,&lt;/P&gt;&lt;P&gt;from that value 20, transform to M20 and pass to the size of the Thread feature,&lt;/P&gt;&lt;P&gt;which is Size 20 so as not to cause errors (no matter what the thread pitch is).&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 00:11:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/change-only-size-of-thread-feature/m-p/13643495#M172</guid>
      <dc:creator>tim11_manhhieu</dc:creator>
      <dc:date>2025-05-22T00:11:27Z</dc:date>
    </item>
  </channel>
</rss>

