Hallo,
ich habe folgendes Skript zur Erstellung eines neuen Annotaion Sets im zuvor selektierten Part:
Set mysel = CATIA.ActiveDocument.Selection
ReDim InputObjectType(0)
InputObjectType(0) = "Part"
CATIA.ActiveDocument.Selection.Clear
Status = mysel.SelectElement(InputObjectType, "Part wählen!", False)
Set opart = CATIA.ActiveDocument.Selection.Item(1).value
mysel.EndSelectElement
Set oAnnotationSet = opart.AnnotationSets
opart.UpdateObject oAnnotationSet
Set oNewAnno = oAnnotationSet.Add("ISO")
Im Part klappt das, im Product kommt in der letzten Zeile die Fehlermeldung "The method add failed", obwohl sowohl opart als auch oAnntationSet beide male übereinstimmen.
Weiss jemand woran das liegt??
Danke schonmal,
Tobias
V5R10SP5
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP