    

 ## On this page

  

 

 # Class CreateBody

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL.Operation](VM.Managed.DAFUL.Operation.md)  
Assembly: VMOpCore.dll

Create body class

```csharp
public class CreateBody

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [CreateBody](VM.Managed.DAFUL.Operation.CreateBody.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### CreateBody()

```csharp
public CreateBody()

```

## Methods

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

Create block body

```csharp
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
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
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
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
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