Hallo Joe
Bringt leider nichts, "flackert" immernoch.
Ist ein catvba und mit F8 auch zu sehen was er macht.
Hier mal der Codeschnipsel
''''' Startmodell laden und kopieren
Dim Startmodell As PartDocument
CATIA.RefreshDisplay = False
Set Startmodell = CATIA.Documents.NewFrom("\V5_STARTMOD\0000-00-00_000-03__---_STARTMODELL______________________________--____.CATPart")
Startmodell.Activate
CATIA.ActiveDocument.Product.PartNumber = neuerpartname
Set partselection = CATIA.ActiveDocument.Selection
partselection.Clear
partselection.Add Startmodell.Part
partselection.Copy
'######################################################################################################################
' Startmodell in Zielprodukt einfügen
Start.Activate
Set ProductSelection = CATIA.ActiveDocument.Selection
ProductSelection.Clear
ProductSelection.Add MyProduct
ProductSelection.Paste
'######################################################################################################################
' Startmodell schließen
partselection.Activate
Startmodell.Close
CATIA.RefreshDisplay = True
??????????
Gruß
Fugmann
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP