necris77 Posted July 6, 2009 Posted July 6, 2009 Hello I'm from Romania so please pardone my english. I have autocad 2007 and i have a problem writing a script. I have lots of drawing files exported from a program called X-Steel and i have to plot them verry quickly. The problem is that the lines have different thickness and when i plot them on paper you can't distinguish the linesbecause they are to thick. Now I can resolve that by opening the file, giving 2 explode commands and give a select all command and change the line thicknes. And then give a plot command and selecting the last plot settings. I have made a script that looks like this: "_.zoom _e plot *Cancel* close y" But i would like to make someting like this zoom extents select all explode select all explode select all select line weight 0 plot select plotter (maybe can give the plotter name because i have multiple plotters) plot area: extents fit to paper number of copies : 2 shade plot Wireframe Plot style table monochrome landscape center the plot and of course paper size A3 or A4 then close drawing and don't save. And can I make a script to run for an entire folder or multiple files, or automaticaly when i open the drawing file? I'm attaching a sample file Oh yeah and another question:in the customize user interface i would like to add assign a key to the run script command and i can't do it:cry: Please help Thank you 4971 - elemrajz.zip Quote
Lee Mac Posted July 6, 2009 Posted July 6, 2009 Why not make a LISP and run that using a Script - it would be much more flexible. Also, may I ask why you are exploding? Lee Quote
VVA Posted July 6, 2009 Posted July 6, 2009 And can I make a script to run for an entire folder or multiple files, or automaticaly when i open the drawing file? open multiple dwgs and run lsp How to run a LISP routine on multiple drawings? Auto Run Lisp routine And more in GOOGLE !!!! Quote
necris77 Posted July 6, 2009 Author Posted July 6, 2009 Why not make a LISP and run that using a Script - it would be much more flexible. Also, may I ask why you are exploding? Lee Because i never worked ever with a LISP The exploding is because i have blocks in my drawing and can't or don't know how to change the lineweight otherwise The truth is that I really don't know that much about scripts and LISP = zero I will have to look it up on google when i have time because i'm working and have a busy schedule But if you have some time could you help me writing a LISP with those commands that i have tried to explain in my first post? Thank you Quote
necris77 Posted July 6, 2009 Author Posted July 6, 2009 Thank you VVA I will read those threads. Quote
necris77 Posted July 10, 2009 Author Posted July 10, 2009 I've found some LISP tutorials and i will get back if i have some new questions Quote
necris77 Posted July 10, 2009 Author Posted July 10, 2009 I cannot use this damn plotdwgs I load the plotdwgs.lsp and then : Command: _appload plotdwgs.lsp successfully loaded. Command: Command: Command: pd Plot Drawings ; error: quit / exit abort Command: screw it i'm getting me a beer verry frustrating What the hek do i have to do to get this thing working? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.