• 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. shape assign net

Stats

  • State Verified Answer
  • Replies 6
  • Subscribers 160
  • Views 3355
  • Members are here 0
More Content

shape assign net

masamasa
masamasa 9 months ago

hello:

 

i have a funckey for via assign net as shown below.

 

funckey V "via assign net"

 

this works fine but when i similarly create another funckey for shape assign net as shown below, it gives me an error.

 
funckey B "shape assing net"

 

 

is there a way to create a funckey for shape assign net?

 

regards

masa

  • Sign in to reply
  • Cancel
  • DavidJHutchins
    0 DavidJHutchins 9 months ago

    The following worked for me:

    funckey B 'pop net list'

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • masamasa
    0 masamasa 9 months ago in reply to DavidJHutchins

    thank u, david for the reply.

     

     unfortunately it does not work, so wierd.

     

    regards

    masa

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • excellon1
    0 excellon1 9 months ago in reply to masamasa

    Hi Masa,

    Here is a variation of a method to assign a net to your shape. You can change the function key to one that works for you. Note the function key you use is case sensitive. I use the letter s in this example.

    funckey s "shape add;echo "CHOOSE A NET FOR YOUR SHAPE - Click Shape to asign net";setwindow form.mini;FORM mini dyns_netname_list" 

    Best Regards.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • masamasa
    0 masamasa 9 months ago in reply to excellon1

    thank u for the response, excellon1.

     

    this funckey works to create a new shape.

     

    this funckey does not work for existing shapes.

     

    i would like to re-assign a different net for the exisitng shapes.

     

    i definitely can use this funckey for a new shape, though.

     

    regards

    masa 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • excellon1
    +1 excellon1 9 months ago in reply to masamasa

    Hi Masa, yes indeed you are correct. That particular hotkey is actually the wrong one I meant to send you but it is still useful. Slight smile

    So to assign a net to an existing shape try the following. To do this we will use a script and also the hot key of your choice. The script part invokes the dialog so you can choose a net.

    Copy this text to a text editor and save the file as Shape_Net.scr

    #Macro to assign net to shape
    setwindow form.mini
    FORM mini netname_list  
    fillin
    setwindow pcb

    Place the macro in your macro folder. I use here simply c:\cadence. To add a script path in allegro go to User Preferences > Paths > Config > ScriptPath.

    Place the hotkey in your env file. You can change the hotkey to suit what works good for you. I'm using S. Keep in mind hot keys are case sensitive.

    funckey S "shape assign net ; replay Shape_Net"

    After you update your env file restart allegro so it loads the new env settings.

    To try this out, Select your shape and click the hot key.

    I think this could probably be done better with a skill routine so as to provide prompts etc, but hey in a pinch this works too.

    All the best.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • 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