Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Feb 24, 2009
51
0
0
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
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.
Back
Top