axlGetModelBlock
axlGetModelBlock(x_modelHandle) =>t_blockName/ nil
Description
Returns the block name with which the specified model is associated. By default, a model file is associated with a test and therefore, the block name is set to Global. However, in MTS mode, a model can be associated with a specific block in the design. Using this function, you can get the name of the block with which a model file is associated.
Arguments
Value Returned
Examples
Returns the block name for mymodel.scs.
x_mainSDB=axlGetMainSetupDB(axlGetWindowSession())
=> 1001
cornerHandle=axlGetCorner(x_mainSDB "C0")
=> 5497
modelHandle=axlGetModel(cornerHandle "myModel.scs")
=> 5505
axlGetModelBlock(modelHandle)
=> "Global"
; the return value indicates that the model is associated with the entire test and not to a specific block
Related Topics
Return to top