| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink 3D Animation |
| Contents | Index |
| Learn more about Simulink 3D Animation |
vrcadcleanup('filename')
vrcadcleanup('filename', 'hint')
vrcadcleanup('filename') copies the specified file to a backup file with the extension bak. It then modifies the VRML file exported from Pro/ENGINEER® or SolidWorks. This cleanup enables the Simulink 3D Animation software to use these files.
vrcadcleanup performs the following modifications:
Removal of everything except inlines, viewpoints, and transforms
Provision of names for inline transforms
vrcadcleanup('filename', 'hint') takes in account the value of 'hint' during conversion. Possible value of 'hint' includes:
| Argument | Description |
|---|---|
| 'solidworks' | Assumes that the software is exporting the original set of VRML files from SolidWorks. This option adds or increments the numerical suffix to the node names to match the part names that exist in the corresponding physical modeling XML file. |
This function expects the input file structure to correspond to the typical output of the specified CAD tools. The typical input file should contain:
A structure of viewpoints and inline nodes (possibly contained in one layer of transform nodes)
One inline node for each part of the exported assembly
The function also performs the following:
Upon output, discards any additional nodes, including transform nodes, that do not contain inline nodes.
Processes hierarchically organized assemblies, where inline files instead of part geometries contain additional groups of nested node inline nodes. In such subassembly files, copies all inline references to the main VRML file. The function wraps these inline references with a Transform node, using a name that corresponds to the subassembly name.
Note If you call this function for a file that is not a product of a CAD export filter, the output file might be corrupted. |
To clean up the VRML file four_link.wrl:
vrcadcleanup('four_link.wrl');
![]() | figure (vr.figure) | vr.canvas | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |