Home > Community > Forums > PCB SKILL > Work on the Components' property

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: *

 Work on the Components' property 

Last post Wed, Feb 22 2006 6:35 AM by archive. 5 replies.
Started by archive 22 Feb 2006 06:35 AM. Topic has 5 replies and 2032 views
Page 1 of 1 (6 items)
Sort Posts:
  • Wed, Feb 22 2006 6:35 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Work on the Components' property Reply

    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?


    Originally posted in cdnusers.org by leonlee
    • Post Points: 0
  • Wed, Feb 22 2006 7:36 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Work on the Components' property Reply

    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.


    Originally posted in cdnusers.org by AshCan
    • Post Points: 0
  • Wed, Feb 22 2006 5:56 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Work on the Components' property Reply

    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?


    Originally posted in cdnusers.org by leonlee
    • Post Points: 0
  • Wed, Feb 22 2006 6:04 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Work on the Components' property Reply

    axlDBGetProperties(sym ->component ->compdef)


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Wed, Feb 22 2006 6:17 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Work on the Components' property Reply

    haha, I have tried to get prpoerty for Symbol and Component by axlDBGetProperties, but ignored compdef.
    Ok, thank AshCan and Dave.


    Originally posted in cdnusers.org by leonlee
    • Post Points: 0
  • Wed, Feb 22 2006 9:21 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Work on the Components' property Reply

    This is exactly what you should expect. axlDBGetProperties has the limitations you observe. See the HTML at $CDSROOT\doc\algroskill for the whole story.


    Originally posted in cdnusers.org by AshCan
    • Post Points: 0
Page 1 of 1 (6 items)
Sort Posts:
Started by archive at 22 Feb 2006 06:35 AM. Topic has 5 replies.