Printing schematic to PDF from terminal prints board

Printing schematic to PDF from terminal prints board

Anonymous
Not applicable
2,187 Views
8 Replies
Message 1 of 9

Printing schematic to PDF from terminal prints board

Anonymous
Not applicable

Hi,

 

I am trying to 100% script my project to get my CI to generate PDFs and Gerbers automatically. However, printing the schematic to PDF from the terminal results in the board being printed out. This only happens when the .brd file is present, as renaming it to something else makes the issue to go away.

 

Here is the full command:

 

eagle -C "print file project.sch.pdf paper A4 sheets ALL landscape; quit;" project.sch

 

When project.brd is present, the board gets printed out, while the schematic gets printed (expected output) when the board is missing, i.e. EAGLE can't auto-load it.

I even attempted to add -N to the CLI without success (to tell it "NO" to the "Load associated board" prompt), and also add a "set confirm no" to the inline command (for the same purpose to -N) with no success.

 

Is there a workaround other than moving files around to break EAGLE's auto-load feature?

 

Thanks!

0 Likes
Accepted solutions (1)
2,188 Views
8 Replies
Replies (8)
Message 2 of 9

rachaelATWH4
Mentor
Mentor
Accepted solution

Try adding EDIT .sch at the beginning of your command line string. This will switch it back to the schematic again and hopefully it'll issue the remaining commands there.

 

If not, then change project.sch to project.brd and then it'll auto load the schematic and switch to that before running the command line string.

 

If neither of those options work post up and I will see if I can think of anything else to try.

 

Best Regards,

 

Rachael

Message 3 of 9

Anonymous
Not applicable

Thanks! I may had found this trick by RTFM'ing more 😛

Message 4 of 9

rachaelATWH4
Mentor
Mentor

I want to add, I think this is an issue which has appeared in one of the v8 versions. In earlier versions of EAGLE, v7.7 for example, when the matching drawing was loaded it would load it up in the background and not switch to it automatically. This change to make it switch to the auto loaded drawing is a regression IMHO and often a real nuisance as you are finding here.

 

Best Regards,

 

Rachael

0 Likes
Message 5 of 9

Anonymous
Not applicable

We are trying to automate PDF creations with Eagle and have run into the following issue:

 

"C:\EAGLE 9.5.1\eagle.exe" -C "print file 'C:\Users\EAGLE\projects\test.pdf' paper Letter sheets ALL landscape; quit;" "C:\Users\EAGLE\projects\test.sch"

 

  • When running from the command line it works correctly as expected.
  • When creating a scheduled task and ran the same command as "Run only when user is logged on" it works correctly as expected.
  • When creating a scheduled task and ran the same command as "Run whether user is is logged on or not" it DOES NOT work
    • eagle.exe is launched and I can see it in the task manager but the program is not on the task bar
    • I need to kill the process in order to close eagle as nothing happens

Any thoughts on how to solve this problem? We need to run the scheduled task on a server to automatically generate PDFs from the schematics once they are uploaded in the server.

 

Thank you

 

 

0 Likes
Message 6 of 9

jorge_garcia
Autodesk
Autodesk
Hello @Anonymous,

I hope you're doing well. A user needs to be logged in for files to be generated. You need to run EAGLE at least once an login with your autodesk account to have it work.

If you do that will the scheduled task work?

Let me know if there's anything else I can do for you.

Best Regards,


Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
0 Likes
Message 7 of 9

Anonymous
Not applicable
Hello,
Yes I do log in initially using my Autodesk account.
The scheduled task still doesn't run.

Also, once I login once, will it require log back in 14 days? Is there a way to pass the log in information through the command line? Otherwise, automating processes becomes impossible.

Thank you


0 Likes
Message 8 of 9

andrii.anpilogov
Alumni
Alumni

Hi @Anonymous 

Also, once I login once, will it require log back in 14 days? Is there a way to pass the log in information through the command line? Otherwise, automating processes becomes impossible.

Command line operations don't require license being updated until you don't move components around and run into board size and layers limitation.

EAGLE just requires license information available. It doesn't have to be up to date.

 

So CI should be possible. If it's not then it's a bug and I believe should be fixed.

 

Regards

Message 9 of 9

rachaelATWH4
Mentor
Mentor

@Anonymous wrote:

Yes I do log in initially using my Autodesk account.

 

Just a thought, and I may be barking up the wrong tree here but, is the CI process running under the same user account you were logged into when you logged into EAGLE or a different service account you've set up specifically for CI? As far as I am aware the login tokens are user account specific so you'd need to be logged into whatever account runs the CI process to store the token correctly in that account.

 

Best Regards,

 

Rachael

0 Likes