Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Get the coordinate of Datum and Geometrical Tolerance

Status
Not open for further replies.

USB Memory

Mechanical
May 28, 2020
44
JP
Hi all

I would like to get the coordinate of Datum and Geometrical Tolerance by VBA,
but I can't find them.

Are there some method or properties to get the coordinate?
sample1_b6bjuk.png


thanks
 
Replies continue below

Recommended for you

why not search the forum?... thread560-323144

regards,
LWolf
 
Thanks you, LWolf

I Checked the script in the link you attached.
the script looks like for text object.
I tried to find a DrawingText object, but couldn't.
There is a Get2dAnnot method to retrieve a DrawingText object in annotation of text and dimension object and the DrawingText has a coordinate.,
but an annotation object of Datum and Geometrical Tolerance dosen't use the method.



 
are those semantic or non-sematic annotations?

regards,
LWolf
 
thanks for helping me.

Both of them are non-semantic annotation.

sample1_dqvtox.png
 
I only found the DrawingGDT that had coordinate of Geometrical Tolerance in DrawingView, but couldn't find the object for a datum.
even if DrawingGDT has the coordinate, there are not a way to get the DrawingView from an annotation object of them as far as I searched.
I go to there from an annotation of text or dimensin that are in the same View because of using Get2dAnnot.
sample1_tldisf.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top