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

Members

Public functions

Function getName

Retrieves the name associated a given row in the Data Monitor. Parameters:
  • row: The row number in the Data Monitor of interest (0-based index).
Returns: The name of the row. Parameters:
  • long row
Return type: BSTR

Function setName

Sets the display name of the specified row in the Data Monitor. Parameters:
  • row: The row in the Data Monitor of interest (0-based index).
  • name: The new display name.
Parameters:
  • long row
  • BSTR name
Return type: void

Function isRenamed

Determines whether the name of a row in the Data Monitor lines up to the ModelCenter variable it represents. Parameters:
  • row: The row in the Data Monitor of interest (0-based index).
Returns: true or false Parameters:
  • long row
Return type: boolean

Function getLink

Retrieves the ModelCenter variable associated with a given row in the Data Monitor. Returns a blank string if the specified row doesn’t link to a ModelCenter variable. Parameters:
  • row: The row number in the Data Monitor of interest (0-based index).
Returns:
Parameters:
  • long row
Return type: BSTR

Function setLink

Sets the ModelCenter variable associated with a given row in the Data Monitor. Parameters:
  • row: The row in the Data Monitor of interest (0-based index).
  • link: The ModelCenter variable to associate with a given row in the Data Monitor.
Returns:
Parameters:
  • long row
  • BSTR link
Return type: boolean

Function addItem

Add an item to the Data Monitor that links to a variable in the model. Parameters:
  • name: The name to use for the item in the Data Monitor.
  • link: The name of the ModelCenter variable this item links to.
Returns:
Parameters:
  • BSTR name
  • BSTR link
Return type: int

Function addUnlinkedItem

Add an item to the Data Monitor that does not link to a variable within ModelCenter. Parameters:
  • name: The name to use for the item in the Data Monitor.
Returns:
Parameters:
  • BSTR name
Return type: int

Function removeItem

Removes the selected row from the Data Monitor. Parameters:
  • row: The row in the Data Monitor of interest (0-based index).
Parameters:
  • long row
Return type: void

Function removeLink

Removes the associated link from the row specified in the Data Monitor. Parameters:
  • row: The row in the Data Monitor of interest (0-based index).
Parameters:
  • long row
Return type: void

Function getDisplayFullNames

Get the status of the “Display Full Names” option. Returns: true or false Return type: boolean

Function setDisplayFullNames

Sets the “Display Full Names” option. Parameters:
  • boolean
Return type: void

Function getAutoDelete

Gets the status of the Auto Delete option. Returns: true or false Return type: boolean

Function setAutoDelete

Sets the status of the Auto Delete option. Parameters:
  • boolean
Return type: void

Function getDisplayUnits

Get the status of the “Display Units” option. Returns: true or false Return type: boolean

Function setDisplayUnits

Sets the “Display Units” option. Parameters:
  • boolean
Return type: void

Function getColWidth

Gets the column width for the specified column. Parameters:
  • col: The column number to fetch the width of (0-based index).
Returns: The column width. Parameters:
  • long col
Return type: int

Function setColWidth

Sets the width of the specified column. Parameters:
  • col: The column in the Data Monitor of interest (0-based index).
  • width: The new width for the column.
Parameters:
  • long col
  • int width
Return type: void

Function isValid

Determines whether all the items in the Data Monitor are valid or not. Returns: Yes (TRUE) or no (FALSE). Return type: boolean

Function getTitle

Gets the title of the Data Monitor. Returns: The title of the Data Monitor. Return type: BSTR

Function setTitle

Sets the title of the Data Monitor. Parameters:
  • title: The new title of the Data Monitor.
Parameters:
  • BSTR title
Return type: void

Function getWidth

Gets the width of the Data Monitor. Returns: The width of the Data Monitor. Return type: int

Function getHeight

Get the height of the Data Monitor. Returns: The height of the Data Monitor. Return type: int

Function setSize

Sets the height and width of the Data Monitor. Parameters:
  • width: The new width for the Data Monitor.
  • height: The new height of the Data Monitor.
Parameters:
  • int width
  • int height
Return type: void

Function getX

Gets the X position of the Data Monitor. Returns: The value of the X position of the Data Monitor. Return type: int

Function getY

Gets the Y position of the Data Monitor. Returns: The value of the Y position of the Data Monitor. Return type: int

Function setLocation

Sets the x and y location of the Data Monitor in the Analysis View. Parameters:
  • x: The new x position.
  • y: The new y position.
Parameters:
  • int x
  • int y
Return type: void