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!

fta annotation

Status
Not open for further replies.

sirisarma

Mechanical
Sep 24, 2018
2
IN
Hi All,, i'm trying to create datum with reference frame and set frame text using CreateDatumReferenceFrame from catia using vba. But i'm getting error no geometry associated.
the code i have used so far...
Set annotFactory = annotationSet1.AnnotationFactory
Set annot = annotations.Item(1)
Set usr = UserSurfaceList.Item(1)
Set dat = annotFactory.CreateDatum(usr)
Set frame= annotFactory.CreateDatumReferenceFrame (getting error here..)
Set frm1 = dat.ReferenceFrame.SetFrame("A","B","C")
Set annotation5 = annotFactory.CreateToleranceWithDRF(8, usr, frm1.AssociatedRefFrame.ReferenceFrame)
reference frame is getting created but in CATIA tree it shows error with yellow symbol..on right click it shows no geometry associated with annotation.

Please help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top