Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScripting trouble 3

Status
Not open for further replies.

jaimangal

Aerospace
Joined
May 17, 2005
Messages
5
Location
FR
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
 
Hello there.

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
 
Thanks Bjorn D
It is very helpful....
 
Hi There,
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!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top