Hello
I have an iges file. I want to copy selected objects and the paste in different coordinates. How can I do it?
I do not see any samples about that.
Any suggestions?
Thank you
Copy objects
Re: Copy objects
Hi Anna
As per selection have a look at Selection topic in help and Pick sample. There are ways to get a list of IEntity_DG for the selected entities.
Once you have that, use IEntity_DG.Clone() to get a copy. Set its new location/orientation via IEntity_DG.GetLocation(), IFrame.SetOrigin() etc. These will modify the location immediately. Nothing else to call.
You might also need IView_DG to map screen <-> 3D coordinates.
Good luck
As per selection have a look at Selection topic in help and Pick sample. There are ways to get a list of IEntity_DG for the selected entities.
Once you have that, use IEntity_DG.Clone() to get a copy. Set its new location/orientation via IEntity_DG.GetLocation(), IFrame.SetOrigin() etc. These will modify the location immediately. Nothing else to call.
You might also need IView_DG to map screen <-> 3D coordinates.
Good luck