• 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. Help with lists

Stats

  • Replies 3
  • Subscribers 160
  • Views 12419
  • Members are here 0
More Content

Help with lists

bulldog
bulldog over 14 years ago

Greetings all;

I'm trying to write a program to globally unmirror vias.  The code is below and I am having trouble making it work correctly.  I am trying to create a new list of just vias, without the testpoint vias, and delete it after all other vias have been unmirrored.  I'm hoping someone can help with this.  Thanks!

procedure( _unm_vias()

let(list(l_vias, via via_count rm_ncvia_count rm_1cvia_count l_nc_vias repfile l_New_Vialist)

l_nc_vias=list()

l_New_Vialist=list()

via_count=0

m_via_count=0

axlClearSelSet()

axlSetFindFilter(?enabled '(noall vias invisible) ?onButtons '(vias))

axlAddSelectAll() ;select all of the vias in the design

l_vias=axlGetSelSet() ;put the vias in a list

via_count=axlGetSelSetCount()

printf("%d vias found in the design.\n" via_count)

axlClearSelSet()

foreach(via l_vias

unless(via->testPoint

gotViaName = via -> name

gotViaLoc = via -> xy

gotViaNet = via -> net -> name

gotViaRot = via -> rotation

append1(l_New_Vialist via)

if(axlDBCreateVia(gotViaName, gotViaLoc, gotViaNet, nil, 0, nil) then

m_via_count++

);endif

);end unless

);end foreach

axlDeleteObject(l_New_Vialist)

printf("%d vias replaced/unmirrored.\n" m_via_count)

);end let

);end proc

axlCmdRegister("umv" '_unm_vias)

  • Sign in to reply
  • Cancel
Parents
  • fxffxf
    fxffxf over 14 years ago

     If you are changing a considerable number of vias then you will want to wrap the entire operation in a axlDBCloak call. See its doc for more info.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • fxffxf
    fxffxf over 14 years ago

     If you are changing a considerable number of vias then you will want to wrap the entire operation in a axlDBCloak call. See its doc for more info.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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