Autodesk Inventor
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Get Coordinate s of workpoint using ilogic
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
128 Views, 2 Replies
03-05-2013 01:35 PM
Hello Everybody,
How to get coordinates of a workpoint using iLogic.
can anyone help me with this
Thanks
------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
Solved! Go to Solution.
Re: Get Coordinate s of workpoint using ilogic
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-05-2013 02:28 PM in reply to:
Ktelang
Hi Ktelang,
Here's a quick example for working with workpoints.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
Dim oTG As TransientGeometry
oTG = ThisApplication.TransientGeometry
Dim oWorkPoint As WorkPoint
'create a workpoint
oWorkPoint = oDoc.ComponentDefinition.WorkPoints.AddFixed(oTG.CreatePoint(1.123, 1.124, 1.125))
'display the new workpoint's coordinates
MessageBox.Show(oWorkPoint.Point.X &", "& oWorkPoint.Point.Y &", "& oWorkPoint.Point.Z, "iLogic1")
'identify the first point in the workpoints collection aka the origin point
oWP = oDoc.ComponentDefinition.WorkPoints(1)
'display the first workpoint's coordinates
MessageBox.Show(oWP.Point.X &", "& oWP.Point.Y &", "& oWP.Point.Z, "iLogic2")
'display a named workpoint's coordinates
oWP1 = oDoc.ComponentDefinition.WorkPoints("Work Point1")
'display the first workpoint's coordinates
MessageBox.Show(oWP1.Point.X &", "& oWP1.Point.Y &", "& oWP1.Point.Z, "iLogic3")

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Re: Get Coordinate s of workpoint using ilogic
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-11-2013 09:15 AM in reply to:
Curtis_Waguespack
Thanks Curtis
It helped
------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------

