A new part is created with a default body. This body is in the No Contributing Features state. When you add solid geometry to this part, you can add to this body, or create a new body. You can delete bodies that
are in the No Contributing Features state. When you delete a body, it is removed from the part and the Bodies folder in the model tree. The parameters and relations for the body are deleted.
Functions introduced:
The function ProSolidBodyCreate() creates a new body. The input argument sld is the solid owner on which the body needs to be created. The output argument body is the body that is created.
Refer to the Creo Parametric online help for more information about body creation.
The function ProSolidBodiesCollect() collects all the bodies in the specified solid.
The function ProSolidDefaultBodyGet() returns the default body in the specified solid.
The function ProSolidDefaultBodySet() sets the specified body as default body in the specified solid. The input argument default_body is the body to be set as the default body.
Use the function ProSolidBodySurfaceVisit() to visit the surfaces that are included in the specified body.
The function ProSolidBodyDelete() deletes the body in the specified solid. When you delete a body, it is removed from the part and the Bodies folder in the model tree.
The function
ProSolidBodyStateGet() returns the state of the body and is defined by the enumerated data type
ProSolidBodyState and the valid values are:
|
• |
PRO_BODY_STATE_CONSUMED |
|
• |
PRO_BODY_STATE_NO_CONTR_FEAT |
|
• |
PRO_BODY_STATE_NO_GEOMETRY |
Use the function ProSolidBodyIsConstruction() to check if the specified body is a construction body.
Use the function ProSolidBodyConstructionSet() to set the specified body as a construction body. The function returns the error PRO_TK_NO_CHANGE if the body is already a construction body.
Use the function ProSolidBodyOutlineGet() to retrieve the regeneration outline of a solid body, with respect to the base coordinate system orientation. This outline
defines the boundary box of the body. The function returns PRO_TK_E_NOT_FOUND if the solid body is empty.
The function ProSolidBodyIsSheetmetal() checks if the specified body is an active sheetmetal body.
In Creo Parametric 7.0, a sheetmetal part can have a single sheetmetal body and any number of solid bodies.
Use the function ProSolidBodyIsComposite() to check if the specified body is an active composite body. The function returns a ProBoolean output argument is_cmpst. The value is PRO_B_TRUE if the body is a composite body.