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

asiSelectSourceInst

asiSelectSourceInst(
s_field
[ ?prompt t_prompt ]
[ ?form r_form ]
[ ?tab l_tab ]
)
=> t / nil

Description

Lets you select a source instance on the schematic. If you select any other object, the system beeps and ignores the selection.

Arguments

s_field

Name of the field to be filled in with the selected value.

?prompt t_prompt

Prompt string to display in the schematic window.

Default Value: "Select source..."

?form r_form

Form that contains the field to be filled in with the selected value. The default is the form returned by hiGetCurrentForm.

?tab l_tab

List containing the following:

  • Name of the tab, which is created using hiCreateTabField.
  • Page displayed on the specified tab on which the string field exists.
Use this argument only in case the specified form has multiple tabs.

Value Returned

t

Successful operation

nil

Indicates an error.

Examples

Lets you select a source instance from the schematic to use as input for the srcInst field of the current form. Use this when the form does not contain any tabs.

asiSelectSourceInst( 'srcInst ?prompt "Select voltage source or current source" )

Lets you select a source instance from the schematic to use as input for the srcInst field present in page1 of TabField. Use this when a form contains multiple tabs.

asiSelectSourceInst( 'srcInst ?tab list('TabField 'page1) ?prompt "Select voltage source or current source")

Related Topics

hiCreateTabField

hiGetCurrentForm


Return to top
 ⠀
X