• 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. PCB Design
  3. Shape Snap to grid when shape is off grid, How to ?

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 166
  • Views 18022
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Shape Snap to grid when shape is off grid, How to ?

excellon1
excellon1 over 7 years ago

Hi guys.

In the picture below I have a shape. The shape was drawn on a 100 mil grid. I changed the grid to 50 mils. What I am trying to do is select the shape and then pick the bottom right hand corner of the shape and simply slide it over to the tip of the arrow you see in the picture. When I try to do this the shape is still snapping to the prior 100 mil grid. It is not snapping to the new 50 mil grid.

I can do a move based on Shape center snapping but I don't want to do that because sometimes the shape geometry is not a simple square or rectangle. I just want to move it to the next grid point based on my current grid setting.

Any clues would be helpful. I'm running 16.6 & 17x latest cuts of SW. Seems like the krux is that the shape is remembering that it was created on a 100mil grid and doesn't realize that the grid has changed.

Thanks....... Paul.

  • Cancel
  • B Bruekers
    B Bruekers over 7 years ago

    For me this works fine:

    Goto move mode

    set find filter to shapes

    Hover over the corner of the shape which you want to move.

    RMB->snap pick to-> segment vertex

    Now the shape corner is attachted to the cursor and you can place it on any grid you want.

    I've placed the 'snap pick to vertex' in my ENV file so I can do this with a single keystroke:

    funckey v "prepopup;pop dyn_option_select 'Snap pick to@:@Segment Vertex'"

    Bram

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • redwire
    redwire over 7 years ago

    Allegro does *not* have any "memory" of/for shapes.  However, there are two key grid systems in Allegro: etch and non-etch.  Within etch, each layer can have its own grid.  I suspect you might have changed grid for either the wrong type or the wrong layer.  The technique supplied by Bram is probably the easiest for moving a shape by its vertex to a new grid point.  If the shape is sized oddly you might find you'll be chasing the grid around if it's too coarse.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • excellon1
    excellon1 over 7 years ago in reply to redwire

    Hi Red & Bram, Bram's suggestion works good and the macro helps too. In testing things at this end I noticed something odd in 16.6. If I do exactly as Bram says, a shape that has some of the shape off grid can be snapped back to the grid and it works good. Now to an oddity.

    If I have the find filter for shapes checked and then hover over a segment of the shape so it's bound is highlighted then do a RMB Move followed by a RMB snap pick to segment vertex I am unable to get the shape to snap to the new grid point. My thinking was that doing this would achieve what I was after. Kind of makes sense to me. Like the object is highlighted and I want to move and also snap to a vertex.

    I normally use RMB move as it is less mouse travel. It seems that the Move menu item and the right click RMB move are not working the same. Maybe this is by design ?. Was thinking RMB Move
    and menu item Move should work the same for this operation.

    Red on my grid I have a macro that changes them but it keeps everything the same for layers, Etch, Non etch etc. All is working now but i'm curious about the RMB Move option..

    Thanks

    Paul.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • B Bruekers
    B Bruekers over 7 years ago in reply to excellon1

    When you do a RMB->move (with the mouse above an element) then it just snaps at the current cursor position. So re-snapping it to eg. a vertex is not possible in this way.

    Try this to understand the selection / command function order:

    -Idle command,

    -find filter to shapes,

    -click on a shape so it is selected.

    Then use the 'move' command (not from RMB).  You will notice that the shape is attachted to your cursor at the point where you've selected the shape.

    This is somewhat the same as you would RMB click on a shape, the cursor position at the RMB action is then your selection point.

    Now the other way, if you don't select anything and start a 'move' command nothing is selected or attached to the cursor. If you now snap to an element it shall be attached to your cursor at the snapped location.

    • Cancel
    • Vote Up +2 Vote Down
    • Cancel
  • excellon1
    excellon1 over 7 years ago in reply to B Bruekers

    Bram, that's a good explanation. Works well

    Thanks

    Paul. 

    • Cancel
    • Vote Up 0 Vote Down
    • 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