Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class FunctionAPI

Last update: 09.03.2026

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

This class implements APIs for class.

public static class FunctionAPI

Inheritance

object ← FunctionAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

CreateFunction(SubSystemDocument, string, IEnumerable<(string, Obj)>, string, SymmetricType, bool)

Create .

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "expression" })]
public static Obj CreateFunction(this SubSystemDocument document, string expression, IEnumerable<(string, Obj)> arguments = null, string name = "", SymmetricType symmetricType = SymmetricType.None, bool isInterface = false)

Parameters

document SubSystemDocument

The document to create a function.

expression string

The expression of a function.

arguments IEnumerable<(string, Obj)>

The arguments of a function.

name string

The name of a function.

symmetricType SymmetricType

The symmetric type of the new

isInterface bool

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

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document', 'expression' argument is null.

ArgumentException

Will be thrown if the second element of 'arguments' is not .

Connect with Ansys