what difference with the properties, which attached to component instance and component definition? The property of component instance is general property, which can edit by "poterty edit", like as "Fixed". But the property of component definition is read only, like as "part_number", "alt_symbols". For these properties, how about the command "axlSelectByProperty" and "axlSelectByProperty" work?
Component definition properties are defined in the components device file and passed to the board through a netlist import. Each instance of any particular component/device has all of the common component definition properties of that particular component/device. Component definition properties cannot be modifieed through the Allegro property edit command. Component instance properties may also be passed forward from the netlist and may be defined in Allegro using property edit. The Skill function axlSelectByProperty can be used to select either component definition or component instance properties. For example I have a very simple database with exactly two unique component definitions. Each of these definitions has PART_NUMBER property. I have defined a property "SPECIAL" on one of the schematic instances and packaged this "SPECIAL" property forward to Allegro. I have defined a property "COMMENT" on one of the placed component instances in Allegro. axlSelectByProperty("compdef" "PART_NUMBER") returns the two compdef dbids. axlSelectByProperty("component" "SPECIAL") returns the one component dbid. axlSelectByProperty("component" "COMMENT") returns the other component dbid.
Ok, it's clear for the two kinds properties. In my last post, there is a little mistake. my means another property command is "axlDBGetProperties". I can get the compdef or compent by both two kinds proterty("axlSelectByProperty"). But I can't get the component definition proterty by "axlDBGetProperties". Do you have this issue?
axlDBGetProperties(sym ->component ->compdef)
haha, I have tried to get prpoerty for Symbol and Component by axlDBGetProperties, but ignored compdef. Ok, thank AshCan and Dave.
This is exactly what you should expect. axlDBGetProperties has the limitations you observe. See the HTML at $CDSROOT\doc\algroskill for the whole story.