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
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