Home > Community > Forums > PCB Design > function key

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: *

 function key 

Last post Sun, Aug 25 2013 1:25 PM by ScottCad. 3 replies.
Started by D912349 24 Aug 2013 07:35 PM. Topic has 3 replies and 415 views
Page 1 of 1 (4 items)
Sort Posts:
  • Sat, Aug 24 2013 7:35 PM

    • D912349
    • Top 150 Contributor
    • Joined on Sat, Nov 24 2012
    • Posts 47
    • Points 800
    function key Reply

     Hi,

    Is there a way to combine following commands in a single key using maybe alias or funckey?

    commands to combine:

    shape add,  right click, assign net..

     

    Regards,

     

    • Post Points: 20
  • Sat, Aug 24 2013 11:35 PM

    • ScottCad
    • Top 50 Contributor
    • Joined on Fri, May 25 2012
    • Roswell, GA
    • Posts 176
    • Points 2,775
    Re: function key Reply

    Hello, Yes there is.

    Here is a small macro to do what you need to do.

    funckey s "shape add; setwindow form.mini;FORM mini dyns_netname_list" 

    I assigned it to the s key on my keyboard :)

    when you add the macro to your env file and hit the assigned key in Allegro it will pop up a dialog box so you can select the net for your shape. Keep in mind function keys in allegro are case sensitive. Works pretty good.

    Thanks Scott.

    • Post Points: 20
  • Sun, Aug 25 2013 12:43 AM

    • D912349
    • Top 150 Contributor
    • Joined on Sat, Nov 24 2012
    • Posts 47
    • Points 800
    Re: function key Reply

     Hi Scott,

     I tried it and it works fine. but then, is their a way to not select a net on a list?. what I want is to select a pin/rat/shape or any valid object and it will get the net assigned to that object then assign it to the shape that will be create.

     

    Regards,

    • Post Points: 20
  • Sun, Aug 25 2013 1:25 PM

    • ScottCad
    • Top 50 Contributor
    • Joined on Fri, May 25 2012
    • Roswell, GA
    • Posts 176
    • Points 2,775
    Re: function key Reply

    Yep you can do it that way too. That's kind of similar to the default action.

    Try this instead.

    funckey S "shape add; pop net list"

    run the hotkey, click  your object that has a net and draw the shape you need.

    Thanks Scott

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by D912349 at 24 Aug 2013 07:35 PM. Topic has 3 replies.