Solid
Most of the objects and methods in Creo Object TOOLKIT C++ are used with solid models (parts and assemblies). Because solid objects inherit from the interface pfcModel, you can use any of the pfcModel methods on any pfcSolid, pfcPart, or pfcAssembly object.
Getting a Solid Object
Methods Introduced:
The methods
pfcBaseSession::CreatePart and
pfcBaseSession::CreateAssembly create new solid models with the names you specify.
The methods
pfcComponentPath::GetRoot and
pfcComponentPath::GetLeaf specify the solid objects that make up the component path of an assembly component model. You can get a component path object from any component that has been interactively selected.
The method
pfcMFG::GetSolid retrieves the storage solid in which the manufacturing model’s features are placed. In order to create a UDF group in the manufacturing model, call the method
pfcSolid::CreateUDFGroup on the storage solid.
The method
wfcWSession::GetSolid returns the handle to the specified solid. You must specify the name of the solid and the solid type as the input arguments.