Very good work Question: I use a lot of scripts in Catia V5, in this period I add them into a form application (Visual Studio 2019), I don't know why in some Catia release I have some errors (I use R19,R22,R24,R26,R28,R29) syntax errors like: example for extrapol Working in vbscript : "extrapol.SetAssemble True" in Visual studio in some release not Working "extrapol.SetAssemble(True)" (all the class are imported) Is not a singular case, do you had this type of errors? OK, the scripts are working but for an easy management if I use a form application it's easier
I have some limited experience with using VS with CATIA but I must say I like it. However debugging can be tricky compared to VBA. I don't have an answer to your question but I have seen something like this for some drawing macros. For example, usually in VBA you declare the variable and then set it in a different line, but with VSTA, this usually is OK but not always. When it doesn't work I have found you have to put it all in one line like this "Dim MyDrawingGenView As DrawingGenView = MyView.DrawingGenView".
Very good work
Question: I use a lot of scripts in Catia V5, in this period I add them into a form application (Visual Studio 2019), I don't know why in some Catia release I have some errors (I use R19,R22,R24,R26,R28,R29)
syntax errors like:
example for extrapol
Working in vbscript : "extrapol.SetAssemble True"
in Visual studio in some release not Working "extrapol.SetAssemble(True)" (all the class are imported)
Is not a singular case, do you had this type of errors?
OK, the scripts are working but for an easy management if I use a form application it's easier
I have some limited experience with using VS with CATIA but I must say I like it. However debugging can be tricky compared to VBA. I don't have an answer to your question but I have seen something like this for some drawing macros. For example, usually in VBA you declare the variable and then set it in a different line, but with VSTA, this usually is OK but not always. When it doesn't work I have found you have to put it all in one line like this "Dim MyDrawingGenView As DrawingGenView = MyView.DrawingGenView".