Skip to main content

ModelCenter APIs 2025 R1

Interface TradeStudyPlugIn::IVariableMetaDataProvider

Last update: 16.07.2025

Definition: ModelCenter/src/InterfaceDLL\_TradeStudyPlugIn/TradeStudyPlugIn.odl (line 311)

Class which provides variable metadata. Since a job manager is not always backed by a model anymore, we can't rely on IModelCenter::getVariable().

Members

Public functions

Function getVariableMetaData

LPDISPATCH TradeStudyPlugIn::IVariableMetaDataProvider::getVariableMetaData(BSTR fullName)

Get the metadata for a variable. Throws an exception if not found. Parameters:

  • fullName: the full name of the variable

Returns:

the metadata object (IDHVariable, from DataHistory plugin)

Parameters:

  • BSTR fullName

Return type: LPDISPATCH

Function SAFEARRAY

TradeStudyPlugIn::IVariableMetaDataProvider::SAFEARRAY(IDispatch *) getAllVariableMetaData(BSTR path)

Get the metadata for all variables identified by the specified path. Parameters:

  • path: the path

Returns:

the list of variables (as IDHVariable objects, from DataHistory plugin)

Parameters:

  • IDispatch *

Return type:

Connect with Ansys