Hallo CTenschert,
Das ist eine prima Idee; ich habe sie nun folgendermaßen umgesetzt, so dass auch die Geometrie im Bauteil rot eingefärbt wird:
*************************************************
'highlight malpositioned Object
CATIA.ActiveDocument.Selection.Clear
CATIA.ActiveDocument.Selection.Add(MyObject)
Set MyVisProperties = CATIA.ActiveDocument.Selection.VisProperties
MyVisProperties.SetRealColor 255, 0 ,0 ,0
msgbox "Fehler in ... "
MyVisProperties.SetRealColor 255, 255 ,255 ,0
CATIA.ActiveDocument.Selection.Clear
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP