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

hiMakeLPChoiceList

hiMakeLPChoiceList( 
d_techFileID 
l_layerName&Purpose 
[ g_layerNum ]
[ g_swatchIcon ]
) 
=> l_iconList / nil

Description

Creates a layer purpose icon list for use in a form field or menu.

Arguments

d_techFileID

Technology File ID in which the layers are defined.

l_layerName&Purpose

List of lists identifying layers and their purposes.

g_layerNum

Layer number

g_swatchIcon

A boolean value specifying whether or not the icon will contain only the layer swatches. No layer description will be available in the new icon if this argument is set to t.

Value Returned

l_iconList

Returns l_icon list if the layer purpose icon list was created.

nil

Returns nil if the layer purpose icon list was not created.

Example

Creates a layer purpose icon list with two layers, a metal1 drawing layer and a metal2 drawing layer:

iconList = hiMakeLPChoiceList(techFileId list(
    list("metal1" "drawing")
    list("metal2" "drawing")
    )
)

Creates a layer purpose icon list containing all the layers of the specified technology file:

iconList = hiMakeLPChoiceList(techFileId list())

Returns a list containing the icon along with layer and purpose name.The layer and purpose name can be extracted from this list and passed to hiCreateMenuItem as itemText:

l_choices=(hiMakeLPChoiceList (techGetTechFile (getWindowRep)) '(
("y0" "drawing")("y1" "drawing")("y2" "drawing")
)
nil t)


Return to top
 ⠀
X