Display full version of the post: Script For Printing

DennisK2579
20.05.2016, 15:42
I know how to create a script for DWG to PDF. With our drawings sometimes they are done in layout and sometimes in model. Is there a script that could be written if you don't know which one but it will print once it checks which one?Thanks,dk

John Connor
20.05.2016, 16:07
Off the top of my head I can't think of a normal command that would check if a layout exists.  Sounds like a task better suited to a custom lisp routine.  You might try asking over at The Swamp or CADTutor.

John Connor2016-05-20 16:12:09

DennisK2579
20.05.2016, 16:12

Not sure trying to figure out how to do this.What we have is a directory full of drawings some are model some are layout.Right now I can open and run a script depending which space the drawing is.What we are looking for is having a script take that directory and open each drawing and depending what space it is creates the pdf for us. Instead of opening each drawing and having two scripts.

John Connor
20.05.2016, 16:25
And what if the drawing was last saved in the "wrong" space?

DennisK2579
20.05.2016, 16:27

The directory we look in is final drawings.

John Connor
20.05.2016, 18:11
So what?  Someone could still open, edit and then save a drawing in model space when it should have been saved in a paper space layout or vice-versa. You don't have any real control over how a drawing is saved although you may think you do.
John Connor2016-05-20 18:14:11