IEdge::IsEdgeSmooth

Use this property to get whether IEdge is smooth

Compatibility

Cimatron 2027 or later

Syntax

bool IsEdgeSmooth(int iOrder, bool iFastTest);

def IsEdgeSmooth(iOrder, iFastTest) -> bool

Return Type

Return: BOOL

 

   

Input Type

Input: int

iOrder - Order Of Discontinuty

  • iOrder less than or equal 3 and iOrder greater than 0

  • default value is 1

Input: BOOL

iFastTest

  • true for fast test else false
  • default value is false

Input: BOOL

oCheck

  • Return true if Edge is Smooth else return false

Remarks

None

Example

//PREREQUISITE - Cimatron must open and a Edge having id 30 must be present in the active part document
interop.CimAppAccess.AppAccess AppAcc = new interop.CimAppAccess.AppAccess();
interop.CimatronE.IApplication CimApp = (interop.CimatronE.IApplication)AppAcc.GetApplication();
interop.CimatronE.ICimDocument aDoc = CimApp.GetActiveDoc();
interop.CimMdlrAPI.IModelContainer aContainer = (interop.CimMdlrAPI.IModelContainer)aDoc;
interop.CimMdlrAPI.IMdlrModel aMdlrModel = (interop.CimMdlrAPI.IMdlrModel)aContainer.Model;
interop.CimMdlrAPI.IModel aModel = (interop.CimMdlrAPI.IModel)aMdlrModel;
int aEntityID = 30; //Id must the Id of edge type object
interop.CimBaseAPI.ICimEntity aEntity = aModel.GetEntityById(aEntityID, aModel);
interop.CimBaseAPI.IEdge aEdge = aEntity as interop.CimBaseAPI.IEdge;
bool aSmooth = aEdge.IsEdgeSmooth(1, false);

#PREREQUISITE - Cimatron must open and a Edge having id 30 must be present in the active part document
import clr
clr.AddReference("interop.CimAppAccess")
clr.AddReference("interop.CimatronE")
clr.AddReference("interop.CimServicesAPI")
clr.AddReference("interop.CimBaseAPI")
clr.AddReference("interop.CimMdlrAPI")
clr.AddReference("interop.CimNcAPI")
import interop.CimAppAccess
import interop.CimatronE
import interop.CimServicesAPI
import interop.CimBaseAPI
import interop.CimMdlrAPI
import interop.CimNcAPI

aAppAcc = interop.CimAppAccess.AppAccess()
aCimApp = interop.CimatronE.IApplication(aAppAcc.GetApplication())
aDoc = aCimApp.GetActiveDoc()
aContainer = interop.CimMdlrAPI.IModelContainer(aDoc)
aMdlrModel = interop.CimMdlrAPI.IMdlrModel(aContainer.Model)
aModel = interop.CimMdlrAPI.IModel(aMdlrModel)

aEntityId = 30 # Entity must be edge type
aEntity = aModel.GetEntityById(aEntityId, aModel)
aEdge = interop.CimBaseAPI.IEdge(aEntity)
aTol = 0.0;
aSmooth = aEdge.IsEdgeSmooth(1, false)