<?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: Get thread centre point in the API in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9469506#M12152</link>
    <description>Yes I suppose I could get the COG of the part and use that to determine which end of the cylinder is top?&lt;BR /&gt;&lt;BR /&gt;Many thanks for your assistance again.&lt;BR /&gt;</description>
    <pubDate>Sat, 25 Apr 2020 08:41:19 GMT</pubDate>
    <dc:creator>DWhiteley</dc:creator>
    <dc:date>2020-04-25T08:41:19Z</dc:date>
    <item>
      <title>Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9444898#M12147</link>
      <description>&lt;P&gt;I have managed to get to the 'threadfeature' for a threaded hole.&lt;/P&gt;&lt;P&gt;My question, is how do I find the centre point of the threaded hole from 'threadfeature'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave Whiteley&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:09:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9444898#M12147</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2020-04-15T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9445141#M12148</link>
      <description>&lt;P&gt;You're right that the thread feature itself doesn't provide any information about its location in space.&amp;nbsp; However, it looks like there are a couple of relatively easy solutions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first is to get the original cylinders that were used as input to create the thread.&amp;nbsp; However, those cylinders aren't available after the thread has been created because they may have been consumed.&amp;nbsp; However, you can roll the timeline back to just before the thread feature was created and then query for the cylinders using the&amp;nbsp;inputCylindricalFace property of the ThreadFeature.&amp;nbsp; Then you'll need to move the timeline back to where it was.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second is to look for a cylinder that was created as a result of adding the thread feature.&amp;nbsp; I checked and it looks like even when you model the threads that all thread types will create a cylinder as part of the geometry to model the thread.&amp;nbsp; I like this approach better because it's strictly a query operation and doesn't involve making changes to the model.&amp;nbsp; To do this you will use the faces property of the ThreadFeature and then use the geometry property of each face and look for the face whose geometry is a Cylinder type of object.&amp;nbsp; Then you can use properties on the cylinder to find the position and axis, which will be the same for the thread.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9445141#M12148</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-04-15T15:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9447206#M12149</link>
      <description>&lt;P&gt;That's superb, thanks Brian.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 09:56:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9447206#M12149</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2020-04-16T09:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9468225#M12150</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm nearly there.&lt;/P&gt;&lt;P&gt;I can't seem to get the correct centre point. I was hoping to obtain a point at the top centre of a drilled and tapped hole. Method 2 seems to give a centre point of the cylinder in some strange position.&lt;/P&gt;&lt;P&gt;Is there any way I can get this info?&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="Annotation 2020-04-24 173827.png" style="width: 982px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/759932i56DF87584896F4D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-04-24 173827.png" alt="Annotation 2020-04-24 173827.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 16:38:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9468225#M12150</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2020-04-24T16:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9468350#M12151</link>
      <description>&lt;P&gt;It's not always obvious what the "top" of the hole is.&amp;nbsp; Although admittedly it is in 99.99% of the cases, here's one where it's not.&amp;nbsp; Is the top where the axis emerges or at the highest point where any part of the cylinder exists?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="HoleTop.png" style="width: 280px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/759951iD7F47C6610B86571/image-dimensions/280x278?v=v2" width="280" height="278" role="button" title="HoleTop.png" alt="HoleTop.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latter case is easier to handle and will also provide the "correct" answer in the other 99.99% of the cases.&amp;nbsp; The approach is to get the bounding box of the cylindrical face and get the Z value of the max point (assuming the Z-axis defines up in your case) and use that as the Z value of your point.&amp;nbsp; The X and Y values will come from the cylinder point.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 17:24:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9468350#M12151</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-04-24T17:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9469506#M12152</link>
      <description>Yes I suppose I could get the COG of the part and use that to determine which end of the cylinder is top?&lt;BR /&gt;&lt;BR /&gt;Many thanks for your assistance again.&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Apr 2020 08:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9469506#M12152</guid>
      <dc:creator>DWhiteley</dc:creator>
      <dc:date>2020-04-25T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9472149#M12153</link>
      <description>&lt;P&gt;I don't see how the center of gravity will help.&amp;nbsp; If the orientation of the part is known and consistent you can code your program for that.&amp;nbsp; If the part can be in any orientation, then there is a lot more work to be done and probably some input needed from the user to define what direction is "up".&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 01:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9472149#M12153</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2020-04-27T01:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get thread centre point in the API</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9578201#M12154</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second option works for me until I have a threaded hole in a pattern.&lt;/P&gt;&lt;P&gt;If I try and iterate through the threaded hole features in the component, I only get the original feature.&lt;/P&gt;&lt;P&gt;How can I access the positions of the threaded holes if they are in a pattern?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really lost on this one!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 17:23:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/get-thread-centre-point-in-the-api/m-p/9578201#M12154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-13T17:23:35Z</dc:date>
    </item>
  </channel>
</rss>

