Skip to main content

ModelCenter APIs 2026 R1 SP03

createComponent

Last update: 30.07.2026

public createComponent(serverPath: String, name: String, parentName: String)

Instantiates a new component into the Model

Parameters

serverPath the location of the Component to instantiate, e.g. mcre://localhost/Block
name the name for the instantiated Component
parentName the name of the parent Component to instantiate the new Component into. To instantiate the Component into the top level, the parent name is usually "Model"

Throws

ModelCenterException

public createComponent(serverPath: String, name: String, parentName: String, xPos: Long, yPos: Long)

Instantiates a new component into the Model

Parameters

serverPath the location of the Component to instantiate, e.g. mcre://localhost/Block
name the name for the instantiated Component
parentName the name of the parent Component to instantiate the new Component into. To instantiate the Component into the top level, the parent name is usually "Model"
xPos the x position for the new component in the Analysis View
yPos the y position for the new component in the Analysis View

Throws

ModelCenterException

Connect with Ansys