• 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. How to extract the pin's layer information from DBID?

Stats

  • Replies 2
  • Subscribers 161
  • Views 2822
  • Members are here 0
More Content

How to extract the pin's layer information from DBID?

ichliebedich
ichliebedich over 4 years ago

Hi all,

How can I extract the pin's layer information?

in case of vias, shapes, their have "layer" data so we can extract the layer information easily.

however, there was no any data for pin.

I wrote code for instance below:

axlClearSelSet()

axlSetFindFilter(?enabled `("NOALL" "VIAS") ?onButtons `("NOALL" "VIAS"))

axlAddSelectAll()

vias_dbid = axlGetSelSet()

axlClearSelSet()

; check number of elements which connected with via

(foreach each_via_dbid vias_dbid

  elm_dbid = axlDBGetConnect(each_via_dbid t)

  println(elm_dbid)

; check the types of elements

  (foreach each_elm_dbid elm_dbid

  println(each_elm_dbid->objType)

  );2nd foreach cloese

);1st foreach close

then, the result was,

there were 3 "path" and 1 "pin" as you can see,

I can extract the path layer using ' each_elm_dbid->layer ' in my function for 'path' type

but I can't extract the pin's layer using that function.

How can I get the layer information of pins?

regards,

  • Sign in to reply
  • Cancel
  • luanvn81
    luanvn81 over 4 years ago

    Hi!

     you can try this:

     if(each_elm_dbid->objType == "pin" then

         println(each_elm_dbid->startEnd)

    );end if

     

    Luan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ichliebedich
    ichliebedich over 4 years ago in reply to luanvn81

    I really appreciate! it's that I want 

    • 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