Function to Copy and Move Objects

Good day,

is there a way to call the copy and move function via the API interface?
I already have an existing model and want to copy it and move it to a specific vector.
My current idea is to get the object as a list and then modify it. Is there perhaps a smarter solution for this?

Best regards

Hi Fabian_Allgayer,

the current version does not yet include the desired functions, but the next version should. That's what I call good timing. So watch out for the next release of the API (gRPC) and give it a try.

Best regards
Robert Milrath

1 Like

At the moment, my work around to this lack of feature has been to write extra code to:

  • get an instance of the object of interest from the model,
  • modify its coordinates
  • write the modified object back to the model

Hi Fabian_Allgayer and PSA001,

Just to update you, the functionality you're looking for is now available in version 6.12.0011/2.12.11.

You can now use the move_objects function, including the copying feature.
To get familiar with how it works, please refer to the SteelHall example.

Hope this helps! Feel free to reach out if you need further assistance.

Best regards,

3 Likes