leCreateLayerField
leCreateLayerField(
s_name
?callback t_callback
?appendChoices l_appendChoices
?prependChoices l_prependChoices
?maxVisibleItems x_maxVisibleItems
?syncedPaletteWindow w_syncedPaletteWindow
?techFile d_techFile
?value t_value
?enabled g_enabled
?invisible g_invisible
?layerFunction t_layerFunction
?maxWidth x_maxWidth
)
=> t_layerfield
Description
Creates a cyclic field for to display layer-purpose pair (LPP) names with swatches. The combo box created allows you to type and search for a layer purpose pair within the list of values. The list of layers is displayed only if a layout window is open.
Arguments
|
s_name
|
A symbol specifying the name the field will be accessed in the form.
|
|
?callback t_callback
|
|
|
The name of a function or SKILL code. If a single name without '()' is specified, for example, "metal1 drawing", the current value is passed as an argument when the value changes.
|
|
?appendChoices l_appendChoices
|
|
|
A list of strings to be appended to the LPPs. If the strings are LPPs, they are displayed with the associated swatches similar to LPPs. LPPs specified through these are options are not filtered through layerFunction or syncedPaletteWindow.
|
|
?prependChoices l_prependChoices
|
|
|
A list of strings that should be prepended to the LPPs. For example, "Auto select" and "Use Current Entry Layer".
|
|
?maxVisibleItems x_maxVisibleItems
|
|
|
The number of entries that will be visible when you click the drop down list. Default value: 10.
|
|
?syncedPaletteWindow w_syncedPaletteWindow
|
|
|
The window to synchronize the layer purpose list to. This is effective only when the validLppFilterOn is on.
|
|
?techFile d_techFile
|
|
|
The technology file from which the valid layer purpose needs to be read.
|
|
?value t_value
|
The current value of the field. You can set or get this value.
|
|
?enabled g_enabled
|
|
|
Specifies whether the layer field is enabled.
|
|
?invisible g_invisible
|
|
|
Specifies whether the layer field is visible.
|
|
?layerFunction t_layerFunction
|
|
|
The name of the function that is used to filter out the LPPs to be shown in layer field. A valid layer function filters the LPPs found in the given techField. If you need a layer field with a specific set of layers that do not get filtered by Palette settings, specify the name of a non-existent layer function, such as Dummy1. The only choices then available are those specified by the appendChoices or prependChoices arguments.
|
|
?maxWidth x_maxWidth
|
|
|
The maximum width of the layer field.
|
Value Returned
|
t_layerfield
|
The name of the created layer field.
|
Example
leCreateLayerField( 'moveToLayer ?callback "layerFieldCB" ?techFile techGetTechFile(geGetEditCellView()) ?syncedPaletteWindow hiGetCurrentWindow() )
Return to top