Home > Community > Forums > PCB SKILL > Skill code to move component

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

 Skill code to move component 

Last post Fri, Jun 29 2012 10:24 AM by Mstrghettorigg. 34 replies.
Started by archive 29 Mar 2006 03:07 AM. Topic has 34 replies and 14629 views
Page 3 of 3 (35 items) < Previous 1 2 3
Sort Posts:
  • Thu, May 10 2012 2:36 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 738
    • Points 15,940
    Re: RE: Skill code to move component Reply
    Yep, sorry about that - see the correction above!
    Dave Elder, Tait Communications
    • Post Points: 5
  • Thu, May 10 2012 2:41 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 738
    • Points 15,940
    Re: RE: Skill code to move component Reply

    See the attached code.

    There are now two commands for running it: moveByRefdes and moveByRefdes_OneShot

    The first option will loop until you right click done (or cancel)

    Dave 

     

    Dave Elder, Tait Communications
    • Post Points: 35
  • Thu, May 10 2012 3:12 PM

    • Quarkdog1
    • Top 500 Contributor
    • Joined on Thu, Nov 3 2011
    • Posts 17
    • Points 220
    Re: RE: Skill code to move component Reply

    I really like the modification to the first option. Its a more typical scenario when I place parts :)

    (note  I map 'R' key to standard move so I tweak your code to thus the slower response ).  Your changes are greatly appreciated.  Thanks.

    • Post Points: 5
  • Thu, May 10 2012 11:06 PM

    • Pawandeep
    • Top 75 Contributor
    • Joined on Sat, Oct 15 2011
    • Singapore, 00-SG
    • Posts 106
    • Points 1,690
    RE: RE: Skill code to move component Reply
    Hi Dave,

    Somehow I did not get the menu on RMB. When I modified your code slightly as below then only got this working. I am using 16.5 version.

                                                    axlUIPopupDefine(nil

                                                    list(

                                                                    (list "Done" 'axlFinishEnterFun)

                                                                    (list "Cancel" 'axlCancelEnterFun)

                                                                    (list "MENU_SEPARATOR" 'nil)

                                                                    (list "Mirror" 'moveByRefdes_mirror)

                                                                    (list "Rotate" 'moveByRefdes_rotate)

                                                    ))

     
    Regards,

    Pawan
    • Post Points: 5
  • Fri, Jun 29 2012 10:24 AM

    Re: RE: Skill code to move component Reply
    Hello Dave, Is it possible to get a code that once you place the first part you can enter a second refdes and that keeps repeating and once I'm done placing all the part use the right click done to stop it? Thanks again!
    • Post Points: 5
Page 3 of 3 (35 items) < Previous 1 2 3
Sort Posts:
Started by archive at 29 Mar 2006 03:07 AM. Topic has 34 replies.