    

 ## On this page

  

 

 # Class PatchSetAPI

 Last update: 16.07.2025 

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

This class implements APIs to create patch set.

```csharp
public static class PatchSetAPI

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [PatchSetAPI](VM.API.Pre.FE.PatchSetAPI.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

### CreatePatchset(MeshDocument, IEnumerable&lt;Patch&gt;, string, ExpressionValueVariable?, ExpressionValueVariable?, SurfaceSmoothing, Color?)

Create .

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

```

#### Parameters

`document` MeshDocument

The document to create patch set.

`patchIndexes` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;Patch&gt;

The patch indexes.

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

The name to be cteated patch set.

`maxPenetration` ExpressionValueVariable?

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

`offset` ExpressionValueVariable?

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

`surfaceSmoothing` SurfaceSmoothing

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

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

The color to be cteated patch set. The default value is Violet.

#### Returns

Obj

The new  object that is created by this API.

#### Exceptions

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

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