Home > Community > Forums > PCB SKILL > Align tool

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

 Align tool 

Last post Tue, Jan 24 2012 7:42 AM by alanf. 13 replies.
Started by Silver John 22 Jul 2011 01:29 PM. Topic has 13 replies and 7906 views
Page 1 of 1 (14 items)
Sort Posts:
  • Fri, Jul 22 2011 1:29 PM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Align tool Reply

    Present to you the tools to align objects on PCB.
    Welcom for comments, bugs, suggestions.
    Questions?
    Who wants to can join to development.

    Code in HG repository: https://bitbucket.org/Kapustin/align
    For download go to the download tab.

    Issues:
    How better implement onPickV() and doPickH()? Now, if put coordinate in consol, we can hit to some object...
    Icons not works in Allegro 15.x
    axlUIMenuRegister() not work in Allegro 15.x
    It is necessary to check the English expressions. Eg "Align by RIGHT boundary".
    Make a simple mechanism to install. The installer or hold everything in one il-file or ...

     And how it looks:
    Align tool UI

     

    Filed under: ,
    • Post Points: 65
  • Mon, Aug 1 2011 11:48 AM

    • ConnectPCB
    • Not Ranked
    • Joined on Wed, Jul 20 2011
    • Naperville, IL
    • Posts 4
    • Points 65
    Re: Align tool Reply

     I tried this, and it works great !    Only one thing, but not important.

    The  issue was on a couple of my parts I did not have a pin1, (I had pin A and K) it exited with error (Symbol "Cr54" has no pin 1.
    E- *Error* max: can't handle max(nil -1000000.0). So maybe have a pin name selection box ?   But of course when you are selecting a group of components they all won't be pin A / K ... it will be a mix of different pin numbers.    So this may not be possible.

    • Post Points: 20
  • Tue, Aug 9 2011 12:54 PM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Re: Align tool Reply

     Fixed.

    Added field for pin number/name (text field).

    If pin not found then you will got warning message, and object will be aligned/bound by body center.

    • Post Points: 5
  • Fri, Sep 2 2011 9:08 AM

    • Helen
    • Top 500 Contributor
    • Joined on Wed, Jul 23 2008
    • Posts 17
    • Points 165
    Re: Align tool Reply

    Currently we are using "out of the box" Allegro Align command available in Placement mode, works just fine.

    Long time ago we used my simple code with simple form but I did figured out UNDO.

    Basically you have to capture all "DOs" xy in a list to be able to "UNDO".

    See code attached

    Filed under: ,
    • Post Points: 20
  • Fri, Sep 2 2011 3:12 PM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Re: Align tool Reply

     Hi, Helen. Thanks for your concern.
    But in your script "undo" for only the last action, and only in the script. I implemented the "Oops", by using standart axlDBTransactionXXXX  functions.
    I was referring to a global, external mechanism UNDO. We recently discussed this problem (http://www.cadence.com/community/forums/T/19737.aspx), and the solution is not visible.

      PS Yes, I also used a standard command Align, some scripts other authors...  Then wrote my own script.

    • Post Points: 5
  • Mon, Sep 5 2011 6:54 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: Align tool Reply

     Hi

    axlUIMenuRegister() was new in 16.3 and will hence not work before that.

    Don't know if it was updated into 16.2 / 16.01 /16.0 ISR stream, but sure it was not added to 15.x

    Regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Mon, Sep 5 2011 3:18 PM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Re: Align tool Reply

    Yes, I was told. In the 15th version, menu does not work (error message) and no icons.

    By the way, on menu.
    axlUIMenuRegister() I don't like. It prints a useless message on the console:
    0 ==== ("move" nil (("&Align" "align"))).
    How suppress this message, or use another function for insertion new menu item?

    • Post Points: 20
  • Mon, Sep 5 2011 10:06 PM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: Align tool Reply

    Hi

    I'm seeing the same message and would like to know how to get rid of it.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Mon, Jan 23 2012 2:32 PM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Re: Align tool Reply

     Hi, All.

    Script was updated. Current revision 0.9.3.

    Due to recent revisions, to support the APE v15.x I had a few questions.
    I disabled the function axlGetFunckey for version less 16.3 and axlDBGridGet - less v15.7.
    1 axlDBGridGet a really appeared in version 15.7?
    2 What other functions are not lacking in v15.x (and which version they appeared)?

     Thanks.

    • Post Points: 5
  • Mon, Jan 23 2012 6:28 PM

    • alanf
    • Not Ranked
    • Joined on Wed, Nov 2 2011
    • Posts 8
    • Points 145
    Re: Align tool Reply

    I just downloaded it into Orcad Layout V16.5 and already like what I see.

    I have yet to discover all that it can do but will save me time in the future.

    Have you been able to right any script to allow users to rotate parts while in the move command?

    • Post Points: 20
  • Tue, Jan 24 2012 1:28 AM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Re: Align tool Reply

    Script works in Layout!? o_O

    For rotation (in APE) you can use standart command "rotate".

    Only add hotkey to env-file (for you convenience):

    funckey r rotate
    funckey R rotate

    • Post Points: 20
  • Tue, Jan 24 2012 1:37 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: Align tool Reply

    Hi

    You could also use the iangle command

     

    funckey r iangle 90 to rotate 90 degree each time you press r

    or if you need finer adjustments set the angle to something less or use uppercase R for another angle increment

    Best regards

    Ole

    Best regards Ole
    • Post Points: 35
  • Tue, Jan 24 2012 5:48 AM

    • Silver John
    • Top 150 Contributor
    • Joined on Sun, Apr 10 2011
    • -, Belarus
    • Posts 50
    • Points 965
    Re: Align tool Reply

    Enough offtopic, guys.

    Ole, you have some experience, maybe you answer my questions?

    Thanks.

    • Post Points: 5
  • Tue, Jan 24 2012 7:42 AM

    • alanf
    • Not Ranked
    • Joined on Wed, Nov 2 2011
    • Posts 8
    • Points 145
    RE: Align tool Reply
    Many thanks guys.  This makes life alot easier.
     
    The only outstanding problem I'm having these days is the comunications between Orcad Cpature and Layout. (V16.5)
     
    I would like to have better comunications between capture and layout. I'd like to be able to select a part in one and have it go to the location of the other so both footprint and schematic symbol are viewed (2 screens) at the same time.
     

    Alan Fisch
    APF Circuit Design
    Ottawa, Ontario
    • Post Points: 5
Page 1 of 1 (14 items)
Sort Posts:
Started by Silver John at 22 Jul 2011 01:29 PM. Topic has 13 replies.