<?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: Any examples of using Workpoints? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754691#M172148</link>
    <description>There's a sample called "Work Point at Mass Center" that's part of the API&lt;BR /&gt;
help.  I think it demonstrates everything you asked about except the&lt;BR /&gt;
visibility part.&lt;BR /&gt;
--&lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API Product Designer&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ed Thompson" &lt;ED.THOMPSON&gt; wrote in message&lt;BR /&gt;
news:608ED00C34961C29C49843F7AD93DC39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I would like to add a workpoint to a part (manually) for other programming&lt;BR /&gt;
&amp;gt; purposes.  Does anyone have any examples of: 1)  Programatically naming a&lt;BR /&gt;
&amp;gt; workpoint.  2) Finding the named work point programatically.  3) Making&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; named workpoint visible (which I think is something like&lt;BR /&gt;
"workpoint.visible=&lt;BR /&gt;
&amp;gt; true", but I can't find any examples of how to address the desired&lt;BR /&gt;
&amp;gt; workpoint).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ED.THOMPSON&gt;</description>
    <pubDate>Tue, 12 Nov 2002 15:51:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-11-12T15:51:09Z</dc:date>
    <item>
      <title>Any examples of using Workpoints?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754690#M172147</link>
      <description>I would like to add a workpoint to a part (manually) for other programming&lt;BR /&gt;
purposes.  Does anyone have any examples of: 1)  Programatically naming a&lt;BR /&gt;
workpoint.  2) Finding the named work point programatically.  3) Making the&lt;BR /&gt;
named workpoint visible (which I think is something like "workpoint.visible=&lt;BR /&gt;
true", but I can't find any examples of how to address the desired&lt;BR /&gt;
workpoint).&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Ed</description>
      <pubDate>Tue, 12 Nov 2002 15:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754690#M172147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-11-12T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples of using Workpoints?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754691#M172148</link>
      <description>There's a sample called "Work Point at Mass Center" that's part of the API&lt;BR /&gt;
help.  I think it demonstrates everything you asked about except the&lt;BR /&gt;
visibility part.&lt;BR /&gt;
--&lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API Product Designer&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Ed Thompson" &lt;ED.THOMPSON&gt; wrote in message&lt;BR /&gt;
news:608ED00C34961C29C49843F7AD93DC39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I would like to add a workpoint to a part (manually) for other programming&lt;BR /&gt;
&amp;gt; purposes.  Does anyone have any examples of: 1)  Programatically naming a&lt;BR /&gt;
&amp;gt; workpoint.  2) Finding the named work point programatically.  3) Making&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; named workpoint visible (which I think is something like&lt;BR /&gt;
"workpoint.visible=&lt;BR /&gt;
&amp;gt; true", but I can't find any examples of how to address the desired&lt;BR /&gt;
&amp;gt; workpoint).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ED.THOMPSON&gt;</description>
      <pubDate>Tue, 12 Nov 2002 15:51:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754691#M172148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-11-12T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754692#M172149</link>
      <description>Brian,&lt;BR /&gt;
&lt;BR /&gt;
Excellent!  I see that I didn't look quite close enough at the example.&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Ed&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Brian Ekins" &lt;BRIAN.EKINS&gt; wrote in message&lt;BR /&gt;
news:8F7E53C36154021423E205F8ACDF0330@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; There's a sample called "Work Point at Mass Center" that's part of the API&lt;BR /&gt;
&amp;gt; help.  I think it demonstrates everything you asked about except the&lt;BR /&gt;
&amp;gt; visibility part.&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Brian Ekins&lt;BR /&gt;
&amp;gt; Autodesk Inventor API Product Designer&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ed Thompson" &lt;ED.THOMPSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:608ED00C34961C29C49843F7AD93DC39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I would like to add a workpoint to a part (manually) for other&lt;BR /&gt;
programming&lt;BR /&gt;
&amp;gt; &amp;gt; purposes.  Does anyone have any examples of: 1)  Programatically naming&lt;BR /&gt;
a&lt;BR /&gt;
&amp;gt; &amp;gt; workpoint.  2) Finding the named work point programatically.  3) Making&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; named workpoint visible (which I think is something like&lt;BR /&gt;
&amp;gt; "workpoint.visible=&lt;BR /&gt;
&amp;gt; &amp;gt; true", but I can't find any examples of how to address the desired&lt;BR /&gt;
&amp;gt; &amp;gt; workpoint).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ED.THOMPSON&gt;&lt;/BRIAN.EKINS&gt;</description>
      <pubDate>Tue, 12 Nov 2002 16:10:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754692#M172149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-11-12T16:10:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754693#M172150</link>
      <description>Brian,&lt;BR /&gt;
&lt;BR /&gt;
Is if possible in R6 to place a workpoint in an assembly?&lt;BR /&gt;
&lt;BR /&gt;
I tried the following code, but something is wrong?&lt;BR /&gt;
&lt;BR /&gt;
    Dim Comp As ComponentOccurrence&lt;BR /&gt;
    Set Comp = ThisApplication.ActiveDocument.SelectSet.Item(1)&lt;BR /&gt;
&lt;BR /&gt;
    Dim oWorkPoint As WorkPoint&lt;BR /&gt;
    Set oWorkPoint = Comp.WorkPoints.Item("Test Point")&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Ed&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Brian Ekins" &lt;BRIAN.EKINS&gt; wrote in message&lt;BR /&gt;
