Home > Community > Forums > PCB Design > easy way to replace via in board file

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 easy way to replace via in board file 

Last post Tue, Apr 11 2006 2:43 PM by archive. 9 replies.
Started by archive 11 Apr 2006 02:43 PM. Topic has 9 replies and 1475 views
Page 1 of 1 (10 items)
Sort Posts:
  • Tue, Apr 11 2006 2:43 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    easy way to replace via in board file Reply

    Hello,

    Any easy way to replace a via in a design without the use of skill.
    Thanks,

    Mihai


    Originally posted in cdnusers.org by mihaii
    • Post Points: 0
  • Tue, Apr 11 2006 3:16 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    Tools->Padstack->Replace, then put in the old and new padstack names.  Can do for the entire board or just a single via.  You can also record these steps in a script and assign it a keyboard shortcut.

    G'Day,


    Originally posted in cdnusers.org by Randy R.
    • Post Points: 0
  • Tue, Apr 11 2006 3:49 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    I tried the first suggestion and it worked.
    I have created a .scr per your suggestion, but when I run it the script replaces all the vias with the desired padstack.


    Originally posted in cdnusers.org by mihaii
    • Post Points: 0
  • Tue, Apr 11 2006 3:54 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    On the script be sure to check "Macro record mode".

    When recording the script: after inputing the padstack names and before clicking on "Replace", check the box "Single via replace mode".


    Originally posted in cdnusers.org by Randy R.
    • Post Points: 0
  • Tue, Apr 11 2006 4:03 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    when I try to do that the Single via replace mode is grayed out.


    Originally posted in cdnusers.org by mihaii
    • Post Points: 0
  • Tue, Apr 11 2006 4:23 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    That's different from the version of 15.5 I'm running.  As soon as I enter the "Old" padstack name, that box isn't greyed out any more.  That's why I said to select that box after entering your padstack names.


    Originally posted in cdnusers.org by Randy R.
    • Post Points: 0
  • Tue, Apr 11 2006 4:38 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    When I try to replace the padstack by clicking on via to grab the old pastack info the sigle via replace mode is not greyed out, but when I try to manually entering the old and new padstacks the single padstack replace is greyed out.
    The reason why I manually need to manually enter the padstacks is for the script to record padstacks instead of my x/y coordinates.
    Can you by any chance send me this script and I can try and see if it works.
    You can use any two padstacks and I will replace yours with mine.
    Thanks,

    Mihai


    Originally posted in cdnusers.org by mihaii
    • Post Points: 0
  • Tue, Apr 11 2006 5:22 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    The reason the box stayed greyed out is because you didn't pick the old padstack in the board file instead of using the list.  Try the following script.  Replace "my_new_padstack" with your new padstack (note that the padstack name must be in quotes).  When you run the script, the command window will say "Pick origin for macro".  At this point you pick the center of the via you want to replace (your grid must be fine enough to accurately pick this via).  The via will be replaced with the padstack name in the script file ("my_new_padstack" in my example).  If you're doing multiple replacements, you may want to turn off On-Line DRC, then turn it back on when you're done.

    # Allegro script
    # start time: Tue Apr 11 17:09:25 2006
    # Version: 15.5 s047 (v15-5-81BV) i86
    version 15.5

    setwindow pcb
    trapsize 155
    # Macro file: coordinates are relative to pick on replay.
    replace padstack
    pick_origin
    pick rel grid 0.00 0.00
    setwindow form.mini
    FORM mini newname_browse 
    fillin "my_new_padstack"
    FORM mini viamode YES
    FORM mini replace 
    setwindow pcb
    done

    # stop time: Tue Apr 11 17:09:55 2006


    Originally posted in cdnusers.org by Randy R.
    • Post Points: 0
  • Wed, Apr 12 2006 9:05 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    Randy,

    It worked.
    Thank you so much.

    Mihai


    Originally posted in cdnusers.org by mihaii
    • Post Points: 0
  • Thu, Apr 20 2006 1:35 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: easy way to replace via in board file Reply

    I think you can also use the group edit to replace the via in area.


    Originally posted in cdnusers.org by Alex1202
    • Post Points: 0
Page 1 of 1 (10 items)
Sort Posts:
Started by archive at 11 Apr 2006 02:43 PM. Topic has 9 replies.