RoboDK Forum
Copy/Duplicate- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: Copy/Duplicate (/Thread-Copy-Duplicate)



Copy/Duplicate-cmueller-06-04-2023

What is the easiest way to do Copying or Tiling in RoboDK, or should I just continue to duplicate in inventor like I have been, for my welding parts?
Thank you

Clint


RE: Copy/Duplicate-Sergei-06-05-2023

The best method depends on the specific task itself. By the way, the Inventor plug-in should be useful:
//www.sinclairbody.com/doc/en/Plugin-Inventor.html#PluginInventor


RE: Copy/Duplicate-cmueller-06-05-2023

(06-05-2023, 07:39 AM)Sergei Wrote:The best method depends on the specific task itself. By the way, the Inventor plug-in should be useful:
//www.sinclairbody.com/doc/en/Plugin-Inventor.html#PluginInventor

Yup, ty
I've been using it.


RE: Copy/Duplicate-Albert-06-07-2023

By copying or tiling do you mean you would like to automatically create an array of parts and replicate your welding tool-path in multiple locations?


RE: Copy/Duplicate-cmueller-06-20-2023

(06-07-2023, 06:33 AM)Albert Wrote:By copying or tiling do you mean you would like to automatically create an array of parts and replicate your welding tool-path in multiple locations?

Yes!


RE: Copy/Duplicate-Albert-06-20-2023

In this case you can automate this using the RoboDK API.

For example, a sample script in Python would look like this:
Code:
part = RDK.Item("Part with curves", ITEM_TYPE_OBJECT)

# Create a copy
part.Copy()

# Add a new coordinate system
new_frame = RDK.AddFrame("New reference")
new_frame.setPose(transl(100,200,300)) # Set the coordinates of the reference frame

# Create a copy of your part in the new coordinate system
new_part = RDK.Paste(new_frame)
# new_part.setParent(new_frame) # done by Paste

# Create a curve follow project for your part. This is automatically done but the part needs to have curves (or points for a point follow project)
cfp = RDK.AddMachiningProject("New curve follow project")
cfp.setMachiningParameters(part=new_part)