Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

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

x_modelHandle

Handle to a model.

Value Returned

t_blockName

The name of block associated with the specified model.

nil

Indicates an error.

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

axlGetModel

axlSetModelBlock

axlGetCorner


Return to top
 ⠀
X