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

dbSetBeginPatch

dbSetBeginPatch(
d_pathSegId
g_value
)
=> t / nil

Description

Adds or removes the beginStyle 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 beginStyle for the path segment. Else, set to false to remove the patch type..

Value Returned

t

The patch type for the path segment is successfully set to beginStyle.

nil

The patch type is not successfully set.

Examples

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

Related Topics

Patch Functions


Return to top
 ⠀
X