> ## 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 BooleanAPI

Namespace: [VM.API.Pre](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre)\
Assembly: VM.API.Pre.dll

This class implements APIs for boolean.

```csharp theme={null}
public static class BooleanAPI
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[BooleanAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.BooleanAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/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/2025-r1/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/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### CheckClashOperation(Document3D, Body, Body)

Check a clash of bodies.

```csharp theme={null}
public static bool CheckClashOperation(Document3D document, Body target, Body tool)
```

#### Parameters

`document` Document3D

The [Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Document3D.md) to check a clash of bodies.

`target` Body

The target of a body.

`tool` Body

The tool of a body.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

the object seleted by this API.

### IntersectBody(IDocument, Obj, IEnumerable\<Obj>, bool)

```csharp theme={null}
[NotNull(new string[] { "document", "toolBodies" })]
[NotNullObj(new string[] { "targetBody" })]
public static void IntersectBody(this IDocument document, Obj targetBody, IEnumerable<Obj> toolBodies, bool reserveToolBody = false)
```

#### Parameters

`document` IDocument

`targetBody` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

`toolBodies` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)>

`reserveToolBody` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### SubtractBody(IDocument, Obj, Obj, bool)

```csharp theme={null}
[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "targetBody", "toolBody" })]
public static void SubtractBody(this IDocument document, Obj targetBody, Obj toolBody, bool reserveToolBody = false)
```

#### Parameters

`document` IDocument

`targetBody` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

`toolBody` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

`reserveToolBody` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### UniteBody(IDocument, Obj, IEnumerable\<Obj>, bool)

```csharp theme={null}
[NotNull(new string[] { "document", "toolBodies" })]
[NotNullObj(new string[] { "targetBody" })]
public static void UniteBody(this IDocument document, Obj targetBody, IEnumerable<Obj> toolBodies, bool reserveToolBody = false)
```

#### Parameters

`document` IDocument

`targetBody` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)

`toolBodies` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Obj.md)>

`reserveToolBody` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
