    

 ## On this page

  

 

 # Class EdgeSetAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_FE_EdgeSetAPI"></a>

Namespace: [VM.API.Pre.FE](VM.API.Pre.FE.md)  
Assembly: VM.API.Pre.FE.dll

This class implements APIs to create edge set.

```csharp
public static class EdgeSetAPI

```

#### Inheritance

object ← [EdgeSetAPI](VM.API.Pre.FE.EdgeSetAPI.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_)

## Methods

### <a id="VM_API_Pre_FE_EdgeSetAPI_CreateEdgeset_VM_Managed_DAFUL_FE_MeshDocument_System_Collections_Generic_IEnumerable_System_UInt32__System_String_System_Nullable_VM_Models_Pre_ExpressionValueVariable__System_Nullable_VM_Models_Pre_ExpressionValueVariable__VM_Managed_DAFUL_SurfaceSmoothing_System_Nullable_System_Drawing_Color__"></a> CreateEdgeset(MeshDocument, IEnumerable&lt;uint&gt;, string, ExpressionValueVariable?, ExpressionValueVariable?, SurfaceSmoothing, Color?)

Create .

```csharp
[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&lt;uint&gt;

The node indexes for creating edgeset.

`name` string

The name to be cteated edge set.

`maxPenetration` [ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)?

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

`offset` [ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)?

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?

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

#### Returns

[Obj](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/API/VM.API.Pre/Models/Obj.cs)

The new  object that is created by this API.

#### Exceptions

ArgumentNullException

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