addAssembly2
Last update: 30.07.2026public addAssembly2(name: String, xPos: Int, yPos: Int): Assembly
adds a sub-assembly
Return
the new assembly
Parameters
| name | the new assembly name |
| xPos | x-coordinate to add the assembly at (in its parent area) |
| yPos | y-coordinate to add the assembly at (in its parent area) |
Throws
| ModelCenterException |
public addAssembly2(name: String, xPos: Int, yPos: Int, assemblyType: String): Assembly
adds a sub-assembly of the specified type
Return
the new assembly
Parameters
| name | the new assembly name |
| xPos | x-coordinate to add the assembly at (in its parent area) |
| yPos | y-coordinate to add the assembly at (in its parent area) |
| assemblyType | the type of assembly to create:ASSEMBLY_TYPE_ASSEMBLY - traditional ModelCenter assemblyThe following additional assembly types are available in ModelCenter process models(i.e. modelType == MODEL_TYPE_PROCESS)ASSEMBLY_TYPE_SEQUENCE - sequential flowASSEMBLY_TYPE_IF - if-then-else flowASSEMBLY_TYPE_FOR_EACH - loop over a data array |
Throws
| ModelCenterException |