Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class CADOperation

Last update: 16.07.2025

Namespace: VM.Managed.CAD
Assembly: VMAppCore.dll

This class is to represent the CAD Operation.

public class CADOperation

Inheritance

objectCADOperation

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(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, Document, bool)

public static void DeleteBuilder(List<objectbase> lstDeletedBuilder, Document doc, bool bModified)

Parameters

lstDeletedBuilder ListObjectBase&gt;

doc Document

bModified bool

GetBodyFaces(Body, ICollection)

public static List<face> GetBodyFaces(Body bd, ICollection<int> Colors)

Parameters

bd Body

Colors ICollectionint&gt;

Returns

ListFace&gt;

GetBodyFaces(Body)

public static List<face> GetBodyFaces(Body bd)

Parameters

bd Body

Returns

ListFace&gt;

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, 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&gt;

Returns

DictionaryUIntPtr, Color&gt;

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

lstEdges ListEdge&gt;

dTol double

dLen double

dAngle double

bCloseLoop bool

Returns

ListVectorBase&gt;

GetPointAndDirectionFromFacet(Face, VectorBase, VectorBase)

public static bool GetPointAndDirectionFromFacet(Face face, VectorBase vecPoint, VectorBase vecDirection)

Parameters

face Face

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

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

bool

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

Connect with Ansys