    

 ## On this page

  

 

 # createAssemblyVariable

 Last update: 30.07.2026 

public [createAssemblyVariable](create-assembly-variable.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), type: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), parent: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Variable](./../-variable/index.md)

creates an assembly variable

#### Return

a Variable object

#### Parameters

nameName of the new variable to create.typeType of the new variable. Possible types are: double, int, string, file, double\[\], int\[\], boolean\[\], string\[\], quadfacet, surfaceofrevolution, nurbs, bspline, ruled, skinned, vrml, nodeparentthe name of the parent assembly