Export simulation

Once you have a simulation/program ready in RoboDK you can easily export it as a shareable RoboDK for Web link, as a 3D HTML or 3D PDF.

You can generate RoboDK for Web public links, 3D HTML and 3D PDF documents following these steps:

1.Right click your program (Main Program in this example)

2.Select General - Image 27 Export Simulation…

3.Select Start. The program will start, and the simulation will record until the program is completed.

4.Save the file. After the file is saved it will be automatically opened and you can preview the result.

HTML and PDF simulations are saved as one single file. Compressing an HTML file will remarkably reduce its size. PDF simulations must be opened with Acrobat Reader (not a browser).

The following links are examples of exported RoboDK for Web links:

Example of an exported RoboDK project: https://web.robodk.com/lnk/35303930233736

Open this link https://robodk.com/example/Assembly-and-Palletizing-with-ABB-and-Fanuc and select Toggle 3D view.

You can select details on any example of the stations library and select Toggle 3D View to preview the project in RoboDK for Web.

The following links are examples of 3D HTML simulations:

https://robodk.com/simulations/UR-Paint.html

https://robodk.com/simulations/Welding-3-Fanuc-Robots.html

https://robodk.com/simulations/Robot-Drawing.html

And the following links are examples of 3D PDF simulations:

https://robodk.com/simulations/UR-Paint.pdf

https://robodk.com/simulations/Welding-3-Fanuc-Robots.pdf

https://robodk.com/simulations/Milling-with-External-Axes.pdf

General - Image 28

Blender

You can export your RoboDK simulation to Blender to create photorealistic images and animations. Blender is a free and open-source 3D animation and rendering software. RoboDK provides the ability to load your simulation in Blender, including colored objects and animation sequences.

The Blender export option will add a Blender export format to the Export Simulation window.

General - Image 29

To import the exported RoboDK simulation to Blender, follow these steps:

1.Open Blender.

2.Use the “General” default template, and delete included objects (the cube).

3.Optionally, open the system console WindowToggle System Console

4.Navigate to the scripting view and open the Python file ending with “_bpy.py”, +GeneralScriptingOpen.

5.Run the script with ScriptingRun Script or Alt+P.

6.Wait for the script to complete (check the System console for activity). Depending on the size of the simulation, this process can take a few minutes.

General - Image 30

You can fine tune the materials, rendering options and more in Blender to get the best results. RoboDK does not provide a specific tutorial for this purpose, but Blender as a strong community with plenty of tutorials.

To output the Blender render, follow these steps:

1.Open the Output Properties on the sidebar.

2.Set the resolution and frame rate in Format.

3.Set the file format for FFmpeg in Output.

4.Set the container to MPEG-4 in Encoding.

5.Set the output quality to Perceptually Lossless and the encoding speed to Slowest in Video.

6.Render your animation with RenderRender Animation or CTRL+F12.

7.By default, you file will be saved in /tmp/.

General - Image 31