Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class PatchSetAPI

Last update: 16.07.2025

Namespace: VM.API.Pre.FE
Assembly: VM.API.Pre.FE.dll

This class implements APIs to create patch set.

public static class PatchSetAPI

Inheritance

objectPatchSetAPI

Extension Methods

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

Methods

CreatePatchset(MeshDocument, IEnumerable, string, ExpressionValueVariable?, ExpressionValueVariable?, SurfaceSmoothing, Color?)

Create .

[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

The patch indexes.

name 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?

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

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

Connect with Ansys