VBScripting trouble
VBScripting trouble
(OP)
Hi All,
I am new joinee on eng-tips.I am usinf Catia V5 on windows 2000. I am trying to write some automation script for V5 & everytime I declare staement like
Dim NewPart As Document
the error message 'Expect End of statement' pops up.
Can anybody please let me know why this is happening.
Thanks in advance
I am new joinee on eng-tips.I am usinf Catia V5 on windows 2000. I am trying to write some automation script for V5 & everytime I declare staement like
Dim NewPart As Document
the error message 'Expect End of statement' pops up.
Can anybody please let me know why this is happening.
Thanks in advance





RE: VBScripting trouble
In vbscript(.CATvbs), all variables must be declared as variants:
Dim NewPart
or
Dim NewPart as variant
If you create your macro as an .CATScript, your code should work. The V5 automation documentation examples are mainly for CATScript.
-Bjorn D
RE: VBScripting trouble
It is very helpful....
RE: VBScripting trouble
I am trying to get Bounding box functionality done using VB scripting in V5. Let me explain in details. I am trying to design a feature which will let system to find bounding box of given curve or part. Example of such thing can be seen in 'Measure' utility of V5. If we select measure inretia, quickly V5 construct white box around the selected part.
Can anyone please let me know how I can design this in VB scripting please!!!
RE: VBScripting trouble
Lee
http://www.lmco.com