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

dbCopySingleProp

dbCopySingleProp( 
d_srcPropId 
g_dstObjId 
) 
=> d_dstPropId 

Description

Copies a single property to a destination object.

If the property already exists on the destination object, it is overwritten with the copied property. This function differs from the dbCopyProp function, which copies all properties from the source object.

Arguments

d_srcPropId

ID of the source property to be copied.

g_dstObjId

Destination object where the property is to be copied. This destination object can be a property, dbId, ddId, or dbBagId.

Value Returned

d_dstPropId

The property ID of the destination property.

Examples

This example copies the property prop from cellview cv1 to cellview cv2.

cv1 = dbOpenCellViewByType("test" "abc" "layout" "maskLayout" "a")
cv2 = dbOpenCellViewByType("test" "xyz" "layout" "" "a")
prop = dbCreateProp(cv1 "width" "int" 10)
dstProp = dbCopySingleProp(prop cv2)

Related Topics

Property Creation and Modification Functions


Return to top
 ⠀
X