Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class CreateBody

Last update: 16.07.2025

Namespace: VM.Managed.DAFUL.Operation
Assembly: VMOpCore.dll

Create body class

public class CreateBody

Inheritance

objectCreateBody

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

CreateBody()

public CreateBody()

Methods

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

Create block body

public static SolidBody CreateBlockBody(SubSystemDocument docSub, string strName, double dWidth, double dHeight, double dDepth, PointBase position)

Parameters

docSub SubSystemDocument

The document

strName string

The name

dWidth double

The width

dHeight double

The height

dDepth double

The depth

position PointBase

the position

Returns

SolidBody

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

Create cylinder body

public static SolidBody CreateCylinderBody(Document document, string strName, PointBase posBottom, PointBase posTop, double dRadius)

Parameters

document Document

The document

strName string

The name

posBottom PointBase

The bottom position

posTop PointBase

The top position

dRadius double

The radius

Returns

SolidBody

CreateCylinderBody(Document, PointBase, PointBase, double)

Create cylinder body in part

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

The radius

Returns

Body

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

Create sphere body

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

The name

dRadius double

The radius

position PointBase

The position

getNewEntityName bool

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

addToDocument bool

Flag for add created element to document.

Returns

SolidBody

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

Create sphere body

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

The name

strRadius string

The radius

position PointBase

The position

getNewEntityName bool

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

addToDocument bool

Flag for add created element to document.

Returns

SolidBody

Connect with Ansys