Skip to main content

ModelCenter APIs 2025 R2

addInput

Last update: 16.07.2025

public addInput(name: String, type: 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
value the value of the variable

Throws

ModelCenterException

Connect with Ansys