Create a Selection Object from a passed in string

NOTE: the "/" is a Unix slash, not a windows Slash "\"

Parameters

selection (string) - a string using the WebLink Format of selection.

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

Creo.Selection - Object (the selection)

Example

Dim sel as Creo.Selection = CAD.CreateSelectionFromString("TLA.ASM:SubPrt.prt(#71)/Feature(#3)")

---------------------------------------------------------------------------------------------

'    hide curve

CAD.ClearSelection  

msgbox("Selecting: " & IgesCurveID)  

CAD.AddSelection( PartName & "/Feature(#" & IgesCurveID & ")" )  

CAD.runmacro("~ Command `ProCmdViewHide` ;")