Library | Module

Interface IpfcComponentFeat



Description

Specifies a component feature.
Direct Parent Classes:
IpfcFeature



Property Summary

PropertyCompTypeas IpfcComponentType [optional]
The component type, which identifies the purpose for which the component is used in a production assembly.
PropertyIsBulkitemas Boolean
true if the component is a bulkitem, false otherwise.
PropertyIsFrozenas Boolean
true if the component is frozen due to missing references, false otherwise.
PropertyIsPackagedas Boolean
true if the component is completely packaged, false if it is partially or fully constrained.
PropertyIsPlacedas Boolean
true if the component is placed in the assembly, false if it is unplaced.
PropertyIsSubstituteas Boolean
true if the component is a substitution in a simplified rep, false otherwise.
PropertyIsUnderconstrainedas Boolean
true if the component is partially constrained, false if it is fully packaged or fully constrained.
PropertyModelDescras IpfcModelDescriptor
The model descriptor of the component part or subassembly
PropertyPositionas IpfcTransform3D
The initial position and orientation of the component in the assembly. If the component is fully packaged, this is the actual position. If the component is underconstrained, the constraints will override part of this matrix. If the component is fully constrained, the entire matrix will be overridden.



Method Summary

SubCopyTemplateContents (TemplateModel as IpfcModel)
Copies the specified template model in to the component.
FunctionCreateReplaceOp (NewModel as IpfcModel) as IpfcCompModelReplace
Creates a replacement operation.
FunctionGetConstraints () as IpfcComponentConstraints [optional]
Returns a sequence of objects representing the component constraints.
FunctionGetConstraintsWithCompPath (CompPath as IpfcComponentPath [optional]) as IpfcComponentConstraints [optional]
Returns a sequence of objects representing the component constraints.
SubMoveThroughUI ()
Invokes the Creo Parametric UI to Package/Move the component.
SubRedefineThroughUI ()
Invokes the Creo Parametric dialog box to redefine the component constraints.
SubRegenerate ()
Regenerates the assembly component.
SubSetConstraints (Constraints as IpfcComponentConstraints [optional], ReferenceAssembly as IpfcComponentPath [optional])
Sets the component constraints for the component feature.



Property Detail


PropertyCompTypeas IpfcComponentType [optional]

The component type, which identifies the purpose for which the component is used in a production assembly.




PropertyIsBulkitemas Boolean

true if the component is a bulkitem, false otherwise.




PropertyIsFrozenas Boolean

true if the component is frozen due to missing references, false otherwise.




PropertyIsPackagedas Boolean

true if the component is completely packaged, false if it is partially or fully constrained.




PropertyIsPlacedas Boolean

true if the component is placed in the assembly, false if it is unplaced.




PropertyIsSubstituteas Boolean

true if the component is a substitution in a simplified rep, false otherwise.




PropertyIsUnderconstrainedas Boolean

true if the component is partially constrained, false if it is fully packaged or fully constrained.




PropertyModelDescras IpfcModelDescriptor

The model descriptor of the component part or subassembly

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - Assembly component model is not a solid or is not in memory.






PropertyPositionas IpfcTransform3D

The initial position and orientation of the component in the assembly. If the component is fully packaged, this is the actual position. If the component is underconstrained, the constraints will override part of this matrix. If the component is fully constrained, the entire matrix will be overridden.

This attribute can be set to move a packaged component. Regenerate to ensure that constraints are reapplied to the component after moving.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The input argument was of type - bulk item .







Method Detail


SubCopyTemplateContents (TemplateModel as IpfcModel)

Copies the specified template model in to the component.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidType - The template type does not correspond to the component type.

IpfcXToolkitFound - Features exist in a model of the component; copying the template to this model is not allowed.

IpfcXToolkitAbort - The model can not be used as a template or has external dependencies. Copy is aborted.

IpfcXToolkitNotValid - Required license not found.


Parameters:
TemplateModel
The template model to copy into the component.



FunctionCreateReplaceOp (NewModel as IpfcModel) as IpfcCompModelReplace

Creates a replacement operation.
Parameters:
NewModel
The new model
Returns:
The new CompModelReplace object



FunctionGetConstraints () as IpfcComponentConstraints [optional]

Returns a sequence of objects representing the component constraints.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidType - The component argument is not a valid assembly component.

IpfcXToolkitNotFound - The assembly component does not have any constraints.


Returns:
Sequence of component constraints.



FunctionGetConstraintsWithCompPath (CompPath as IpfcComponentPath [optional]) as IpfcComponentConstraints [optional]

Returns a sequence of objects representing the component constraints.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidType - The component argument is not a valid assembly component.

IpfcXToolkitNotFound - The assembly component does not have any constraints.


Parameters:
CompPath
The path from the top level assembly to the assembly owning the component feature, if the constraints are to contain external references. Pass null if the constraints will not contain external references.
Returns:
Sequence of component constraints.



SubMoveThroughUI ()

Invokes the Creo Parametric UI to Package/Move the component.

The assembly containing the component must be in the active window.

Exceptions thrown (but not limited to):

IpfcXToolkitUserAbort - The package move was aborted by the user.





SubRedefineThroughUI ()

Invokes the Creo Parametric dialog box to redefine the component constraints.

The assembly containing the component feature must be in the active window.

Exceptions thrown (but not limited to):

IpfcXToolkitUserAbort - The user aborted component redefinition.





SubRegenerate ()

Regenerates the assembly component.



SubSetConstraints (Constraints as IpfcComponentConstraints [optional], ReferenceAssembly as IpfcComponentPath [optional])

Sets the component constraints for the component feature.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidType - The component argument is not a valid assembly component.

<reference to unknown entity pfcExceptions::pfcXToolkitInvalidReference> - Assembly reference must have Assembly Component Path.


Parameters:
Constraints
Sequence of assembly component constraints.
ReferenceAssembly
The path from the top level assembly to the assembly owning the component feature, if the constraints are to contain external references. Pass null if the constraints will not contain external references.