How to create user-defined property for an database objest

Discussion in 'Cadence' started by yujie29, May 3, 2006.

  1. yujie29

    yujie29 Guest

    Dear all:

    I am writing a skill code for circuit. I want to store the resistor as
    a user-defined property
    of shape object. So I can access it by Objest~>resistor.

    Now I do not know how to create the user-defined property for it.

    Thank you for reading this

    best wishes

    Jack
     
    yujie29, May 3, 2006
    #1
  2. From the DOCs

    dbCreateProp(
    g_object
    t_name
    t_propType
    g_value
    )
    => d_prop / nil

    Creates a scalar property for an object. If a property named t_name already
    exists on the specified object, it returns nil.


    Bernd
     
    Bernd Fischer, May 4, 2006
    #2
  3. Or just use object~>resistor=value - i.e. on the left side of an assignment. This will create or replace the property,
    using a propType inferred from the value assigned.

    Andrew.
    Andrew Beckett
    Principal European Technology Leader
    Cadence Design Systems, UK.
     
    Andrew Beckett, May 4, 2006
    #3
  4. yujie29

    yujie29 Guest

    Thank you very much for your help.

    Jack
     
    yujie29, May 4, 2006
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.