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!

CATIA V5 CATScript - Determine if Annotation/FTA_Text has a Leader? 1

Status
Not open for further replies.

jmarkus

Mechanical
Jul 11, 2001
377
CA
Hi,

I am writing a CATScript to query the notes in an AnnotationSet and I would like to check if a given FTA_Text note has an associated leader (in 3D - CATPart or CATProduct, not in a drawing). Is there a property or method to do this?

I did find an "Enumerated Type" called "CATFTALeaderAssociativity" - but I have no idea how to make use of it.

Thanks,
Jeff
 
Replies continue below

Recommended for you

Hi.

Annotation class (which represents a FTA . annotation) has Text property that returns DrawingText object, that in turn has Leaders property.
 
Hi Little Cthulhu,

That makes sense, but I can't seem to access that property. My annotation text object is:

Code:
annotations1.Item(A).Text

But if I try
Code:
Dim DrwLeaders as DrawingLeaders
set DrwLeaders = annotations1.Item(A).Text.DrawingText.Leaders

Then I get an error that "object doesn't support this property or method". Is it possible this only applies to 2D drafting annotations and not 3D FT&A?

Thanks,
Jeff
 
I believe it should go like this:

annotations1.Item(A).text().Get2DAnnot().Leaders
 
Thanks! I didn't think of using a function to access the properties, I guess I still have lots to learn!

Jeff
 
I'd blame DS for not being consistent and using confusing method names. Anyway, glad it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top