Skip to main content

ModelCenter APIs 2026 R1 SP03

addVariable

Last update: 30.07.2026

public addVariable(name: String, type: String): Variable

adds a variable to the assembly

Return

the new assembly

Parameters

name Name of the new variable to create.
type Type of the new variable. Possible types are: double, int, string, file, double[], int[], boolean[], string[], quadfacet, surfaceofrevolution, nurbs, bspline, ruled, skinned, vrml, node

Throws

ModelCenterException

Connect with Ansys