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.
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.
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:
Got it to work with your solutions.