Class CADOperation
Last update: 09.03.2026Namespace: VM.Managed.CAD
Assembly: VMAppCore.dll
This class is to represent the CAD Operation.
public class CADOperation
Inheritance
object ← CADOperation
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
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
bool
DeleteBuilder(List<ObjectBase>, Document, bool)
public static void DeleteBuilder(List<ObjectBase> lstDeletedBuilder, Document doc, bool bModified)
Parameters
lstDeletedBuilder List<ObjectBase>
doc Document
bModified bool
GetBodyFaces(Body, ICollection<int>)
public static List<Face> GetBodyFaces(Body bd, ICollection<int> Colors)
Parameters
bd Body
Colors ICollection<int>
Returns
List<Face>
GetBodyFaces(Body)
public static List<Face> GetBodyFaces(Body bd)
Parameters
bd Body
Returns
List<Face>
GetBodyNameAttribute(Body)
public static string GetBodyNameAttribute(Body body)
Parameters
body Body
Returns
string
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
bool
GetDefaultMaxPenetration(Face, ref double)
public static bool GetDefaultMaxPenetration(Face face, ref double dMaxPenetration)
Parameters
face Face
dMaxPenetration double
Returns
bool
GetEdgeLength(Edge)
public static double GetEdgeLength(Edge edge)
Parameters
edge Edge
Returns
double
GetFaceArea(Face)
public static double GetFaceArea(Face face)
Parameters
face Face
Returns
double
GetFacetInformationForFace(Face, FacetOption, ref VectorBase[], ref int[])
public static void GetFacetInformationForFace(Face face, FacetOption options, ref VectorBase[] arPt, ref int[] arConnectivity)
Parameters
face Face
options FacetOption
arPt VectorBase[]
arConnectivity int[]
GetManyTopologyColor(IEnumerable<Topology>)
public static Dictionary<UIntPtr, Color> GetManyTopologyColor(IEnumerable<Topology> topologies)
Parameters
topologies IEnumerable<Topology>
Returns
Dictionary<UIntPtr, Color>
GetPiecewiseCurve(List<Edge>, double, double, double, ref bool)
public static List<VectorBase> GetPiecewiseCurve(List<Edge> lstEdges, double dTol, double dLen, double dAngle, ref bool bCloseLoop)
Parameters
lstEdges List<Edge>
dTol double
dLen double
dAngle double
bCloseLoop bool
Returns
List<VectorBase>
GetPointAndDirectionFromFacet(Face, FacetOption, VectorBase, VectorBase)
public static bool GetPointAndDirectionFromFacet(Face face, FacetOption options, VectorBase vecPoint, VectorBase vecDirection)
Parameters
face Face
options FacetOption
vecPoint VectorBase
vecDirection VectorBase
Returns
bool
GetTopologyColor(Topology, ref Color)
public static bool GetTopologyColor(Topology topol, ref Color color)
Parameters
topol Topology
color Color
Returns
bool
GetVoidCount(Body)
public static int GetVoidCount(Body body)
Parameters
body Body
Returns
int
GetVoidPoints(Body, double[], ref VectorBase[])
public static int GetVoidPoints(Body body, double[] ardScale, ref VectorBase[] arPoints)
Parameters
body Body
ardScale double[]
arPoints VectorBase[]
Returns
int
ReDrawForHistory(IDrawIcon)
public static void ReDrawForHistory(IDrawIcon itfDrawIcon)
Parameters
itfDrawIcon IDrawIcon
RemoveDuplicatedEvent(Document)
public static void RemoveDuplicatedEvent(Document doc)
Parameters
doc Document
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