pmit_create_cadmodel
Create object of PmitCadModelH
class
Syntax
PmitError = pmit_create_cadmodel(PmitCadModelH* const
pmitCadModelHOut, const char* name, double mass, const double inertia[6],
const double cg[3], double volume, double sarea, const char* fileName,
const PmitVisMatProp* matprops)
Description
Warning
This content is specific to Simscape™ Multibody™ First Generation software. First-generation features are slated to be deprecated and should be avoided.
PmitError = pmit_create_cadmodel(PmitCadModelH* const
pmitCadModelHOut, const char* name, double mass, const double inertia[6],
const double cg[3], double volume, double sarea, const char* fileName,
const PmitVisMatProp* matprops)
returns an error status PmitError
.
With pmit_create_cadmodel
, you can create
an object of PmitCadModelH
class to represent an
API CAD model.
The body geometry file specified by fileName
carries
no units. This body geometry is interpreted with the units defined
for the API session.
Input Arguments
|
String naming the CAD assembly or part model |
|
Double-type real number specifying the mass of the assembly or part |
|
Double-type real 6-vector specifying the rotational inertia of the assembly or part. See More About. |
|
Double-type real 3-vector specifying the position of the center of gravity of the assembly or part |
|
Double-type real number specifying the volume of the assembly or part |
|
Double-type real number specifying the surface area of the assembly or part |
|
String specifying body geometry file name |
|
Structure of |
Output Arguments
|
Handle object of |
More About
Version History
Introduced in R2009b