×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VBScripting trouble
3

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

RE: VBScripting trouble

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

RE: VBScripting trouble

2
(OP)
Thanks Bjorn D
It is very helpful....

RE: VBScripting trouble

(OP)
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!!!

RE: VBScripting trouble

hmm... I'm by no means a V5 programming guru, but that seems like something more suited to CAA then VBA.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources