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

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

This class implements APIs to create edge set.

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

#### Inheritance

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

### CreateEdgeset(MeshDocument, IEnumerable\<uint>, string, ExpressionValueVariable?, ExpressionValueVariable?, SurfaceSmoothing, Color?)

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

```csharp theme={null}
[NotNull(new string[] { "document", "nodeIndex" })]
public static Obj CreateEdgeset(this MeshDocument document, IEnumerable<uint> nodeIndex, string name = "", ExpressionValueVariable? maxPenetration = null, ExpressionValueVariable? offset = null, SurfaceSmoothing surfaceSmoothing = SurfaceSmoothing.AUTOMATIC, Color? color = null)
```

#### Parameters

`document` MeshDocument

The document to create edge set.

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

The node indexes for creating edgeset.

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

The name to be cteated edge set.

`maxPenetration` ExpressionValueVariable?

The maximum penetration to be cteated edge set. The default value is 0.

`offset` ExpressionValueVariable?

The offset to be cteated edge set. The default value is 1.

`surfaceSmoothing` SurfaceSmoothing

The surface smoothing to be cteated edge set. The default value is AUTOMATIC.

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

The color to be cteated edge set. The default value is Red.

#### Returns

Obj

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

#### Exceptions

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

Will be thrown if 'document' or 'nodeIndex' arguments are empty.
