<?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: Feature.ThreadType in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5572013#M55117</link>
    <description>&lt;P&gt;To All,&lt;/P&gt;&lt;P&gt;How do I specify Left Hand or Right Hand thread using the above code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2015 13:01:58 GMT</pubDate>
    <dc:creator>meck</dc:creator>
    <dc:date>2015-04-06T13:01:58Z</dc:date>
    <item>
      <title>Feature.ThreadType</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5493279#M53915</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;In the thread feature, is there a way to switch from ANSI Unified Screw Threads to ANSI Metric M Profile using iLogic? When I try using the code below it tells me it is read only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ThdType = "Metric" Then&lt;BR /&gt;&amp;nbsp;Feature.ThreadType("Thread1") = "ANSI Metric M Profile"&lt;BR /&gt;Else&lt;BR /&gt;&amp;nbsp;Feature.ThreadType("Thread1") = "ANSI Unified Screw Threads"&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried using...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ThdType = "Metric" Then&lt;BR /&gt;&amp;nbsp;Feature.SetThread("Thread1", Thdx, "ANSI Metric M Profile", "6g")&lt;BR /&gt;Else&lt;BR /&gt;&amp;nbsp;Feature.SetThread("Thread1", Thdx, "ANSI Unified Screw Threads", "2A")&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error saying "The thread designation "ANSI Unified Screw Threads" is not valid".&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2015 15:52:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5493279#M53915</guid>
      <dc:creator>meck</dc:creator>
      <dc:date>2015-02-03T15:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Feature.ThreadType</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5497079#M53964</link>
      <description>&lt;P&gt;Hi Mike, &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The syntax of this method is&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Feature&lt;/STRONG&gt;.&lt;STRONG&gt;SetThread&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"featurename", "thread type", "thread designation", "thread class"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;While it looks you specified the third argument as ‘Thread Type’? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In addition, you need to make sure the designation and class are valid with a thread type. &amp;nbsp;e.g. from Thread dialog, you can see the designation and class that are available with a type.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I simply tried with the code below, it works well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;currentType &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;Feature&lt;/STRONG&gt;.&lt;STRONG&gt;ThreadType(&lt;/STRONG&gt;"Thread1"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;MessageBox&lt;/STRONG&gt;.&lt;STRONG&gt;Show(&lt;/STRONG&gt;currentType, "Title"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Feature&lt;/STRONG&gt;.&lt;STRONG&gt;SetThread(&lt;/STRONG&gt;"Thread1", "GB Metric profile", "M7x0.75", "6H"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/STRONG&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;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/152741iF0D337E6FC1084C2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="aa.jpg" title="aa.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 06:16:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5497079#M53964</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2015-02-06T06:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Feature.ThreadType</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5497382#M53979</link>
      <description>&lt;P&gt;Wow. I've looked at that 9 different ways and everytime I missed that fact that I had the order of the arguments wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5497382#M53979</guid>
      <dc:creator>meck</dc:creator>
      <dc:date>2015-02-06T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Feature.ThreadType</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5572013#M55117</link>
      <description>&lt;P&gt;To All,&lt;/P&gt;&lt;P&gt;How do I specify Left Hand or Right Hand thread using the above code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 13:01:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/feature-threadtype/m-p/5572013#M55117</guid>
      <dc:creator>meck</dc:creator>
      <dc:date>2015-04-06T13:01:58Z</dc:date>
    </item>
  </channel>
</rss>

