API Documentation > Functions > Function pfcCreateSelectionFromString
Function pfcCreateSelectionFromString

# include <pfcSelect.h>

pfcSelection_ptr pfcCreateSelectionFromString (xrstring SelectionString)


Description
Creates a new selection object, given a JavaScript style selection string.
See Also:
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.
Was this helpful?