Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
May 17, 2005
5
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
 
Replies continue below

Recommended for you

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
 
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