Class RevolveFeatureHelper
Inheritance
RevolveFeatureHelper
Assembly: CADAPI.DotnetHelper.dll
Syntax
public static class RevolveFeatureHelper
Methods
BodyId(ComWrapper<ICadApiRevolveFeature>)
id of the body targeted by the boolean operation; empty for bo_New.
Declaration
public static string BodyId(this ComWrapper<ICadApiRevolveFeature> revCom)
Parameters
Returns
GetAngle(ComWrapper<ICadApiRevolveFeature>)
Revolve angle in degrees (default 360 for a full revolution).
Declaration
public static double GetAngle(this ComWrapper<ICadApiRevolveFeature> revCom)
Parameters
Returns
GetAxisDirection(ComWrapper<ICadApiRevolveFeature>)
Direction vector of the rotation axis (not necessarily normalised).
Declaration
public static (double X, double Y, double Z) GetAxisDirection(this ComWrapper<ICadApiRevolveFeature> revCom)
Parameters
Returns
GetAxisPoint(ComWrapper<ICadApiRevolveFeature>)
A point lying on the rotation axis, in model coordinates.
Declaration
public static (double X, double Y, double Z) GetAxisPoint(this ComWrapper<ICadApiRevolveFeature> revCom)
Parameters
Returns
Operation(ComWrapper<ICadApiRevolveFeature>)
Boolean operation applied against existing bodies on Save.
Declaration
public static TCadApiBooleanOperation Operation(this ComWrapper<ICadApiRevolveFeature> revCom)
Parameters
Returns
SetAngle(ComWrapper<ICadApiRevolveFeature>, double)
Set the revolve angle in degrees. Call model.Save() to materialise the body change.
Declaration
public static void SetAngle(this ComWrapper<ICadApiRevolveFeature> revCom, double angle)
Parameters
SetAxisDirection(ComWrapper<ICadApiRevolveFeature>, double, double, double)
Set the direction vector of the rotation axis. Throws if the vector
is zero. Call model.Save() to materialise the body change.
Declaration
public static void SetAxisDirection(this ComWrapper<ICadApiRevolveFeature> revCom, double x, double y, double z)
Parameters
SetAxisPoint(ComWrapper<ICadApiRevolveFeature>, double, double, double)
Move the rotation axis so that it passes through the given point.
Call model.Save() to materialise the body change.
Declaration
public static void SetAxisPoint(this ComWrapper<ICadApiRevolveFeature> revCom, double x, double y, double z)
Parameters
SetBodyId(ComWrapper<ICadApiRevolveFeature>, string)
Set the body targeted by the boolean operation.
Declaration
public static void SetBodyId(this ComWrapper<ICadApiRevolveFeature> revCom, string value)
Parameters
SetOperation(ComWrapper<ICadApiRevolveFeature>, TCadApiBooleanOperation)
Set the boolean operation. Call model.Save() to materialise the change.
Declaration
public static void SetOperation(this ComWrapper<ICadApiRevolveFeature> revCom, TCadApiBooleanOperation value)
Parameters