Home > Community > Forums > PCB SKILL > Put CurrentDesign Name in a variable

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

 Put CurrentDesign Name in a variable 

Last post Fri, Jan 25 2013 5:22 AM by fxffxf. 1 replies.
Started by Yann00 25 Jan 2013 02:58 AM. Topic has 1 replies and 639 views
Page 1 of 1 (2 items)
Sort Posts:
  • Fri, Jan 25 2013 2:58 AM

    • Yann00
    • Top 200 Contributor
    • Joined on Tue, Dec 4 2012
    • Posts 42
    • Points 585
    Put CurrentDesign Name in a variable Reply

    Hi Guys,

    I wanna put the current design name in a variable, then open another design, and after re-open the first design just with my variable.

    I tried:

    (procedure CurrentDesign()
    p = axlCurrentDesign()
    axlOpenDesignForBatch("essai.dra" "wf")
    axlSaveDesign()
      n = strcat(p ".brd")
      axlOpenDesignForBatch("n" "wf")
    )

    But my variable seems to be re-evaluated by the second design. I wanna just open my first design with my p (i.e: The name of my first design).

    Best regards

    • Post Points: 20
  • Fri, Jan 25 2013 5:22 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 291
    • Points 4,640
    Re: Put CurrentDesign Name in a variable Reply

    Try axlOpenDesignForBatch( n "wf")

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by Yann00 at 25 Jan 2013 02:58 AM. Topic has 1 replies.