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.
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