During CAD export, SimMechanics™ Link can encounter CAD translation issues that arise from unsupported CAD elements. The following issues are known.
If a CAD assembly contains one or more unsupported constraints or mates, the SimMechanics Link utility issues a warning message and creates a log file in the folder of the XML import file. The warning message identifies the name of the log file; the log file identifies the unsupported CAD constraints. In the event a constraint warning occurs, review the log file and consider replacing the unsupported constraints or mates with supported equivalents.
The constraint warning does not stop the creation of the XML import file. You can import the XML file into a new SimMechanics model, but the model does not accurately represent the original CAD assembly. During import, constraint warnings appear at the MATLAB® command line.
For a list of supported constraints, see Constraints and Joints.
When you import a CAD assembly that contains an unsupported constraint, SimMechanics replaces the constraint with a Weld Joint block. The block provides zero degrees of freedom between the connecting rigid body frames. To restore the original degrees of freedom between the rigid bodies frames, you must:
In the CAD platform, replace each unsupported constraint with a supported equivalent. When you are finished, export the CAD assembly once again.
In the imported SimMechanics model, manually replace each Weld Joint replacement block with the appropriate joint block.
Note: Replacing unsupported constraints with supported equivalents works in a limited number of cases. In certain cases, no adequate equivalent constraint or joint block exists.