Skip to main content

ModelCenter APIs 2026 R1 SP03

addInput2

Last update: 30.07.2026

public addInput2(name: String, type: String, classURL: String, value: String): Variable

adds a pending input to the component.

Valid types of variables are listed below. Add [] to the end of the type name to indicate an array of that type.

  • double - double
  • int - integer
  • string - string
  • bool - boolean
  • ref - reference
  • file - A binary or ascii file.
  • quad - Quad Facet Geometry, a geometry type composed of multiple quadrilaterals.
  • sor - Surface of Revolution, a geometry type defined by a profile curve rotated about an axis.
  • nurbs - A geometry type for NURBS.
  • bspline - A geometry type for B-Spline curves.
  • ruled - A geometry type for ruled surfaces.
  • skinned - A geometry type for skinned surfaces.
  • node - A geometry type for displaying multiple points in space.

Return

pointer to the variable object

Parameters

name the name of the variable
type the type of the variable
classURL class of the object variable. Empty string for non-object variable
value the value of the variable

Throws

ModelCenterException

Connect with Ansys