This functionality is only available for certain module packages.

You are here: Reference > Commands > Engineering.CreateInstanceCommand

Engineering.CreateInstanceCommand

Creates a new instance. Due to the different execute methods the following scenarios are covered:

  1. An instance of the given class will be created with the entered name under the specified component.
  2. Argument Type Description
    classToInstantiate Object Class to be instantiated.
    instantiationParent Object Parent component, under which the new instance will be created.
    The component itself or the absolute name of the component may be entered.
    instanceName String The new name of the instance. If the name already exists a name collision clearing is executed.
  3. An instance of the specified class will be created with the given name under the specified component and the calculation of the extension point of the instance is controlled at the same time.
  4. Argument Type Description
    classToInstantiate Object Class to be instantiated.
    instantiationParent Object Parent component, under which the new instance will be created.
    The component itself or the absolute name of the component may be entered.
    instanceName String The new name of the instance. If the name already exists a name collision clearing is executed.
    instantiateExtensions Boolean The values true or false control the calculation of extensions in the new instance.
  5. An instance of the given class will be created with the entered name under the specified component on the specified placeholder.
  6. Argument Type Description
    classToInstantiate Object Class to be instantiated.
    instantiationParent Object Parent component, under which the new instance will be created.
    The component itself or the absolute name of the component may be entered.
    instanceName String The new name of the instance. If the name already exists a name collision clearing is executed.
    placeholderName String The placeholder where the new component is placed.
  7. An instance of the specified class will be placed with the given name under the specified component and the calculation of the extension point of the instance is controlled at the same time.
  8. Argument Type Description
    classToInstantiate Object Class to be instantiated.
    instantiationParent Object Parent component, under which the new instance will be created.
    The component itself or the absolute name of the component may be entered.
    instanceName String The new name of the instance. If the name already exists a name collision clearing is executed.
    instantiateExtensions Boolean The values true or false control the calculation of extensions in the new instance.
    placeholderName Boolean The values true or false control the calculation of extensions in the new instance.