File Solid
Solid with properties derived from CAD file
Libraries:
Simscape /
Multibody /
Body Elements
Description
The File Solid block models a solid using geometry, inertia, color, and reference frame from a CAD file. The block supports various CAD formats listed in the Supported Software and File Formats section.
Supported Software and File Formats
| CAD | Release Supported |
|---|---|
| ACIS | Up to 2020 |
| Autodesk® Inventor | Up to 2022 |
| CATIA V4 | Up to 4.2.5 |
| CATIA V5 | Up to V5-6 R2021 |
| CATIA V6 | Up to V5-6 R2019(R29) |
| Creo-Pro/E | Pro/Engineer 19.0 to Creo 8.0 |
| IGES | 5.1, 5.2, and 5.3 |
| JT | Up to v10.5 |
| NX | V11.0 to NX 18.0, NX to NX12, NX 1847 Series to NX 1980 Series |
| OBJ | All Versions |
| Parasolid | Up to v33 |
| PRC | All Versions |
| Rhino3D | 4 to 7 |
| Solid Edge | V19 - 20, ST - ST10, 2021 |
| SolidWorks® | 97 to 2021 |
| STEP | AP 203 E1/E2, AP 214, and AP 242 |
| STL | All Versions |
| U3D | ECMA-363 |
Note
The block cannot read CAD drawings because they do not contain the necessary data for a solid.
Import Parts
The File Solid block represents the imported part as a rigid body. The block can read the inertia and color data from the CAD file. Alternatively, you can specify these properties explicitly for the imported parts. For details, see Inertia and Graphic.
By default, the block has only one reference frame that defines the position and
orientation of the solid. To create additional frames on the body, in the
Frames section, select the Create button
.
By default, the imported body has only one reference frame that defines the position and orientation of the imported body. The position and orientation of the reference frame are consistent with the model origin in the original CAD file.
If you need to have the connection on a different part of the body or if you
need to have multiple connections on the body, you can create additional frames
on the body. Each frame adds a new frame port to the block. To create additional
frames on the body, in the Frames section, select the
Create button
.
Import Assemblies
The File Solid block represents the imported assembly as a single rigid body using the default pose specified in the CAD file. The block ignores all the constraints in the CAD file and assumes that the whole assembly has one density.
The File Solid block can read density data from the
CAD file if you, under Inertia, specify
Type as Calculate From Geometry
and Based On as Density From File.
To ensure that the block successfully reads the density, the CAD file must have a
density for the whole assembly and the densities of all the parts must either have
the same value or be unspecified. Otherwise, the simulation returns an error.
You can manually specify the density, mass, or inertia properties of the imported assembly. The process is the same as the process for a single part.
You can import an assembly that has parts represented by different modeling methods, such as faceted, polygonal, and BRep models. However, you can create frames only on parts represented by BRep models because they have the necessary boundary primitives, such as points, edges, and faces.
Compute Inertia Properties
To compute the inertia properties of the solid, set the Inertia > Type parameter to
Calculate from Geometry. This setting exposes the
Inertia button in the toolstrip of the Property
Inspector. To compute the inertia properties, click the Inertia button and the
visualization pane displays the computed values.
![]()
The block defines the center of mass in the reference frame of the solid and specifies the moments and products of inertia in the inertia frame of resolution, which aligns its axes with the reference frame and positions its origin at the center of mass of the solid. For more information on specifying the inertia, see Specifying Custom Inertias.
Visualize Solid
The Property Inspector includes a visualization pane that provides instant visual feedback on the solid. Use the pane to check and adjust the shape and color of the solid. To inspect the solid from different angles, select a standard view, interact with the view selection cube or orientation triad, or rotate, pan, and zoom the display.

To view the latest changes to the solid geometry in the visualization pane, in the toolstrip, click Refresh. You can also display the frames on the solid and change the background color of the visualization pane by clicking Frames and Background in the toolstrip.
Export Geometry
The File Solid block can generate a convex hull representation of an imported CAD file in the Simscape Multibody environment. For solids with concave features, the generated geometry is the smallest convex hull that fully encloses the solid. This convex hull serves as an approximation of the true geometry and can be used for spatial contact modeling. The figure shows a body and its convex hull representation.

The block calculates the physical properties, such as mass and inertia, based on the true geometry of a solid.
Examples
Limitations
On Mac, the visualization pane runs slow if the generated geometry has a large number of triangles or vertices. To mitigate this issue, you can use CAD files with less vertices.


