API Documentation > Interfaces > Interface WAssembly
Interface WAssembly
Description
The interface WAssembly combines methods from both Assembly and WSolid.
User Guide References:
Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource :
Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent :
Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner :
Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WParameterOwner :
Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner :
Methods Inherited from Interface com.ptc.wfc.wfcModelItem.WRelationOwner :
Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItemOwner :
Methods Inherited from Interface com.ptc.pfc.pfcView.ViewOwner :
Methods Inherited from Interface com.ptc.pfc.pfcObject.Child :
Methods Inherited from Interface com.ptc.pfc.pfcModel.Model :
Methods Inherited from Interface com.ptc.wfc.wfcModel.WModel :
Methods Inherited from Interface com.ptc.pfc.pfcFamily.FamilyMember :
Methods Inherited from Interface com.ptc.wfc.wfcFamily.WFamilyMember :
Methods Inherited from Interface com.ptc.pfc.pfcSolid.Solid :
Methods Inherited from Interface com.ptc.wfc.wfcSolid.WSolid :
Methods Inherited from Interface com.ptc.pfc.pfcAssembly.Assembly :
Method Summary
void
AutoInterchange (intseq ComponentIDs, WSolid ReplacementModel)
Performs the automatic replacement of assembly member(s).
Create an 'assembly item' for defining flexible components
CreateExplodedState (String Name, /*optional*/ ExplodedAnimationMoveInstructions AnimMoveInstructions)
Creates an explode state
void
Deletes an explode state
void
Expands the light weight graphics representation to the specified level.
Gets the Connectors in the Assembly.
GetExplodeStateFromId (int ExplodedStateId)
Gets the exploded state having given ID
GetExplodeStateFromName (String ExplodedStateName)
Gets the exploded state having given name
Gets the Harnesses in the Assembly.
Gets the Linestocks in the Assembly.
Gets the Spools in the Assembly.
Returns a list of components that satisfy the specified rule.
/*optional*/ WComponentPaths
Returns a list of all displayed components in the solid.
Enables the user to select an explode state
Visits components of an assembly
Method Detail
AutoInterchange
void
AutoInterchange
(intseq ComponentIDs, WSolid ReplacementModel)
Performs the automatic replacement of assembly member(s).
User Guide References:
Parameters:
ComponentIDs
The component identifiers from the node assembly that identifies the replaced members.
ReplacementModel
The replacement component. This can be a part or subassembly.
Returns:
GetConnectors
GetConnectors
()
Gets the Connectors in the Assembly.
User Guide References:
Returns:
List of connectors in the assembly.
GetHarnesses
GetHarnesses
()
Gets the Harnesses in the Assembly.
Exceptions thrown (but not limited to):
XToolkitNotFound - Harness not found in assembly.
User Guide References:
Returns:
List of harnesses in the assembly.
GetLinestocks
GetLinestocks
()
Gets the Linestocks in the Assembly.
Exceptions thrown (but not limited to):
XToolkitNotFound - No linestock found.
User Guide References:
Returns:
List of linestocks in the assembly.
GetSpools
GetSpools
()
Gets the Spools in the Assembly.
Exceptions thrown (but not limited to):
XToolkitNotFound - No spool found.
User Guide References:
Returns:
List of spools in the assembly.
CreateAssemblyItem
CreateAssemblyItem
(AssemblyItemInstructions AsmItemInstrs)
Create an 'assembly item' for defining flexible components
User Guide References:
Parameters:
AsmItemInstrs
Returns:
The Assembly Item.
ExpandLightweightGraphicsSimprep
void
ExpandLightweightGraphicsSimprep
Expands the light weight graphics representation to the specified level.
Exceptions thrown (but not limited to):
XToolkitFound - The expand already exists till the selected level.
User Guide References:
Parameters:
TreeItem
The model feature whose light weight graphic representation is to be expanded.
LWG_Level
The level up to which expand should take place.
Returns:
ListComponentsByAssemblyRule
ListComponentsByAssemblyRule
(AssemblyRule AsmRule)
Returns a list of components that satisfy the specified rule.
Exceptions thrown (but not limited to):
XToolkitInvalidItem - The Rule is invalid.
Parameters:
AsmRule
The rule to evaluate.
Returns:
List of components.
ListDisplayedComponents
/*optional*/ WComponentPaths
ListDisplayedComponents
()
Returns a list of all displayed components in the solid.
User Guide References:
Returns:
List of components.
SelectExplodedState
SelectExplodedState
()
Enables the user to select an explode state
User Guide References:
Returns:
Exploded State
GetExplodeStateFromName
GetExplodeStateFromName
(String ExplodedStateName)
Gets the exploded state having given name
Exceptions thrown (but not limited to):
XToolkitFound - The function found the explode state in the solid.
XToolkitNotFound - The function did not find the explode state in the solid.
XToolkitInvalidPtr - p_solid is not a correct ProSolid pointer.
User Guide References:
Parameters:
ExplodedStateName
The name of the specified explode state in the solid
Returns:
Exploded State
GetExplodeStateFromId
GetExplodeStateFromId
(int ExplodedStateId)
Gets the exploded state having given ID
Exceptions thrown (but not limited to):
XToolkitFound - The function found the explode state in the solid.
XToolkitNotFound - The function did not find the explode state in the solid.
XToolkitInvalidPtr - p_solid is not a correct ProSolid pointer.
User Guide References:
Parameters:
ExplodedStateId
The identifier of the explode state
Returns:
Exploded State
CreateExplodedState
CreateExplodedState
(String Name, /*optional*/ ExplodedAnimationMoveInstructions AnimMoveInstructions)
Creates an explode state
Exceptions thrown (but not limited to):
XToolkitInvalidName - The explode state with given name cannot be created (there is an explode state with such name; or name contains invalid characters)
XToolkitNotFound - Some ProAsmcomppath in comp_set for some moves do not correspond to any component (this error may be also returned for other non-specified cases).
User Guide References:
Parameters:
Name
The name of the state. Cannot be NULL
AnimMoveInstructions
Returns:
Exploded State
DeleteExplodedState
void
DeleteExplodedState
(WExplodedState ExplodedState)
Deletes an explode state
Exceptions thrown (but not limited to):
XToolkitNotFound - explode state was not found.
User Guide References:
Parameters:
ExplodedState
The explode state to delete. Cannot be NULL
Returns:
VisitComponents
VisitComponents
(VisitingClient visitingClient)
Visits components of an assembly
If ApplyAction of the visiting client returns a value other than TK_NO_ERROR, this method returns.
If ApplyFilter returns TK_CONTINUE, the item is skipped (not passed to ApplyAction).
In C++ Object Toolkit, use wfcStatusToPro and wfcStatusFromPro to convert the returned status to ProError and back.
In ApplyAction & ApplyFilter of the visiting client, pfcObject pointer must be cast as wfcWComponentFeat.
Casting as other types may lead to unexpected behaviour
Exceptions thrown (but not limited to):
XToolkitNotFound - Either no features exist, or they were all filtered out by the filter function.
<reference 6 to unknown entity pfcExceptions::pfcXInAMethod>
User Guide References:
Parameters:
visitingClient
The visiting client implemented by the application.
Returns:
Visit status
Was this helpful?