• 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. Refdes details report by symbol.

Stats

  • Replies 4
  • Subscribers 159
  • Views 13933
  • Members are here 0
More Content

Refdes details report by symbol.

vimaldevlpr
vimaldevlpr over 5 years ago

Hi,

Iam trying to get refdes detail report by using symbols but it not working i'll attach my sample code below any one please recorrect the code please.

defun( ref_rep ()
p_refdes=outfile("./SORT.txt") 
  axlClearSelSet()  
  axlSetFindFilter(?enabled '(noall SYMBOLS) ?onButtons '(SYMBOLS))
  l_vis=axlVisibleGet() 
  axlVisibleDesign(nil) 
  axlVisibleLayer("REF DES/SILKSCREEN_TOP" t )
  axlUIWUpdate(nil)
  l_text=axlGetSelSet(axlSelect( )) 
  axlClearSelSet()
  foreach( text l_text->refdes
    refdes=text
    t_loc=text->xy
    t_rot=text->rotation
    t_mirror=text->isMirrored
    t_layer=text->layer
    t_textblock=text->textBlock
    t_justify = text->justify
    
    println(list(refdes t_loc t_layer t_rot t_mirror t_textblock t_justify) p_refdes)
  );end foreach refdes
  close(p_refdes) 
  axlVisibleSet(l_vis)
  axlUIWUpdate(nil)
  printf("done.\n")
  )

Thanks,

Vimal

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 5 years ago

    Much simpler:

    foreach(sym, axlDBGetDesign() ->symbols
      foreach(txtObj, setof(obj, sym ->children, obj ->objType == "text" && index(obj ->layer, "REF DES/SILKSCREEN_"))
       println(list(txtObj ->text, txtObj ->xy, txtObj ->layer, txtObj ->rotation, txtObj ->isMirrored, txtObj ->textBlock, txtObj ->justify))
      )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 5 years ago in reply to eDave

    Hi Dave

    Kindly thanks for your reply. This generate all the refdes but need only by picking window refdes using axlGetSelSet(axlSelect( ))  can you please guide me.

    Thanks 

    vimal

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 5 years ago in reply to vimaldevlpr

    foreach( text l_text
    refdes=text ->refdes

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 5 years ago in reply to eDave

    Thanks for your kindly support dave..

    • 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