Home > Community > Forums > PCB SKILL > Zoom to selection set

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

 Zoom to selection set 

Last post Mon, Nov 4 2013 3:13 PM by Randy R. 4 replies.
Started by WalterX 01 Nov 2013 09:49 AM. Topic has 4 replies and 2718 views
Page 1 of 1 (5 items)
Sort Posts:
  • Fri, Nov 1 2013 9:49 AM

    • WalterX
    • Not Ranked
    • Joined on Thu, Oct 31 2013
    • Posts 5
    • Points 200
    Zoom to selection set Reply

     Using skill, is there a way to zoom to the selection set?

    Filed under:
    • Post Points: 20
  • Fri, Nov 1 2013 10:19 AM

    • Randy R
    • Top 50 Contributor
    • Joined on Wed, Jul 16 2008
    • Dupont, WA
    • Posts 193
    • Points 3,060
    Re: Zoom to selection set Reply

    Check out the axlZoomToDbid() command and see if that will work for you.

    Good Day, R².
    • Post Points: 35
  • Fri, Nov 1 2013 10:21 AM

    • WalterX
    • Not Ranked
    • Joined on Thu, Oct 31 2013
    • Posts 5
    • Points 200
    Re: Zoom to selection set Reply

     Oh - it does a list too :) - Will give it a shot.

    • Post Points: 5
  • Fri, Nov 1 2013 10:28 AM

    • WalterX
    • Not Ranked
    • Joined on Thu, Oct 31 2013
    • Posts 5
    • Points 200
    Re: Zoom to selection set Reply

     Indeed it works - however it's not a very tight zoom.  Is there a notion of "zoom percentage" in Allegro?

    Side note:  AutoCAD uses a large public variable list which controls behavior of certain actions - does Allegro have a similar thing?

    • Post Points: 20
  • Mon, Nov 4 2013 3:13 PM

    • Randy R
    • Top 50 Contributor
    • Joined on Wed, Jul 16 2008
    • Dupont, WA
    • Posts 193
    • Points 3,060
    Re: Zoom to selection set Reply

    axlZoomToDbid() puts the selected objects extents in about 20% of the display.  You can use axlWindowBoxGet(), update the values to your desired zoom factor and then use axlWindowBoxSet().

    Good Day, R².
    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by WalterX at 01 Nov 2013 09:49 AM. Topic has 4 replies.