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

leConvertShapeToPolygon

leConvertShapeToPolygon(
d_shapeId 
[ x_sides ]
) 
=> d_polygonId / nil

Description

Converts shape d_shapeId to an equivalent polygon. If it is a conic, the polygon has the specified number of sides.

Arguments

d_shapeId

The database ID of the shape to convert.

x_sides

Specifies the number of sides to use when converting conic shapes. Default Value: 20

Valid Values: any positive integer up to 2047.

Value Returned

d_polygonId

The object ID of the polygon if it is created.

nil

The polygon is not created.

Example

Converts the conic shape shape2 to a polygon with 10 sides and returns the object ID for the polygon.

leConvertShapeToPolygon( shape2 10 )

Interactive Function

Enter this function with only the window ID argument; the system prompts you to point to the shape to convert. If you do not specify w_windowId, the current window is used.

leHiConvertShapeToPolygon( [ w_windowId ] ) => d_polygonId / nil

Return to top
 ⠀
X