Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the origin coordinates of a sketch 1

Status
Not open for further replies.

Lea75

Mechanical
Joined
Feb 24, 2009
Messages
51
Location
ES
Could somebody help me to get the xyz coordinates of a sketch?
I need it to distinguish if a pocket is made on one side or the opoosite of the part.
Hope somebody know how.
Regards
 
Hi,
You do not need the origin coordinates of the sketch to find out the pocket side.Just double click on the pocket then click on the sketch to find out the sketch position.





Regards,
Sudhakar.N
 
Sorry sudhakarn, I wasn't clear enough.
I need the automation code to get the origin of the sketch.
I know I can get it with doublé click on the pocket but I am developing a Little application to make other operations on the part and I need to get this information in order to continue.
Thank you again.
Regards
 
Dim AbsCoord(8)
mySketch.GetAbsoluteAxisData AbsCoord

where

AbsCoord(0) -> Origin X
AbsCoord(1) -> Origin Y
AbsCoord(2) -> Origin Z
AbsCoord(3) -> H Axis X
AbsCoord(4) -> H Axis Y
AbsCoord(5) -> H Axis Z
AbsCoord(6) -> V Axis X
AbsCoord(7) -> V Axis Y
AbsCoord(8) -> V Axis Z
 
Thank you very much gvi70000
That was exactly what I was looking for.
Kind regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top