CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 9778
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedScript For Printing

 Post Reply Post Reply
Author
DennisK2579 View Drop Down
Newbie
Newbie


Joined: 20.May.2016
Location: Canada
Using: AutoCAD / Inventor 2016
Status: Offline
Points: 4
Direct Link To This Post Topic: Script For Printing
    Posted: 20.May.2016 at 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
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 20.May.2016 at 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.


Edited by John Connor - 20.May.2016 at 16:12
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
DennisK2579 View Drop Down
Newbie
Newbie


Joined: 20.May.2016
Location: Canada
Using: AutoCAD / Inventor 2016
Status: Offline
Points: 4
Direct Link To This Post Posted: 20.May.2016 at 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.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 20.May.2016 at 16:25
And what if the drawing was last saved in the "wrong" space?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
DennisK2579 View Drop Down
Newbie
Newbie


Joined: 20.May.2016
Location: Canada
Using: AutoCAD / Inventor 2016
Status: Offline
Points: 4
Direct Link To This Post Posted: 20.May.2016 at 16:27
The directory we look in is final drawings.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 20.May.2016 at 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.


Edited by John Connor - 20.May.2016 at 18:14
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,352 seconds.