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!

Export dimension coordinates from a drawing to Excel by catscript

Status
Not open for further replies.

Froufrou

Aerospace
Jun 7, 2022
2
0
0
BE
Hi everyone,

Glad to join the community !
I have been searching here and on the web how to extract the coordinates of a drawing dimension, I hope you guys could enlighten me.

The goal is to export to Excel the dimensions from a drawing as it is done by the Marc Litzler catscript ( and I want to add the position of the dimension according to the drawing frame.
I guess it might be something like :

Code:
Dim xpos as double
Dim ypos as double
xpos = MyDimension.x
ypos = MyDimension.y
myworksheet.cells(i + 1, 7).Value = xpos
myworksheet.cells(i + 1, 8).Value = ypos

(This is in a loop, looping the selected dimensions)
I have also tried with MyDimension.AnchorPosition and others but none works.
Does any one know how to get that ?
Then, from the (x,y) position, I intend to attribute a frame position like C5 for example.

Thank you for your time !
François
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top