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

apIPRegisterCustomMenuItem

apIPRegisterCustomMenuItem(
t_commandName
t_functionName
[ ?inst g_inst ]
[ ?modgen g_modgen ]
[ ?figGroup g_figGroup ]
)
=> t / nil

Description

Registers a custom context menu item in the interactive placer context menu.

Arguments

t_commandName

Specifies the new context menu name.

t_functionName

Specifies the name of the function to be called.

[ ?inst g_inst ]

Displays the custom context menu only when the select set contains an instance.

[ ?modgen g_modgen ]

Displays the custom context menu only when the select set contains a Modgen.

[ ?figGroup g_figGroup ]

Displays the custom context menu only when the select set contains a figGroup.

Value Returned

t

The custom context menu item is registered in the interactive placer context menu.

nil

The custom context menu could not be registered.

Examples

If the selected set contains instances or Modgens, the context menu includes the custom button ButtonText that calls buttonFunction on click.

apIPRegisterCustomMenuItem("ButtonText" "buttonFunction()" ?inst t ?modgen t)

Related Topics

apIPUnregisterCustomMenuItem

apIPUnregisterCustomMenuItems

Auto P&R Assistant User Interface for Device-Level Placement


Return to top
 ⠀
X