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

weSetPathSegWidth

weSetPathSegWidth( 
[ g_pathSegId ] 
float value
) 
=> t / nil

Description

Automatically handles the sqrt(2) conversion for diagonal pathseg when the width is being changed. In addition, it also supports diagonal pathseg with custom extension and appropriately updates the values when the width is being changed.

Arguments

g_pathSegID

OpenAccess database Id of the pathSeg being queried.

float value

The new width value that is to be set for the pathseg.

Value Returned

t

The command ran successfully.

nil

The command failed to run or an error occurred.

Examples

Consider that diag is a diagonal pathseg whose width == 0.3 and ortho is a diagonal pathseg whose width == 0.3. The following script shows the use of dbSetPathSegWidth.

\i weSetPathSegWidth(diag 0.5)
\t t
\p > 
\i weGetPathSegWidth(diag)
\t 0.5
\p > 
\i diag~>width
\t 0.71
\p > 

Related Topics

Interactive and Assisted Routing Functions


Return to top
 ⠀
X