Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations LittleInch 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
Joined
Sep 24, 2018
Messages
2
Location
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