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

dbSetEndPatch

dbSetEndPatch(
d_pathSegId
g_value
)
=> t / nil

Description

Adds or removes the endStyle patch type for the specified path segment depending on the argument g_value.

Arguments

d_pathSegId

The database ID of the path segment.

g_value

Value of the patch type.
Set to true to set the endStyle for the path segment. Else, set to false to unset it.

Value Returned

t

The patch type for the path segment was successfully set to endStyle.

nil

nil is returned if the patch type was not successfully set.

Examples

ps = dbCreatePathSeg(cv "metal1" list(-1 0) list(0 1) .05 "truncate" "truncate")  db:0x1f7b9c1a
dbSetEndPatch(ps t) => t
dbGetPatchType(ps) => endStyle
dbSetBeginPatch(ps t) => t
dbGetPatchType(ps) => bothStyle
dbSetEndPatch(ps nil) => t
dbGetPatchType(ps) => BeginStyle

Related Topics

Patch Functions

Return to top
 ⠀
X