Skip to main content
Definition: ModelCenter/src/ModelCenter.odl (line 1120) COM Instance. Inherited by:

Members

Properties

Property Variables

Definition: ModelCenter/src/ModelCenter.odl (line 1)
Pointer to the variables in the Component. Returns: IDispatch* to an IVariables object. Return type: VARIANT

Property Groups

Definition: ModelCenter/src/ModelCenter.odl (line 1)
Pointer to the Groups in the Component. Returns: IDispatch* to an IGroups object. Return type: VARIANT

Property userData

Definition: ModelCenter/src/ModelCenter.odl (line 1)
An arbitrary Variant which is not used internally by ModelCenter but can store data for programmatic purposes. Value is not stored across file save/load. Return type: VARIANT

Property AssociatedFiles

Definition: ModelCenter/src/ModelCenter.odl (line 1)
A set of files associated with the Component. Returns: Variant containing the list of associated files (string or array of strings) Return type: VARIANT

Property IndexInParent

Definition: ModelCenter/src/ModelCenter.odl (line 1)
Position of this component in the parent Assembly. Return type: int

Property ParentAssembly

Definition: ModelCenter/src/ModelCenter.odl (line 1)
Parent assembly to this component. Returns: IDispatch* to an IAssembly object. Return type: LPDISPATCH

Public functions

Function getName

Gets the name of the Component. Returns: The name of the Component. Return type: BSTR Reimplemented by:

Function getFullName

Gets the full ModelCenter path of the Component. Returns: the full ModelCenter path of the Component. Return type: BSTR Reimplemented by:

Function run

Runs the Component. Return type: void Reimplemented by:

Function getSource

Gets the source of the Component. Returns: The source of the Component. Return type: BSTR Reimplemented by:

Function invokeMethod

Invokes one of the Component’s methods. Parameters:
  • method: The name of the method to invoke.
Parameters:
  • BSTR method
Return type: void Reimplemented by:

Function invalidate

Invalidates the Component and all of its variables. Return type: void Reimplemented by:

Function reconnect

Reconnect a Component. Return type: void Reimplemented by:

Function downloadValues

Downloads the component’s variable values from ModelCenter Remote Execution, if it’s a MCRE component. Return type: void Reimplemented by:

Function getVariable

Gets the Variable by the specified name. Parameters:
  • name: The name of the variable to retrieve in dotted notation relative to the Component.
Returns: IDispatch* to an IVariable object. Parameters:
  • BSTR name
Return type: LPDISPATCH Reimplemented by:

Function rename

Renames the current Component. Parameters:
  • name: New name of the Component.
Parameters:
  • BSTR name
Return type: void Reimplemented by:

Function getType

Gets the type of the component. Valid types include:
  • Component
  • Assembly
  • Sequence
  • If
  • Parallel
  • Empty
  • ForEach
Returns: The type of the component. Return type: BSTR Reimplemented by:

Function show

Show the GUI form associated with the component, if any. Return type: void Reimplemented by:

Function setMetadata

Sets the meta data value of the given meta data key name. Parameters:
  • name: Metadata specifier used to store the data.
  • type:
  • value:
  • access:
  • archive:
Parameters: Return type: void

Function getMetadata

Gets the meta data value of the given meta data key name. Parameters:
  • name: Metadata key name.
Returns: Metadata value. Parameters:
  • BSTR name
Return type: VARIANT

Private functions

Function getPositionX

Return type: int Reimplemented by:

Function getPositionY

Return type: int Reimplemented by: