Class FeatureHelper
Helper methods for ICamApiFeature and its specialised sub-interfaces.
Use AsHoleFeature, AsPocketFeature, etc. to obtain a typed wrapper
via QueryInterface.
Inheritance
FeatureHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class FeatureHelper
Methods
AsChamferFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiChamferFeature> AsChamferFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsComplexHoleFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiComplexHoleFeature> AsComplexHoleFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsEdgeFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiEdgeFeature> AsEdgeFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsFilletFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiFilletFeature> AsFilletFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsHoleFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiHoleFeature> AsHoleFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsPlaneFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiPlaneFeature> AsPlaneFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsPocketFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiPocketFeature> AsPocketFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
AsTangentEdgeFeature(ComWrapper<ICamApiFeature>)
Declaration
public static ComWrapper<ICamApiTangentEdgeFeature> AsTangentEdgeFeature(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
BaseEntityCount(ComWrapper<ICamApiFeature>)
Number of base geometry entities that make up this feature.
Declaration
public static int BaseEntityCount(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
BaseEntityName(ComWrapper<ICamApiFeature>, int)
Display name of a base geometry entity (0..BaseEntityCount-1).
Declaration
public static string BaseEntityName(this ComWrapper<ICamApiFeature> featureCom, int index)
Parameters
Returns
BaseEntityNames(ComWrapper<ICamApiFeature>)
All base entity names for this feature.
Declaration
public static IReadOnlyList<string> BaseEntityNames(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
Caption(ComWrapper<ICamApiFeature>)
Display caption of the feature.
Declaration
public static string Caption(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
FeatureType(ComWrapper<ICamApiFeature>)
Declaration
public static TCamApiFeatureType FeatureType(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
GetSubFeature(ComWrapper<ICamApiFeature>, int)
Sub-feature by index (0..SubFeatureCount-1).
Declaration
public static ComWrapper<ICamApiFeature> GetSubFeature(this ComWrapper<ICamApiFeature> featureCom, int index)
Parameters
Returns
Id(ComWrapper<ICamApiFeature>)
Unique identifier of the feature.
Declaration
public static string Id(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
IsMachined(ComWrapper<ICamApiFeature>)
True if the feature is marked as machined.
Declaration
public static bool IsMachined(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
IsValid(ComWrapper<ICamApiFeature>)
True if the feature is geometrically valid.
Declaration
public static bool IsValid(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
Lcs(ComWrapper<ICamApiFeature>)
Local coordinate system of the feature (axis and position).
Declaration
public static TST3DMatrix Lcs(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
Selected(ComWrapper<ICamApiFeature>)
True if the feature is selected in the UI.
Declaration
public static bool Selected(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
SetSelected(ComWrapper<ICamApiFeature>, bool)
Select or deselect the feature. Selecting highlights the feature and its base
geometry entities in the viewport.
Declaration
public static void SetSelected(this ComWrapper<ICamApiFeature> featureCom, bool value)
Parameters
Status(ComWrapper<ICamApiFeature>)
Declaration
public static TCamApiFeatureStatus Status(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
SubFeatureCount(ComWrapper<ICamApiFeature>)
Number of sub-features (e.g. steps in a complex hole).
Declaration
public static int SubFeatureCount(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
ZMax(ComWrapper<ICamApiFeature>)
Maximum Z coordinate of the feature in its LCS.
Declaration
public static double ZMax(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns
ZMin(ComWrapper<ICamApiFeature>)
Minimum Z coordinate of the feature in its LCS.
Declaration
public static double ZMin(this ComWrapper<ICamApiFeature> featureCom)
Parameters
Returns