• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Selecting Multiple dbids/symbols with unique properties

Stats

  • Replies 2
  • Subscribers 160
  • Views 799
  • Members are here 0
More Content

Selecting Multiple dbids/symbols with unique properties

vramanan
vramanan over 15 years ago

 Hi Guys

Here is the scenario

I have a list of symbols with thes 2 properties

prop1= "prop1value1"

prop2=" prop2value1"

now the 2nd symbol in this list might have the following values

 prop1= "prop1value1"

prop2=" prop2value2"

 

Now the question is How do I select all the symbols with prop1="prop1value1" and prop2="prop2value1"

 

I tried 2 different method without much success

I tried to use setof(x dblist (x->prop1=="prop1value1" && x->prop2=="prop2value1"))

and

tlist=axlSelectByProperty("symbol"  "prop1" "prop1value1") && axlSelectByProperty("symbol" "prop2" "prop2value1")

 

both fails to do what I want

 

Please help me how can I achieve this

 

I appreciate any help

 

regards

Venkata

 

 

 

  • Sign in to reply
  • Cancel
  • kerchunk
    kerchunk over 15 years ago

    One way would be to build up a temporary list of dbids that all have the first property value, then scan this list for dbids that have the second property value.

    got_1_prop_list = nil

    got_both_prop_list = nil

    foreach( obj  mylist

        foreach( prop_pair axlDBGetProperties( obj)

            prop_name =  car( prop_pair)

            prop_value =  cadr( prop_pair)

            if( prop_name == "prop1" && prop_value == "prop1value1" then

                got_1_prop_list = cons( obj got_1_prop_list)

            );end-if

        );end-foreach

    );end-foreach

    foreach( obj got_1_prop_list

        foreach( prop_pair axlDBGetProperties( obj)

            prop_name =  car( prop_pair)

            prop_value =  cadr( prop_pair)

            if( prop_name == "prop2" && prop_value == "prop2value2" then

                got_both_prop_list = cons( obj got_both_prop_list)

            );end-if

        );end-foreach

    );end-foreach

     

     

     

    HTH,

    Chris Walters

    local Cadence guru

    ()

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vramanan
    vramanan over 15 years ago

     Hi I found a way

     Here is what I did

    list = axlSelectByProperty("symbol" "prop1" "prop1value1")

    list=setof(x list x->prop->prop2 == "prop2value1")

    regards

    Venkata

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information