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
|
Destination object where the property is to be copied. This destination object can be a property, dbId, ddId, or dbBagId. |
Value Returned
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