Class FeatureFinderHelper
Inheritance
FeatureFinderHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class FeatureFinderHelper
Methods
GetAllFeatures(ComWrapper<ICamIpcFeatureFinder>, bool)
Features across all setups of the entire model.
Declaration
public static ComWrapper<ICamIpcFeatureList> GetAllFeatures(this ComWrapper<ICamIpcFeatureFinder> ffCom, bool includeDeleted = false)
Parameters
Returns
GetFeatureById(ComWrapper<ICamIpcFeatureFinder>, string)
Find a feature by its unique identifier
Declaration
public static ComWrapper<ICamIpcFeature> GetFeatureById(this ComWrapper<ICamIpcFeatureFinder> ffCom, string id)
Parameters
Returns
GetFeatures(ComWrapper<ICamIpcFeatureFinder>, bool)
Features of the current part setup.
Declaration
public static ComWrapper<ICamIpcFeatureList> GetFeatures(this ComWrapper<ICamIpcFeatureFinder> ffCom, bool includeDeleted = false)
Parameters
Returns
GetFeaturesForNode(ComWrapper<ICamIpcFeatureFinder>, string, bool, TST3DMatrix)
Recognize features for a specific geometry tree node by its full name.
nodeName = ICAMAPIGeometryTreeNode.NodeFullName.
Declaration
public static ComWrapper<ICamIpcFeatureList> GetFeaturesForNode(this ComWrapper<ICamIpcFeatureFinder> ffCom, string nodeName, bool useRefMatrix = false, TST3DMatrix refMatrix = default)
Parameters
Returns
GetFeaturesForSelected(ComWrapper<ICamIpcFeatureFinder>)
Recognize candidate features for the currently selected geometry tree nodes.
Declaration
public static ComWrapper<ICamIpcFeatureList> GetFeaturesForSelected(this ComWrapper<ICamIpcFeatureFinder> ffCom)
Parameters
Returns
GetSelectedFeatures(ComWrapper<ICamIpcFeatureFinder>)
Currently selected features
Declaration
public static ComWrapper<ICamIpcFeatureList> GetSelectedFeatures(this ComWrapper<ICamIpcFeatureFinder> ffCom)
Parameters
Returns
IsUpdating(ComWrapper<ICamIpcFeatureFinder>)
True while feature recognition is running in background
Declaration
public static bool IsUpdating(this ComWrapper<ICamIpcFeatureFinder> ffCom)
Parameters
Returns
RecognitionProgress(ComWrapper<ICamIpcFeatureFinder>)
Current recognition progress (0..100)
Declaration
public static double RecognitionProgress(this ComWrapper<ICamIpcFeatureFinder> ffCom)
Parameters
Returns
RunRecognition(ComWrapper<ICamIpcFeatureFinder>, bool)
Start feature recognition.
waitForCompletion = false: starts in background, subscribe to FeatureFinderUpdated for completion.
waitForCompletion = true: blocks until recognition finishes.
Declaration
public static void RunRecognition(this ComWrapper<ICamIpcFeatureFinder> ffCom, bool waitForCompletion = false)
Parameters
SelectFeatureByBaseEntities(ComWrapper<ICamIpcFeatureFinder>, string, int)
Select, in the geometry model, the base entities of the recognized feature whose base-entity
names cover baseEntityNames (newline-separated) and whose type equals
featureType. Mirrors the recognize-menu pick so a following CreateOperation
consumes them into its Job Assignment. Returns false if no feature matched.
Declaration
public static bool SelectFeatureByBaseEntities(this ComWrapper<ICamIpcFeatureFinder> ffCom, string baseEntityNames, int featureType)
Parameters
Returns
UpdateStamp(ComWrapper<ICamIpcFeatureFinder>)
Incremented each time the feature list changes
Declaration
public static int UpdateStamp(this ComWrapper<ICamIpcFeatureFinder> ffCom)
Parameters
Returns