Library | Module

Class CMpfcSelect






Method Summary

FunctionCreateComponentSelection (Path as IpfcComponentPath) as IpfcSelection
Used to create a IpfcSelection object, based on the path to a specified component.
FunctionCreateModelSelection (Model as IpfcModel) as IpfcSelection
Used to create a IpfcSelection object, based on a IpfcModel
FunctionCreateModelItemSelection (SelItem as IpfcModelItem, Path as IpfcComponentPath [optional]) as IpfcSelection
Used to create a IpfcSelection object, based on a IpfcModelItem and, optionally, its IpfcComponentPath in an assembly.
FunctionCreateSelectionFromString (SelectionString as String) as IpfcSelection
Creates a new selection object, given a Web.Link style selection string.



Method Detail


FunctionCreateComponentSelection (Path as IpfcComponentPath) as IpfcSelection

Used to create a IpfcSelection object, based on the path to a specified component.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidPtr - The selection argument is an invalid pointer.


Parameters:
Path
The IpfcComponentPath of the object to selected within an assembly.
Returns:
The IpfcSelection object.



FunctionCreateModelSelection (Model as IpfcModel) as IpfcSelection

Used to create a IpfcSelection object, based on a IpfcModel
Parameters:
Model
The Selected IpfcModel
Returns:
The IpfcSelection object.



FunctionCreateModelItemSelection (SelItem as IpfcModelItem, Path as IpfcComponentPath [optional]) as IpfcSelection

Used to create a IpfcSelection object, based on a IpfcModelItem and, optionally, its IpfcComponentPath in an assembly.

Exceptions thrown (but not limited to):

IpfcXToolkitInvalidPtr - The selection argument is an invalid pointer.


Parameters:
SelItem
The Selected IpfcModelItem
Path
The IpfcComponentPath of the selected object within an assembly.
Returns:
The IpfcSelection object.



FunctionCreateSelectionFromString (SelectionString as String) as IpfcSelection

Creates a new selection object, given a Web.Link style selection string.
See Also:
CMpfcSelect.CreateModelItemSelection(), CMpfcSelect.CreateComponentSelection()
Parameters:
SelectionString
The selection string. The string should follow the following formats (items in brackets [] are optional): TopLevelObject:[SubAsm]:[SubAs:LeafComponent]/[ModelItem]

The top level object should provided as: "name.type"

Each component in the path can have one of the following formats:
  • "name.type"
  • "name.type(#comp_id)"
  • "name.type(comp_name)"
The component name is the name of the component feature in the context of its parent assembly.

The model item can have one of the following formats:
  • "itemtype(#item_id)
  • "itemtype(item_name)
Itemtype must one of the following:
  • Feature
  • Dimension
Returns:
The created selection object.