Home > Community > Forums > Custom IC SKILL > setting user property in symbol view

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 setting user property in symbol view 

Last post Tue, May 26 2009 3:56 PM by rajivsub. 3 replies.
Started by rajivsub 26 May 2009 09:44 AM. Topic has 3 replies and 2627 views
Page 1 of 1 (4 items)
Sort Posts:
  • Tue, May 26 2009 9:44 AM

    • rajivsub
    • Not Ranked
    • Joined on Mon, May 4 2009
    • Posts 7
    • Points 110
    setting user property in symbol view Reply

    I am trying to set a user property on one of the pins of a symbol. The property is 'nlAction' and has a string value of "ignore". 

    I can set it by clicking on the properties of the pin and adding the user property. (in GUI mode)

    Any suggestions if there is a skill function that will allow me to add a user property on a schematic symbol object?

    I tried using dbSetq but it does not show up on the property form. Also, for a pin with the property added via the form, dbSetq returned nil - so not sure where the user property is getting added to. Could not get it to show up with obj~>?? either. 

     Thanks

     

    • Post Points: 20
  • Tue, May 26 2009 9:57 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,587
    • Points 15,900
    Re: setting user property in symbol view Reply

    Hi Rajiv,

    Any database object, except for a property itself, can have a property added/attached to it. (For a property of a property, you would need to create a hierarchical property object).  You should be able to do what you want using the dbCreateProp() function:

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

    For certain properties, e.g. time, which looks like a string, you need to use a specific function, dbCreateTimeProp() for example.

    I hope that this helps you.

    Regards,

    Lawrence.

    • Post Points: 20
  • Tue, May 26 2009 10:02 AM

    Re: setting user property in symbol view Reply

    Rajiv,

    To answer your specific question, when you add a user defined property on a pin in the symbol editor, the property actually gets added onto the terminal object.

    So you could do the same using:

      dbFindTermByName(cvId "pinName")~>nlAction="ignore"

    Regards,

    Andrew.

    • Post Points: 20
  • Tue, May 26 2009 3:56 PM

    • rajivsub
    • Not Ranked
    • Joined on Mon, May 4 2009
    • Posts 7
    • Points 110
    Re: setting user property in symbol view Reply

    Thanks all,

    Got it to work with your solutions. 

    Appreciate it.

     

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by rajivsub at 26 May 2009 09:44 AM. Topic has 3 replies.