Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class DesignVariableAPI

Last update: 09.03.2026

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

This class implements APIs for class.

public static class DesignVariableAPI

Inheritance

object ← DesignVariableAPI

Extension Methods

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

Methods

CreateDesignVariable(IDocument, string, ExpressionValueVariable, SymmetricType)

Create .

[NotNullOrEmpty(new string[] { "value" })]
public static Obj CreateDesignVariable(this IDocument document, string name, ExpressionValueVariable value, SymmetricType symmetricType = SymmetricType.None)

Parameters

document IDocument

The document to create the design variable.

name string

The name of the design variable.

value ExpressionValueVariable

The value to create the design variable.

symmetricType SymmetricType

The symmetric type of the new

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'value' argument is null.

Connect with Ansys