Class CADOperation
Last update: 16.07.2025Namespace: VM.Managed.CAD
Assembly: VMAppCore.dll
This class is to represent the CAD Operation.
public class CADOperation
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
CADOperation()
public CADOperation()
Methods
BuildBody(Body)
public static void BuildBody(Body body)
Parameters
body Body
CheckValidationAboutBuild(Body, string)
public static bool CheckValidationAboutBuild(Body body, string strXml)
Parameters
body Body
strXml string
Returns
DeleteBuilder(List, Document, bool)
public static void DeleteBuilder(List<objectbase> lstDeletedBuilder, Document doc, bool bModified)
Parameters
lstDeletedBuilder ListObjectBase>
doc Document
bModified bool
GetBodyFaces(Body, ICollection)
public static List<face> GetBodyFaces(Body bd, ICollection<int> Colors)
Parameters
bd Body
Colors ICollectionint>
Returns
GetBodyFaces(Body)
public static List<face> GetBodyFaces(Body bd)
Parameters
bd Body
Returns
GetBodyNameAttribute(Body)
public static string GetBodyNameAttribute(Body body)
Parameters
body Body
Returns
GetBoundingBox(Body, TMatrix, ref Vector, ref Vector, BoxingMode)
public static bool GetBoundingBox(Body body, TMatrix matT, ref Vector vecMinPt, ref Vector vecMaxPt, BoxingMode boxingMode)
Parameters
body Body
matT TMatrix
vecMinPt Vector
vecMaxPt Vector
boxingMode BoxingMode
Returns
GetDefaultMaxPenetration(Face, ref double)
public static bool GetDefaultMaxPenetration(Face face, ref double dMaxPenetration)
Parameters
face Face
dMaxPenetration double
Returns
GetEdgeLength(Edge)
public static double GetEdgeLength(Edge edge)
Parameters
edge Edge
Returns
GetFaceArea(Face)
public static double GetFaceArea(Face face)
Parameters
face Face
Returns
GetFacetInformationForFace(Face, ref VectorBase[], ref int[])
public static void GetFacetInformationForFace(Face face, ref VectorBase[] arPt, ref int[] arConnectivity)
Parameters
face Face
arPt VectorBase[]
arConnectivity int[]
GetManyTopologyColor(IEnumerable)
public static Dictionary<uintptr color> GetManyTopologyColor(IEnumerable<topology> topologies)
Parameters
topologies IEnumerableTopology>
Returns
DictionaryUIntPtr, Color>
GetPiecewiseCurve(List, double, double, double, ref bool)
public static List<vectorbase> GetPiecewiseCurve(List<edge> lstEdges, double dTol, double dLen, double dAngle, ref bool bCloseLoop)
Parameters
dTol double
dLen double
dAngle double
bCloseLoop bool
Returns
ListVectorBase>
GetPointAndDirectionFromFacet(Face, VectorBase, VectorBase)
public static bool GetPointAndDirectionFromFacet(Face face, VectorBase vecPoint, VectorBase vecDirection)
Parameters
face Face
vecPoint VectorBase
vecDirection VectorBase
Returns
GetTopologyColor(Topology, ref Color)
public static bool GetTopologyColor(Topology topol, ref Color color)
Parameters
topol Topology
color Color
Returns
GetVoidCount(Body)
public static int GetVoidCount(Body body)
Parameters
body Body
Returns
GetVoidPoints(Body, double[], ref VectorBase[])
public static int GetVoidPoints(Body body, double[] ardScale, ref VectorBase[] arPoints)
Parameters
body Body
ardScale double[]
arPoints VectorBase[]
Returns
RemoveDuplicatedEvent(Document)
public static void RemoveDuplicatedEvent(Document doc)
Parameters
doc Document
SetGeometryRepresentation(IDrawFacet, string, string, bool)
public static bool SetGeometryRepresentation(IDrawFacet facet, string strGeom, string strDefaultGeom, bool bUseRedraw)
Parameters
facet IDrawFacet
strGeom string
strDefaultGeom string
bUseRedraw bool
Returns
SetNameAttribute(Body, string, bool, string)
public static void SetNameAttribute(Body body, string strName, bool bUseAttribute, string strOldName)
Parameters
body Body
strName string
bUseAttribute bool
strOldName string
SetSelectionObject(Document3D)
public static void SetSelectionObject(Document3D doc)
Parameters
doc Document3D