<?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: iPart WorkPoint access in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8081885#M87584</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we can see when opening the ipart member file, it relates to the factory file when shows as derived part. So we need get the derived part definition to get the real derived components if &lt;SPAN&gt;ComponentOccurrence.IsiPartMember being True&lt;/SPAN&gt;, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Dim oDerivedPEntities As DerivedPartEntities&lt;BR /&gt; Set oDerivedPEntities =&amp;nbsp;&lt;SPAN&gt;ComponentOccurrence.Definition&lt;/SPAN&gt;.ReferenceComponents.DerivedPartComponents.Item(1).Definition.WorkFeatures&lt;BR /&gt; &lt;BR /&gt; Dim oWP As WorkPoint&lt;BR /&gt; Set oWP = oDerivedPEntities.Item(1).ReferencedEntity&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 05:17:26 GMT</pubDate>
    <dc:creator>JaneFan</dc:creator>
    <dc:date>2018-06-21T05:17:26Z</dc:date>
    <item>
      <title>iPart WorkPoint access</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8080144#M87583</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I publish an iPart to Content Center and Place it in an assembly with Content Center I can access the WorkPoints with ComponentOccurrence.Definition.WorkPoints&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I just place the iPart by selecting an *ipt file I cannot access the WorkPoints.&lt;/P&gt;&lt;P&gt;I can see the difference with &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;.IsiPartMember. It returns true if placed from a file and false if placed though Content Center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how do I access the workpoints from a&amp;nbsp;&lt;SPAN&gt;iPartMember&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8080144#M87583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-20T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: iPart WorkPoint access</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8081885#M87584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we can see when opening the ipart member file, it relates to the factory file when shows as derived part. So we need get the derived part definition to get the real derived components if &lt;SPAN&gt;ComponentOccurrence.IsiPartMember being True&lt;/SPAN&gt;, like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Dim oDerivedPEntities As DerivedPartEntities&lt;BR /&gt; Set oDerivedPEntities =&amp;nbsp;&lt;SPAN&gt;ComponentOccurrence.Definition&lt;/SPAN&gt;.ReferenceComponents.DerivedPartComponents.Item(1).Definition.WorkFeatures&lt;BR /&gt; &lt;BR /&gt; Dim oWP As WorkPoint&lt;BR /&gt; Set oWP = oDerivedPEntities.Item(1).ReferencedEntity&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 05:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8081885#M87584</guid>
      <dc:creator>JaneFan</dc:creator>
      <dc:date>2018-06-21T05:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: iPart WorkPoint access</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8083483#M87585</link>
      <description>&lt;P&gt;Thanks! works but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the workpoint and then need to get a point from it that I can use relative to a drawing view. My VB.net addin works with *.idw files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works with non-iParts.&lt;/P&gt;&lt;PRE&gt;Dim WorkPointProxy As Object
Call ComponentOccurrence.CreateGeometryProxy(WorkPoint, WorkPointProxy)
Point = WorkPointProxy.Point&lt;/PRE&gt;&lt;P&gt;I can not get a Point from an iPart WorkPoint though (unless iPart is placed from Content Center). I played around with&amp;nbsp;ReferenceComponents and DerivedPartComponents but no luck. I do not have a good understanding of what is going on here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 17:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ipart-workpoint-access/m-p/8083483#M87585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T17:24:36Z</dc:date>
    </item>
  </channel>
</rss>

