Library | File

Function pfcCreateSelectionFromString

# include <pfcSelect.h>

pfcSelection_ptr pfcCreateSelectionFromString (xrstring SelectionString)




Description

Creates a new selection object, given a Web.Link style selection string.
See Also:
pfcCreateModelItemSelection(pfcModelItem_ptr, optional pfcComponentPath_ptr), pfcCreateComponentSelection(pfcComponentPath_ptr)
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.