Skip to main content

ModelCenter APIs 2025 R1

addAssembly

Last update: 16.07.2025

public addAssembly(name: String): Assembly

adds a sub-assembly

Return

the new assembly

Parameters

name the new assembly name

Throws

ModelCenterException

public addAssembly(name: String, assemblyType: String): Assembly

adds a sub-assembly of the specified type

Return

the new assembly

Parameters

name the new assembly name
assemblyType the 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

Connect with Ansys