wspCreateWSPByAttr
wspCreateWSPByAttr (
d_cellViewId
list (nil
'name t_name
'offset n_offset
'shiftColor g_shiftColor
'repeatOffset g_repeatOffset
'allowedRepeatMode t_allowedRepeatMode
'defaultRepeatMode t_defaultRepeatMode
tracks ( list(nil
'width n_width
'space n_space
[ 'wireType t_wireType ]
[ 'color t_color ]
[ 'displayPacket t_displayPacket ]
)
)
)
=> d_wspId
Description
Creates a width spacing pattern (WSP). The pattern attributes are specified as a DPL. This function is specified with the wspGetFlatAttr function, which returns an existing pattern as a DPL. It lets you convert the existing patterns to a DPL, modify them, and recreate them.
Arguments
|
d_cellViewId
|
Database ID of the cellview in which the WSP is created.
|
|
'name t_name
|
Name of the WSP.
|
|
'offset n_offset
|
Center-line offset of the first track. The default is 0.0.
|
|
'shiftColor g_shiftColor
|
|
|
The track color shift when the pattern repeats. The default is nil.
|
|
'repeatOffset g_repeatOffset
|
|
|
The offset applied each time the pattern repeats. The default is t.
|
|
'allowedRepeatMode t_allowedRepeatMode
|
|
|
Specifies the way the pattern can repeat. The choices are any, none, steppedOnly, or flippedOnly. The default is any.
|
|
'defaultRepeatMode t_defaultRepeatMode
|
|
|
Specifies the default repeat mode, when the allowedRepeatMode is specified. The choices are noRepeat, stepped, flippedStartsWithOdd, or flippedStartsWithEven. The default is noRepeat.
|
|
'width n_width
|
Specifies the width of the track in user units.
|
|
'space n_space
|
Specifies the center-line space to the next track.
|
|
'wireType n_wireType'
|
|
|
Specifies the wire type.
|
|
'color t_color
|
Specifies the color of the track. The values are mask1Color, mask2Color, or mask3Color.
|
|
'displayPacket t_displayPacket
|
|
|
Specifies the display packet name to be used for displaying the specified WSP track.
|
Value Returned
|
d_wspId
|
Database ID of the WSP.
|
Examples
wspCreateWSPByAttr(cv list (nil 'name "mflat' 'shiftColor t 'allowedRepeatMode "any" 'defaultRepeatMode "stepped" 'tracks list(
list(nil 'width 0.064 'space 0.096 "maskColor")
list(nil 'width 0.032 'space 0.064 'color "mask2Color" 'wireType "new")
list(nil 'width 0.032 'space 0.064 'color "mask1Color" 'wireType "new" 'displayPacket "m2")
)
'repeatOffset t 'offset 0.01 )
)
Return to top