Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbIsShapeColoringAllowed

dbIsShapeColoringAllowed(
d_shapeID
)
=> t / nil

Description

Indicates whether the specified shape is of a type that can be colored or not. Only the following shapes can be colored: arcs, lines, donuts, ellipses, pathSegs, paths, rects, and polygons.

This function does not check whether the layer associated with the shape is colorable or not, as defined in the technology database.

Arguments

d_shapeID

Specifies the shape ID

Value Returned

t

Returns t if the shape can be colored

nil

Returns nil if the shape cannot be colored

Example

dbIsShapeColoringAllowed( dbCreateRect( cvId "M1" "drawing" '((0 0) (100 100)) ) ) => t
dbIsShapeColoringAllowed( dbCreateDot( cvId "M1" "drawing" '(0 0) ) ) => nil

Return to top
 ⠀
X