• 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. Get device type and value of component

Stats

  • Replies 6
  • Subscribers 160
  • Views 16008
  • Members are here 0
More Content

Get device type and value of component

ELEKVN
ELEKVN over 16 years ago

Hi all,

I want to read device type and value oc components, But

I meet one problem with this code below:

*******************************************************************

mydesign1=axlDBGetDesign()
                        compfind = mydesign1->components
                                    foreach(ref compfind
                                            println(ref->name)    ;I can

                                          println(ref->symbol->name) ; I can
                                            println(ref->devtype) ; I canot
                                          println(ref->value) ; I canot
                                 
                                        );end_foreach

****************************************************************

( I can read reference and symtype of components, but I can not read device type and value of them )

Can you give me exactly command to solve this problem.

Thank you verry much

Elek

  • Sign in to reply
  • Cancel
  • oldmouldy
    oldmouldy over 16 years ago

    Looking at the Allegro SKILL reference, "deviceType" is the attribute that you need, rather than "devtype", "value" is not a component attribute. algroskill.pdf, page 87 / 88 for SPB 16.2

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ELEKVN
    ELEKVN over 16 years ago

     Tks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 16 years ago

    Hi

    All you need to do is the get into the compdefinition and get the value property

    ref->compdef->prop->VALUE

     Try typing ref->compdef->prop->?? to see a list of properties for that component definition.

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ELEKVN
    ELEKVN over 16 years ago

     Hi Ole,

    Thank you for your imformation.

    I can get Value from your advice, but I can't get Device type

    Example:

    Reference Designator: Q2
      Package Symbol:       SOT23

      Component Class:      IC
      Device Type:          FDV337N_SOT23_FDV337N             (I can't get)  
        Value:              FDV337N                                                 (I can get)

    I uesed comand :ref->compdef->prop->DEVTYPE  for get device type,

    Please help me correct it.

    Thank you

    Elek

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 16 years ago

    Hi Elek

    Thats because you need to use ref->compdef->deviceType

    try using ref->compdef->?? to se more about this

     

     

    Best regards

    Ole

    • 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