Solid Bodies
The methods in this chapter allow a Creo Object TOOLKIT Java application to access, modify, and create geometric bodies in a solid. We recommend that you study the Creo Parametric documentation on geometric bodies, and develop experience with manipulating geometric bodies using the Creo Parametric commands before attempting to use these methods.
Solid Body Information
The state of the body is derived from the features and geometry in which the body is created.
Methods introduced:
The method pfcSolid.SolidBody.GetBodyState specifies the state of the body using the enumerated type pfcSolid.SolidBodyState. The valid values are:
•  BODY_STATE_MISSING
•  BODY_STATE_CONSUMED
•  BODY_STATE_NO_CONTR_FEAT
•  BODY_STATE_NO_GEOMETRY
•  BODY_STATE_ACTIVE
The method pfcSolid.SolidBody.IsConstruction checks if the body is a construction body. The method returns a True if solid body is a construction body.
The method pfcSolid.SolidBody.ListSurfaces lists all the surfaces in the specified body.
The method pfcSolid.Solid.GetDefaultBody returns the default body in the specified solid.
The method pfcSolid.SolidBody.GetFeatures lists the features that are associated with the specified body.
Use the method pfcSolid.SolidBody.GetOutline 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 method pfcSolid.SolidBody.IsSheetmetal checks if the specified body is an active sheetmetal body.
The method pfcSolid.SolidBody.GetDensity determines the density of the body.
Use the method pfcSolid.SolidBody.GetMassProperty to retrieve the mass properties of a body in the specified coordinate system.
Creating a Solid Body
The object WSolidBody represents a solid body.
Methods Introduced:
The method wfcSolid.WSolid.CreateBody creates a new body in the specified solid.
The method wfcSolid.WSolid.DeleteBody deletes the specified body in the solid.
The method wfcSolid.WSolidBody.SetDefault sets the solid body as a default body.
The method wfcSolid.WSolidBody.SetConstruction sets the solid body as a construction body.