news:8F7E53C36154021423E205F8ACDF0330@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; There's a sample called "Work Point at Mass Center" that's part of the API&lt;BR /&gt;
&amp;gt; help.  I think it demonstrates everything you asked about except the&lt;BR /&gt;
&amp;gt; visibility part.&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Brian Ekins&lt;BR /&gt;
&amp;gt; Autodesk Inventor API Product Designer&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Ed Thompson" &lt;ED.THOMPSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:608ED00C34961C29C49843F7AD93DC39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I would like to add a workpoint to a part (manually) for other&lt;BR /&gt;
programming&lt;BR /&gt;
&amp;gt; &amp;gt; purposes.  Does anyone have any examples of: 1)  Programatically naming&lt;BR /&gt;
a&lt;BR /&gt;
&amp;gt; &amp;gt; workpoint.  2) Finding the named work point programatically.  3) Making&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; named workpoint visible (which I think is something like&lt;BR /&gt;
&amp;gt; "workpoint.visible=&lt;BR /&gt;
&amp;gt; &amp;gt; true", but I can't find any examples of how to address the desired&lt;BR /&gt;
&amp;gt; &amp;gt; workpoint).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ED.THOMPSON&gt;&lt;/BRIAN.EKINS&gt;</description>
      <pubDate>Fri, 15 Nov 2002 02:41:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754693#M172150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-11-15T02:41:26Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754694#M172151</link>
      <description>Hi Ed,&lt;BR /&gt;
&lt;BR /&gt;
Here's a sample that demonstrates creating work features in an assembly.&lt;BR /&gt;
&lt;BR /&gt;
Public Sub AssemblyWorkFeatures()&lt;BR /&gt;
    ' Get a reference to the assembly component definition.&lt;BR /&gt;
    Dim oCompDef As AssemblyComponentDefinition&lt;BR /&gt;
    Set oCompDef = ThisApplication.ActiveDocument.ComponentDefinition&lt;BR /&gt;
&lt;BR /&gt;
    ' Get a reference to the TransientGeometry object.&lt;BR /&gt;
    Dim oTG As TransientGeometry&lt;BR /&gt;
    Set oTG = ThisApplication.TransientGeometry&lt;BR /&gt;
&lt;BR /&gt;
    ' Create a work point at (0,0,0)&lt;BR /&gt;
    Dim oWPoint As WorkPoint&lt;BR /&gt;
    Set oWPoint = oCompDef.WorkPoints.AddFixed(oTG.CreatePoint(2, 0, 0))&lt;BR /&gt;
    oWPoint.Name = "My WorkPoint"&lt;BR /&gt;
&lt;BR /&gt;
    ' Create a work axis through (3,1,0) and along the X axis.&lt;BR /&gt;
    Dim oWAxis As WorkAxis&lt;BR /&gt;
    Set oWAxis = oCompDef.WorkAxes.AddFixed(oTG.CreatePoint(3, 1, 0), _&lt;BR /&gt;
                                        oTG.CreateUnitVector(1, 0, 0))&lt;BR /&gt;
    oWAxis.Name = "My WorkAxis"&lt;BR /&gt;
&lt;BR /&gt;
    ' Create a work plane that passes through (2,2,0) and is&lt;BR /&gt;
    ' 45 degrees to the x-z plane.&lt;BR /&gt;
    Dim oWPlane As WorkPlane&lt;BR /&gt;
    Set oWPlane = oCompDef.WorkPlanes.AddFixed(oTG.CreatePoint(2, 2, 0), _&lt;BR /&gt;
                    oTG.CreateUnitVector(0, 0, -1),&lt;BR /&gt;
oTG.CreateUnitVector(-1, -1, 0))&lt;BR /&gt;
    oWPlane.Name = "My WorkPlane"&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
-Brian&lt;BR /&gt;
&lt;BR /&gt;
"Ed Thompson" &lt;ED.THOMPSON&gt; wrote in message&lt;BR /&gt;
news:01AAE77274E35A1DC34C60EA90150C95@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Brian,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Is if possible in R6 to place a workpoint in an assembly?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I tried the following code, but something is wrong?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim Comp As ComponentOccurrence&lt;BR /&gt;
&amp;gt;     Set Comp = ThisApplication.ActiveDocument.SelectSet.Item(1)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Dim oWorkPoint As WorkPoint&lt;BR /&gt;
&amp;gt;     Set oWorkPoint = Comp.WorkPoints.Item("Test Point")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Ed&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Brian Ekins" &lt;BRIAN.EKINS&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:8F7E53C36154021423E205F8ACDF0330@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; There's a sample called "Work Point at Mass Center" that's part of the&lt;BR /&gt;
API&lt;BR /&gt;
&amp;gt; &amp;gt; help.  I think it demonstrates everything you asked about except the&lt;BR /&gt;
&amp;gt; &amp;gt; visibility part.&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Brian Ekins&lt;BR /&gt;
&amp;gt; &amp;gt; Autodesk Inventor API Product Designer&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Ed Thompson" &lt;ED.THOMPSON&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:608ED00C34961C29C49843F7AD93DC39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I would like to add a workpoint to a part (manually) for other&lt;BR /&gt;
&amp;gt; programming&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; purposes.  Does anyone have any examples of: 1)  Programatically&lt;BR /&gt;
naming&lt;BR /&gt;
&amp;gt; a&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; workpoint.  2) Finding the named work point programatically.  3)&lt;BR /&gt;
Making&lt;BR /&gt;
&amp;gt; &amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; named workpoint visible (which I think is something like&lt;BR /&gt;
&amp;gt; &amp;gt; "workpoint.visible=&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; true", but I can't find any examples of how to address the desired&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; workpoint).&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Ed&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/ED.THOMPSON&gt;&lt;/BRIAN.EKINS&gt;&lt;/ED.THOMPSON&gt;</description>
      <pubDate>Thu, 28 Nov 2002 11:26:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/any-examples-of-using-workpoints/m-p/754694#M172151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-11-28T11:26:49Z</dc:date>
    </item>
  </channel>
</rss>

