User`s guide
vrcadcleanup
10-5
vrcadcleanup
Clean up VRML file exported from CAD tools
Syntax
vrcadcleanup('filename')
vrcadcleanup('filename', 'hint')
Description
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