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

vfoAllocateShapeData

vfoAllocateShapeData(
d_shape
)
=> g_instance / nil

Description

Returns a newly allocated and initialized instance of the subclass of the vfoShapeData class for the specified database shape ID.

Arguments

d_shape

The database shape ID of one of the following: path, rectangle, polygon, or line.

Value Returned

g_instance

An instance of a subclass of vfoShapeData.

nil

The shape data object is not returned.

Example

Shape1=>objType = "rect"
Obj = vfoAllocateShapeData (Shape1)
    => stdobj:0x1d003c
className( classOf( Obj ))
    => vfoRectShapeData

Shape2=>objType = "polygon"
Obj = vfoAllocateShapeData (Shape2)
    => stdobj:0x1d003c
className( classOf( Obj ))
    => vfoPolygonShapeData

Return to top
 ⠀
X