Move a Robot with VBA in DELMIA

Hello everyone,

I am currently working on a project in DELMIA and I am trying to control and move a robot using VBA scripting. Despite my efforts, I have not been successful in getting the robot to move.

Delmia Vesion 5, Build Day: 04-11-2019, Service Pack 2, Build Number 29,Hot Fix 2

Here is a brief overview of what I am attempting to do:

  • I am trying to use VBA to interact with the robot's joints and motion parameters.
  • I have referenced the necessary libraries and can access other properties and methods of the robot.
  • However, when I try to execute movement commands, nothing happens.

    Dim Mechanisms_  As Mechanisms
    Dim Mechanism_  As Mechanism
    Set Mechanisms_ = objRobot.ReferenceProduct.GetTechnologicalObject("Mechanisms")
    Mechanism = Mechanisms_.item(1) ' Mechanisms_.Count =1 but no Item available --> this is only on robots but with other Kinematics its working

Has anyone else encountered this issue or does anyone have experience with successfully moving a robot in DELMIA using VBA? Any guidance, examples, or documentation references would be greatly appreciated.

Thank you in advance for your help!

Best regards,
Patrick