|
CATIA V5 Programmierung : VBScript / Object required error on Selection
omz am 06.04.2005 um 18:14 Uhr (0)
Hallo, Vielen Danke für Ihr sehr interessant Forum ! Ich wohne in Frankreich, und Deutsch ist nicht so einfach für mich, so Bitte entchuldigen Sie mich für alle Fehler !! ;-) I habe ein Problem mit einem VBScript makro, der die folgenden enthält : ... mySel = CATIA.ActiveDocument.Selection.selectElement2(point line curve, mymessage, false) if mySel = "Normal" and Selection.count=1 then set myEntity = Selection.Item(1).Value ... Das war OK mit R12 und R13, aber nicht mit R14 (SP2), nur fûr "line" und " ...
| | In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : VBScript / Object required error on Selection
omz am 08.04.2005 um 11:18 Uhr (0)
Hello TomTom, You are right, and actually this selectElement2() problem seems to have already been submitted to the IBM support (APAR HD28946) even though I did not find any downloadable fix on the web site... I will try and see with them wether this might be corrected in future SP or versions... Otherwise I am afraid I will have to completely re-develop this macro for R14... :-( Thank you very much for your help !
| | In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : VBScript / Object required error on Selection
omz am 07.04.2005 um 15:29 Uhr (0)
Danke schön für Ihre Antworte ! Diese Lösung ist OK für eine konstant InputObjectType. Ich brauche verschiedene InputOjectType zu benutzen, e.g. "Points" oder "Points or Lines", etc. Was steht in meine makro ist : ... Set mySel = CATIA.ActiveDocument.Selection if isPoint and isLine and isCurve then redim InputObjectType(2) as variant InputObjectType(0)="Point" InputObjectType(1)="Line" InputObjectType(2)="HybridShapeSpline" elseif isPoint and isLine then redim InputObjectType(1) as variant InputObjectType ...
| | In das Form CATIA V5 Programmierung wechseln |
|
Anzeige:
Anzeige: (Infos zum Werbeplatz)
 |