Assembly Components
Methods Introduced:
The method
pfcComponentFeat::GetIsBulkitem identifies whether an assembly component is a bulk item. A bulk item is a non-geometric assembly feature that should appear in an assembly bill of materials.
The method
pfcComponentFeat::GetIsSubstitute returns a true value if the component is substituted, else it returns a false. When you substitute a component in a simplified representation, you temporarily exclude the substituted component and superimpose the substituting component in its place.
The method
pfcComponentFeat::GetCompType returns the type of the assembly component.
The method
pfcComponentFeat::SetCompType enables you to set the type of the assembly component. The component type identifies the purpose of the component in a manufacturing assembly.
The method
pfcComponentFeat::GetModelDescr returns the model descriptor of the component part or sub-assembly.
|
|
The method pfcComponentFeat::GetModelDescr throws an exception pfcXtoolkitCantOpen if called on an assembly component whose immediate generic is not in session. Handle this exception and typecast the assembly component as pfcSolid, which in turn can be typecast as pfcFamilyMember, and use the method pfcFamilyMember::GetImmediateGenericInfo to get the model descriptor of the immediate generic model.
If you wish to switch to the pre-Wildfire 4.0 mode, set the configuration option retrieve_instance_dependencies to instance_and_generic_deps.
|
The method
pfcComponentFeat::GetIsPlaced determines whether the component is placed.
The method
pfcComponentFeat::SetIsPlaced forces the component to be considered placed. The value of this parameter is important in assembly Bill of Materials.
|
|
Once a component is constrained or packaged, it cannot be made unplaced again.
|
A component of an assembly that is either partially constrained or unconstrained is known as a packaged component. Use the method
pfcComponentFeat::GetIsPackaged to determine if the specified component is packaged.
The method
pfcComponentFeat::GetIsUnderconstrained determines if the specified component is underconstrained, that is, it possesses some constraints but is not fully constrained.
The method
pfcComponentFeat::GetIsFrozen determines if the specified component is frozen. The frozen component behaves similar to the packaged component and does not follow the constraints that you specify.
The method
pfcComponentFeat::GetPosition retrieves the component’s initial position before constraints and movements have been applied. If the component is packaged this position is the same as the constraint’s actual position. This method modifies the assembly component data but does not regenerate the assembly component. To regenerate the component, use the method
pfcComponentFeat::Regenerate.
The method
pfcComponentFeat::CopyTemplateContents copies the template model into the model of the specified component.
The method
pfcComponentFeat::CreateReplaceOp creates a replacement operation used to swap a component automatically with a related component. The replacement operation can be used as an argument to
pfcSolid::ExecuteFeatureOps.
The method
wfcWComponentFeat::MakeUniqueSubAssembly creates a unique instance of the sub-assembly by specifying the path to the sub-assembly. Use the method
wfcWComponentFeat::RemoveUniqueSubAssembly to remove the instance of the sub-assembly.
Use the method
wfcWComponentFeat::IsUnplaced checks if the specified component is unplaced. Unplaced components belong to an assembly without being assembled or packaged. If the method returns true, the component is unplaced.