> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class CADOperation

Namespace: [VM.Managed.CAD](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD)\
Assembly: VMAppCore.dll

This class is to represent the CAD Operation.

```csharp theme={null}
public class CADOperation
```

#### Inheritance

object ←
[CADOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.CADOperation.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### CADOperation()

```csharp theme={null}
public CADOperation()
```

## Methods

### BuildBody(Body)

```csharp theme={null}
public static void BuildBody(Body body)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

### CheckValidationAboutBuild(Body, string)

```csharp theme={null}
public static bool CheckValidationAboutBuild(Body body, string strXml)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

`strXml` string

#### Returns

bool

### DeleteBuilder(List\<ObjectBase>, Document, bool)

```csharp theme={null}
public static void DeleteBuilder(List<ObjectBase> lstDeletedBuilder, Document doc, bool bModified)
```

#### Parameters

`lstDeletedBuilder` List\<[ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.ObjectBase.md)>

`doc` [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

`bModified` bool

### GetBodyFaces(Body, ICollection\<int>)

```csharp theme={null}
public static List<Face> GetBodyFaces(Body bd, ICollection<int> Colors)
```

#### Parameters

`bd` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

`Colors` ICollection\<int>

#### Returns

List\<[Face](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Face.md)>

### GetBodyFaces(Body)

```csharp theme={null}
public static List<Face> GetBodyFaces(Body bd)
```

#### Parameters

`bd` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

#### Returns

List\<[Face](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Face.md)>

### GetBodyNameAttribute(Body)

```csharp theme={null}
public static string GetBodyNameAttribute(Body body)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

#### Returns

string

### GetBoundingBox(Body, TMatrix, ref Vector, ref Vector, BoxingMode)

```csharp theme={null}
public static bool GetBoundingBox(Body body, TMatrix matT, ref Vector vecMinPt, ref Vector vecMaxPt, BoxingMode boxingMode)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

`matT` TMatrix

`vecMinPt` Vector

`vecMaxPt` Vector

`boxingMode` [BoxingMode](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.BoxingMode.md)

#### Returns

bool

### GetDefaultMaxPenetration(Face, ref double)

```csharp theme={null}
public static bool GetDefaultMaxPenetration(Face face, ref double dMaxPenetration)
```

#### Parameters

`face` [Face](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Face.md)

`dMaxPenetration` double

#### Returns

bool

### GetEdgeLength(Edge)

```csharp theme={null}
public static double GetEdgeLength(Edge edge)
```

#### Parameters

`edge` [Edge](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Edge.md)

#### Returns

double

### GetFaceArea(Face)

```csharp theme={null}
public static double GetFaceArea(Face face)
```

#### Parameters

`face` [Face](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Face.md)

#### Returns

double

### GetFacetInformationForFace(Face, FacetOption, ref VectorBase\[], ref int\[])

```csharp theme={null}
public static void GetFacetInformationForFace(Face face, FacetOption options, ref VectorBase[] arPt, ref int[] arConnectivity)
```

#### Parameters

`face` [Face](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Face.md)

`options` [FacetOption](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/FacetOption.cs)

`arPt` [VectorBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.VectorBase.md)\[]

`arConnectivity` int\[]

### GetManyTopologyColor(IEnumerable\<Topology>)

```csharp theme={null}
public static Dictionary<UIntPtr, Color> GetManyTopologyColor(IEnumerable<Topology> topologies)
```

#### Parameters

`topologies` IEnumerable\<[Topology](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Topology.md)>

#### Returns

Dictionary\<UIntPtr, Color>

### GetPiecewiseCurve(List\<Edge>, double, double, double, ref bool)

```csharp theme={null}
public static List<VectorBase> GetPiecewiseCurve(List<Edge> lstEdges, double dTol, double dLen, double dAngle, ref bool bCloseLoop)
```

#### Parameters

`lstEdges` List\<[Edge](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Edge.md)>

`dTol` double

`dLen` double

`dAngle` double

`bCloseLoop` bool

#### Returns

List\<[VectorBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.VectorBase.md)>

### GetPointAndDirectionFromFacet(Face, FacetOption, VectorBase, VectorBase)

```csharp theme={null}
public static bool GetPointAndDirectionFromFacet(Face face, FacetOption options, VectorBase vecPoint, VectorBase vecDirection)
```

#### Parameters

`face` [Face](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Face.md)

`options` [FacetOption](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/FacetOption.cs)

`vecPoint` [VectorBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.VectorBase.md)

`vecDirection` [VectorBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.VectorBase.md)

#### Returns

bool

### GetTopologyColor(Topology, ref Color)

```csharp theme={null}
public static bool GetTopologyColor(Topology topol, ref Color color)
```

#### Parameters

`topol` [Topology](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Topology.md)

`color` Color

#### Returns

bool

### GetVoidCount(Body)

```csharp theme={null}
public static int GetVoidCount(Body body)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

#### Returns

int

### GetVoidPoints(Body, double\[], ref VectorBase\[])

```csharp theme={null}
public static int GetVoidPoints(Body body, double[] ardScale, ref VectorBase[] arPoints)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

`ardScale` double\[]

`arPoints` [VectorBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.VectorBase.md)\[]

#### Returns

int

### ReDrawForHistory(IDrawIcon)

```csharp theme={null}
public static void ReDrawForHistory(IDrawIcon itfDrawIcon)
```

#### Parameters

`itfDrawIcon` [IDrawIcon](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Render.IDrawIcon.md)

### RemoveDuplicatedEvent(Document)

```csharp theme={null}
public static void RemoveDuplicatedEvent(Document doc)
```

#### Parameters

`doc` [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

### SetNameAttribute(Body, string, bool, string)

```csharp theme={null}
public static void SetNameAttribute(Body body, string strName, bool bUseAttribute, string strOldName)
```

#### Parameters

`body` [Body](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Body.md)

`strName` string

`bUseAttribute` bool

`strOldName` string

### SetSelectionObject(Document3D)

```csharp theme={null}
public static void SetSelectionObject(Document3D doc)
```

#### Parameters

`doc` [Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document3D.md)
