    

 ## On this page

  

 

 # addAssembly

 Last update: 16.07.2025 

public [addAssembly](add-assembly.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Assembly](index.md)

adds a sub-assembly

#### Return

the new assembly

#### Parameters

namethe new assembly name#### Throws

[ModelCenterException](../-model-center-exception/index.md)public [addAssembly](add-assembly.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), assemblyType: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Assembly](index.md)

adds a sub-assembly of the specified type

#### Return

the new assembly

#### Parameters

namethe new assembly nameassemblyTypethe type of assembly to create: ASSEMBLY\_TYPE\_ASSEMBLY - traditional ModelCenter assembly The following additional assembly types are available in ModelCenter process models (i.e. modelType == MODEL\_TYPE\_PROCESS) ASSEMBLY\_TYPE\_SEQUENCE - sequential flow ASSEMBLY\_TYPE\_IF - if-then-else flow ASSEMBLY\_TYPE\_FOR\_EACH - loop over a data array#### Throws

[ModelCenterException](../-model-center-exception/index.md)