Home > Community > Forums > PCB Design > long commands from script

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

 long commands from script 

Last post Wed, Sep 4 2013 9:24 AM by oldmouldy. 1 replies.
Started by steveso 29 Aug 2013 10:38 PM. Topic has 1 replies and 345 views
Page 1 of 1 (2 items)
Sort Posts:
  • Thu, Aug 29 2013 10:38 PM

    • steveso
    • Not Ranked
    • Joined on Fri, May 10 2013
    • Posts 1
    • Points 20
    long commands from script Reply

     I need to put in long commands generated by another program. 

     If the command is too long, allegro doesn't seem to process it correctly (it is on 2 lines).  If I shorten the command, it works.

    For example:

    Command > shape add; pick grid -53.3 -378.6; pick grid -50.3 -386.8; pick grid -44.0 -392.5; pick grid -36.1 -394.2; pick grid -28.7 -391.3; pick grid -23.8 -384.7; pick grid -22.7 -376.2;
    E- Command not found: 22.7 -376.2
    Command > shape add; pick grid -53.3 -378.6; pick grid -50.3 -386.8; pick grid -44.0 -392.5; pick grid -36.1 -394.2; pick grid -28.7 -391.3; pick grid -23.8 -384.7
    Enter shape outline.
    last pick:  -53.30  -378.60
    last pick:  -50.30  -386.80
    last pick:  -44.00  -392.50
    last pick:  -36.10  -394.20
    last pick:  -28.70  -391.30
    last pick:  -23.80  -384.70

    How do I make allegro recognize the lines belong together?  If I put them on new lines in the script, it doesn't seem to work. If I put them in manually one by one it seems to work.

    • Post Points: 20
  • Wed, Sep 4 2013 9:24 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,408
    • Points 24,030
    Re: long commands from script Reply

    Use File>Script, give the script a name and record your actions, you will then have a multi-line script of the correct steps. In the script, the format will be "something like":

    shape add

    pick grid -53.3 -378.6

    pick grid -50.3 -386.8

    pick grid -44.0 -392.5

    pick grid -36.1 -394.2

    pick grid -28.7 -391.3

    pick grid -23.8 -384.7

    pick grid -22.7 -376.2

    prepopup <some co-ordinates>

    done

    You can have as may "picks" as required to define the shape without any command line limits.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by steveso at 29 Aug 2013 10:38 PM. Topic has 1 replies.