Rouday
Automotive
- Sep 11, 2020
- 1
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 :
But when I run it, I get error :
"Required object: 'vPMRepReference1'
If someone can helps me for my 1st code on 3DExp
Thank you
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