Component2::IsFixed
Description
This method determines if the component is fixed or floating.
Syntax (OLE Automation)
retval = Component2.IsFixed ()
Return:
(BOOL) retval
TRUE if this component is fixed, FALSE if it is floating
Syntax (COM)
status = Component2->IsFixed ( &retval )
Output:
(VARIANT_BOOL) retval
TRUE if this component is fixed, FALSE if it is floating
Return:
(HRESULT) status
S_OK if successful
Remarks
This method only applies to the top level of components. To get the actual state of sub-assemblies, you must get the ModelDoc2 object of the subassembly, show the desired configuration, and get the state (fixed or floating) of the lower components.
To determine if a component is fixed or floating, you must begin the traversal from the subassembly document in the appropriate configuration instead of from the root level. At the root level, all of the components in the subassembly are allowed to move.