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

Namespace: [VM.Managed.DAFUL.Operation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Operation)\
Assembly: VMOpCore.dll

Create body class

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[CreateBody](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Managed.DAFUL.Operation.CreateBody.md)

#### Extension Methods

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

## Constructors

### CreateBody()

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

## Methods

### CreateBlockBody(SubSystemDocument, string, double, double, double, PointBase)

Create block body

```csharp theme={null}
public static SolidBody CreateBlockBody(SubSystemDocument docSub, string strName, double dWidth, double dHeight, double dDepth, PointBase position)
```

#### Parameters

`docSub` SubSystemDocument

The document

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name

`dWidth` [double](https://learn.microsoft.com/dotnet/api/system.double)

The width

`dHeight` [double](https://learn.microsoft.com/dotnet/api/system.double)

The height

`dDepth` [double](https://learn.microsoft.com/dotnet/api/system.double)

The depth

`position` PointBase

the position

#### Returns

SolidBody

### CreateCylinderBody(Document, string, PointBase, PointBase, double)

Create cylinder body

```csharp theme={null}
public static SolidBody CreateCylinderBody(Document document, string strName, PointBase posBottom, PointBase posTop, double dRadius)
```

#### Parameters

`document` Document

The document

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name

`posBottom` PointBase

The bottom position

`posTop` PointBase

The top position

`dRadius` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius

#### Returns

SolidBody

### CreateCylinderBody(Document, PointBase, PointBase, double)

Create cylinder body in part

```csharp theme={null}
public static Body CreateCylinderBody(Document document, PointBase posBottom, PointBase posTop, double dRadius)
```

#### Parameters

`document` Document

The document

`posBottom` PointBase

The bottom position

`posTop` PointBase

The top position

`dRadius` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius

#### Returns

Body

### CreateSphereBody(Document, string, double, PointBase, bool, bool)

Create sphere body

```csharp theme={null}
public static SolidBody CreateSphereBody(Document document, string name, double dRadius, PointBase position, bool getNewEntityName = true, bool addToDocument = true)
```

#### Parameters

`document` Document

The document

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name

`dRadius` [double](https://learn.microsoft.com/dotnet/api/system.double)

The radius

`position` PointBase

The position

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

Flag for creating a new entity if there is already an entity with the same name

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

Flag for add created element to document.

#### Returns

SolidBody

### CreateSphereBody(Document, string, string, PointBase, bool, bool)

Create sphere body

```csharp theme={null}
public static SolidBody CreateSphereBody(Document document, string name, string strRadius, PointBase position, bool getNewEntityName = true, bool addToDocument = true)
```

#### Parameters

`document` Document

The document

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name

`strRadius` [string](https://learn.microsoft.com/dotnet/api/system.string)

The radius

`position` PointBase

The position

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

Flag for creating a new entity if there is already an entity with the same name

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

Flag for add created element to document.

#### Returns

SolidBody
