Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

3D Experience V6 - Catscript for mechanism simulation

Status
Not open for further replies.

Rouday

Automotive
Sep 11, 2020
1
0
0
FR
Hello everybody,

I try to make an automation on 3D experience enovia V6 but I face with a problem developing a CATScript.
The programming language is quite different from DS Catia V5xxx.

I want to change the mchanism commands with a catscript (not vba script !). The commands belong to a mechanism named "Mechanism.1"

For example, in the attached picture, I want the code to move the "damping" command by 5mm and steering by 1mm
Pix

I tried to record a macro to begin :
Code:
Sub CATMain()


'---- Begin resolution script for object : DAMPING

Dim vPMRepReference1
' No resolution found for the object vPMRepReference1...

Set kinMechanism1 = vPMRepReference1.GetItem("MCNX05TRBA")

Set kinCommand1 = kinMechanism1.GetItem("DAMPING")

'---- End resolution script

End Sub

But when I run it, I get error :
"Required object: 'vPMRepReference1'

If someone can helps me for my 1st code on 3DExp :)Thank you
 
 https://files.engineering.com/getfile.aspx?folder=79e565ea-5e64-43a4-bc64-0fbff353e16f&file=Mechanism.jpg
Status
Not open for further replies.
Back
Top