• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. SKILL to add instance properties

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 15913
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SKILL to add instance properties

jaleco
jaleco over 11 years ago

Is there a SKILL function that can be used to add a property to a layout instance?

I am trying to transfer properties attached to specific instances in one db to a duplicate db that is missing them.

I can locate instances in the source db with the property to be transferred - (something like this except it will ultimately operate on a library):

{

cv=geGetEditCellView()

StPropInstList = setof( inst cv~>instances car(inst~>prop~>name) == "MY PROPERTY")

}

 ...but in my destination db, I cannot find SKILL code to perform the equivalent of  - for each instance, opening the Edit Properties form (leHiEditProp()) and manually adding a new property and defining its name and value.  It seemed that a new property could be assigned using myinst~>prop~>name = "My PROPERTY", but this does not work.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    dbReplaceProp(inst "MY PROPERTY" 'string "whatever")

    See the docs for dbReplaceProp for more details.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 11 years ago

    Here is another command that could help if you want to copy all the properties:

    dbCopyPropList(
    d_dbId1
    d_dbId2
     )
         => t | nil

    Copies all the properties from the database object given in the first argument to the database object given in the second argument in a single, atomic, copy operation. Properties with the same name in the destination object are overwritten. If the given database objects are pcell instances, then pcell evaluation happens exactly once after all the properties are copied.

    OR

    dbCopySingleProp(
    d_srcPropId
    g_dstObjId
     )
         => d_dstPropId

    Copies a single property to a destination object.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information