Product Documentation
Virtuoso Parameterized Cell SKILL Reference
Product Version IC23.1, August 2023

pcGetOffsetPath

pcGetOffsetPath(
d_cvId
l_vertex_points
n_offset
)
=> l_vertex_points / nil

Description

Applies the offset to each vertex of the path to create a list of vertices for a longer or shorter version of the path. Returns a list of points for the vertices of the offset version of the path. This function does not change the original path and does not create the offset version of the path

Arguments

d_cvId

The database ID of the cellview containing the path.

l_vertex_points

A list of lists identifying a path in the cellview, where each sublist specifies the coordinates for one vertex. Use the following format: list( '( x y ) '( x y ) ... '( x y ) )

n_offset

An integer or floating-point number.

Value Returned

l_vertex_points

A list of lists specifying the vertices of the offset version of the path, in the following format:

((x y) (x y) ... (x y))

nil

The function did not execute successfully.

Examples

pcGetOffsetPath( cv list( '(6.0 6.0) '(10.0 6.0) '(10.0 16.0) '(20.0 16.0) ) 2.0 )

Creates and returns the following list of points, which are offset from the specified path by 2.0:

((6.0 8.0)
  (8.0 8.0)
  (8.0 18.0)
  (20.0 18.0)
)

Return to top
 ⠀
X