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

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

This class implements APIs for chained system.

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[ChainedSystemAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.Links.ChainedSystemAPI.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

### AddObjectToActiveDocument(Obj, int, int, IEnumerable\<string>, IEnumerable\<TMatrix>, IEnumerable\<Document3D>, bool)

Add object to active document.

```csharp theme={null}
[NotNullObj(new string[] { "chainedPlacing" })]
[NotNull(new string[] { "preFixed", "transforms", "segmentDocuments" })]
[MatchTypeObj(new object[] { "chainedPlacing", typeof(ChainedPlacing) })]
public static IEnumerable<Obj> AddObjectToActiveDocument(this Obj chainedPlacing, int numberOfSegment, int numberOfSegmentData, IEnumerable<string> preFixed, IEnumerable<TMatrix> transforms, IEnumerable<Document3D> segmentDocuments, bool isCreate)
```

#### Parameters

`chainedPlacing` Obj

The chained placing to add object.

`numberOfSegment` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of segment.

`numberOfSegmentData` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of segment data.

`preFixed` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The pre-fixed names. The length is 'numberOfSegmentData'.

`transforms` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<TMatrix>

The segment transforms. The length is 'numberOfSegment'.

`segmentDocuments` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<Document3D>

The segment data documents. The length is 'numberOfSegmentData'.

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

The create flag. If operation is modify state, You can put the value in 'false'.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<Obj>

The new segment list

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'chainedPlacing' arguments are empty.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if type of 'chainedPlacing' is not [ChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Chained.ChainedPlacing.md).

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if type of 'preFixed', 'transforms', 'segmentDocuments' arguments are empty.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if 'numberOfSegmentData' value is greater than 'numberOfSegment' value.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the length of 'preFixed' is not equal 'numberOfSegmentData' value.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the length of 'segmentDocuments' is not equal 'numberOfSegmentData' value.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the length of 'transforms' is not equal 'numberOfSegment' value.

### ChangeObjectLayer(Obj, IEnumerable\<Obj>, IEnumerable\<bool>)

Change object layer.

```csharp theme={null}
[NotNullObj(new string[] { "chainedPlacing" })]
[NotNull(new string[] { "visibleObjects", "visibleStates" })]
[MatchTypeObj(new object[] { "chainedPlacing", typeof(ChainedPlacing) })]
public static void ChangeObjectLayer(this Obj chainedPlacing, IEnumerable<Obj> visibleObjects, IEnumerable<bool> visibleStates)
```

#### Parameters

`chainedPlacing` Obj

The chained placing to change object.

`visibleObjects` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<Obj>

The objects to be changed.

`visibleStates` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[bool](https://learn.microsoft.com/dotnet/api/system.boolean)>

The vislble flags.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'chainedPlacing' arguments are empty.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if type of 'chainedPlacing' is not [ChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Chained.ChainedPlacing.md).

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if type of 'visibleObjects', 'visibleStates' argument is empty.

### CreateCenter(DocumentChainedPath, string, Color?, bool)

Create center roller [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) with [BuilderRollerCenterFlangeSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerCenterFlangeSimple.md) builder.

```csharp theme={null}
public static Obj CreateCenter(this DocumentChainedPath document, string bodyName = "", Color? color = null, bool isInterface = false)
```

#### Parameters

`document` DocumentChainedPath

The document to create the center roller solid body.

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

The name of the [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md). If empty, default name starts with 'BD\_' will be generated and used.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

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

'true' if it is interface body. Otherwise, 'false'.

#### Returns

Obj

The new [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateCenter(PartDocumentChainedPath, Color?)

Create center roller [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) with [BuilderRollerCenterFlangeSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerCenterFlangeSimple.md) builder in part.

```csharp theme={null}
public static Obj CreateCenter(this PartDocumentChainedPath document, Color? color = null)
```

#### Parameters

`document` PartDocumentChainedPath

The document to create the center roller body.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

#### Returns

Obj

The new [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateChainedSystem(SubSystemDocument, IEnumerable\<Obj>, string)

Create chained system [ChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Chained.ChainedPlacing.md).

```csharp theme={null}
[NotNull(new string[] { "document", "pathList" })]
public static Obj CreateChainedSystem(this SubSystemDocument document, IEnumerable<Obj> pathList, string name = "")
```

#### Parameters

`document` SubSystemDocument

The document to create the chained system.

`pathList` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<Obj>

The path list.

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

The name of the [ChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Chained.ChainedPlacing.md). If empty, default name starts with 'CPlacing\_' will be generated and used.

#### Returns

Obj

The new [ChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Chained.ChainedPlacing.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' , 'pathList' are null.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if item type of 'pathList' is not [InstanceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.InstanceContainer.md).

### CreateDouble(DocumentChainedPath, string, Color?, bool)

Create double roller [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) with [BuilderRollerDoubleFlangeSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerDoubleFlangeSimple.md) builder.

```csharp theme={null}
public static Obj CreateDouble(this DocumentChainedPath document, string bodyName = "", Color? color = null, bool isInterface = false)
```

#### Parameters

`document` DocumentChainedPath

The document to create the double roller solid body.

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

The name of the [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md). If empty, default name starts with 'BD\_' will be generated and used.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

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

'true' if it is interface body. Otherwise, 'false'.

#### Returns

Obj

The new [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateDouble(PartDocumentChainedPath, Color?)

Create double roller [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) with [BuilderRollerDoubleFlangeSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerDoubleFlangeSimple.md) builder in part.

```csharp theme={null}
public static Obj CreateDouble(this PartDocumentChainedPath document, Color? color = null)
```

#### Parameters

`document` PartDocumentChainedPath

The document to create the double roller body.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

#### Returns

Obj

The new [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateFlat(DocumentChainedPath, string, Color?, bool)

Create flat roller [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) with [BuilderRollerFlatSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerFlatSimple.md) builder.

```csharp theme={null}
public static Obj CreateFlat(this DocumentChainedPath document, string bodyName = "", Color? color = null, bool isInterface = false)
```

#### Parameters

`document` DocumentChainedPath

The document to create the flat roller solid body.

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

The name of the [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md). If empty, default name starts with 'BD\_' will be generated and used.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

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

'true' if it is interface body. Otherwise, 'false'.

#### Returns

Obj

The new [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateFlat(PartDocumentChainedPath, Color?)

Create flat roller [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) with [BuilderRollerFlatSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerFlatSimple.md) builder in part.

```csharp theme={null}
public static Obj CreateFlat(this PartDocumentChainedPath document, Color? color = null)
```

#### Parameters

`document` PartDocumentChainedPath

The document to create the flat roller body.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

#### Returns

Obj

The new [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateGeneral(DocumentChainedPath, string, Color?, bool)

Create general roller [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) with [BuilderRollerGeneralSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerGeneralSimple.md) builder.

```csharp theme={null}
public static Obj CreateGeneral(this DocumentChainedPath document, string bodyName = "", Color? color = null, bool isInterface = false)
```

#### Parameters

`document` DocumentChainedPath

The document to create the general roller solid body.

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

The name of the [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md). If empty, default name starts with 'BD\_' will be generated and used.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

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

'true' if it is interface body. Otherwise, 'false'.

#### Returns

Obj

The new [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateGeneral(PartDocumentChainedPath, Color?)

Create general roller [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) with [BuilderRollerGeneralSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerGeneralSimple.md) builder in part.

```csharp theme={null}
public static Obj CreateGeneral(this PartDocumentChainedPath document, Color? color = null)
```

#### Parameters

`document` PartDocumentChainedPath

The document to create the general roller body.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

#### Returns

Obj

The new [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateSingle(DocumentChainedPath, string, Color?, bool)

Create single roller [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) with [BuilderRollerSingleFlangeSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerSingleFlangeSimple.md) builder.

```csharp theme={null}
public static Obj CreateSingle(this DocumentChainedPath document, string bodyName = "", Color? color = null, bool isInterface = false)
```

#### Parameters

`document` DocumentChainedPath

The document to create the single roller solid body.

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

The name of the [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md). If empty, default name starts with 'BD\_' will be generated and used.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

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

'true' if it is interface body. Otherwise, 'false'.

#### Returns

Obj

The new [SolidBodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Roller.SolidBodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateSingle(PartDocumentChainedPath, Color?)

Create single roller [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) with [BuilderRollerSingleFlangeSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BuilderRollerSingleFlangeSimple.md) builder in part.

```csharp theme={null}
public static Obj CreateSingle(this PartDocumentChainedPath document, Color? color = null)
```

#### Parameters

`document` PartDocumentChainedPath

The document to create the single roller body.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

#### Returns

Obj

The new [BodyRoller](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Roller.BodyRoller.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateSprocket(DocumentChainedPath, string, Color?, bool)

Create sprocket [SolidBodySprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Sprocket.SolidBodySprocket.md) with [BuilderSingleSprocketSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Sprocket.BuilderSingleSprocketSimple.md) builder.

```csharp theme={null}
[NotNull(new string[] { "document" })]
public static Obj CreateSprocket(this DocumentChainedPath document, string bodyName = "", Color? color = null, bool isInterface = false)
```

#### Parameters

`document` DocumentChainedPath

The document to create the sprocket solid body.

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

The name of the [SolidBodySprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Sprocket.SolidBodySprocket.md). If empty, default name starts with 'BD\_' will be generated and used.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

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

'true' if it is interface body. Otherwise, 'false'.

#### Returns

Obj

The new [SolidBodySprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Sprocket.SolidBodySprocket.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### CreateSprocket(PartDocumentChainedPath, Color?)

Create sprocket [BodySprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Sprocket.BodySprocket.md) with [BuilderSingleSprocketSimple](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Sprocket.BuilderSingleSprocketSimple.md) builder in part.

```csharp theme={null}
[NotNull(new string[] { "document" })]
public static Obj CreateSprocket(this PartDocumentChainedPath document, Color? color = null)
```

#### Parameters

`document` PartDocumentChainedPath

The document to create the sprocket body.

`color` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)?

The color of the new flat roller geometry. The default value is '0xBFAAAA'

#### Returns

Obj

The new [BodySprocket](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Sprocket.BodySprocket.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' is null.

### DeleteObjectList(Obj, IEnumerable\<Obj>)

Add object to active document.

```csharp theme={null}
[NotNullObj(new string[] { "chainedPlacing" })]
[NotNull(new string[] { "deletedObjects" })]
[MatchTypeObj(new object[] { "chainedPlacing", typeof(ChainedPlacing) })]
public static void DeleteObjectList(this Obj chainedPlacing, IEnumerable<Obj> deletedObjects)
```

#### Parameters

`chainedPlacing` Obj

The chained placing to delete object.

`deletedObjects` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<Obj>

The objects to be deleted.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'chainedPlacing' arguments are empty.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if type of 'chainedPlacing' is not [ChainedPlacing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Chained.ChainedPlacing.md).

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if type of 'deletedObjects' argument is empty.
