NoelStalker Posted November 3, 2008 Share Posted November 3, 2008 Hello everyone, I searched the forums but did not seem to find anything quite like this. I would like to make a lisp file that would open drawings in a folder and batch plot them, using the previous plot assignment. The way I see it, it could either have a dialog box that asks me for which files to plot, or it would plot all of the files in the folder, opening and printing them in alpha-numeric order. Is this getting into the advanced programmer's realm or is this something a beginner could tackle? Quote Link to comment Share on other sites More sharing options...
neekcotrack Posted November 4, 2008 Share Posted November 4, 2008 Hello everyone,I searched the forums but did not seem to find anything quite like this. I would like to make a lisp file that would open drawings in a folder and batch plot them, using the previous plot assignment. The way I see it, it could either have a dialog box that asks me for which files to plot, or it would plot all of the files in the folder, opening and printing them in alpha-numeric order. Is this getting into the advanced programmer's realm or is this something a beginner could tackle? They have programs that can do this and more. (Example: Multi-Batch) Quote Link to comment Share on other sites More sharing options...
NoelStalker Posted November 4, 2008 Author Share Posted November 4, 2008 neekcotrack, What is multi-batch? Is it free? We're a pretty small operation and I don't think my boss wants to pay for lisp files. Quote Link to comment Share on other sites More sharing options...
CmdrDuh Posted November 5, 2008 Share Posted November 5, 2008 I would write a script file and feed it the plot parameters you want. You can create a script file in about 10 minutes for however many drawing you need. There are shortcuts to minimize typing Quote Link to comment Share on other sites More sharing options...
CmdrDuh Posted November 5, 2008 Share Posted November 5, 2008 For that matter, a small module of VBA code would work really well with a script file, and if you need it, I have that small module Quote Link to comment Share on other sites More sharing options...
NoelStalker Posted November 5, 2008 Author Share Posted November 5, 2008 CmdrDuh, Thanks for your response. I am definitely interested in writing a script file with plot parameters. How do I go about doing this? I don't know how to print without using the dialog box. Quote Link to comment Share on other sites More sharing options...
neekcotrack Posted November 5, 2008 Share Posted November 5, 2008 CmdrDuh,Thanks for your response. I am definitely interested in writing a script file with plot parameters. How do I go about doing this? I don't know how to print without using the dialog box. If you want to know how to plot without the dialog box type -plot in the commandline and just follow each step. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 5, 2008 Share Posted November 5, 2008 (defun c:pl () (command "-plot" "yes" "Model" <<---<< Change this if Needed pause "A4" <<---<<< Change this if needed "Millimeters" pause "No" "Extents" <<---<< Change this if needed "fit" <<---<< Change this if needed "Center" "Yes" pause "yes" "wireframe" "no" "no" "yes" ) ; end plot ) ; end pl You get the idea... change what parts you need to Quote Link to comment Share on other sites More sharing options...
NoelStalker Posted November 5, 2008 Author Share Posted November 5, 2008 neekcotrackThanks for the advise. I was trying .plot and _plot. I did not try -plot. Have a good one. Quote Link to comment Share on other sites More sharing options...
NoelStalker Posted November 5, 2008 Author Share Posted November 5, 2008 LeeMac, I started with your code and used neekcotrack's advice to come up with this one. It simply plots using the previousplot settings. (defun c:pp () (command "-plot" "no" "" "previous plot" "" "no" "no" "yes" ) ) Thanks again. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 5, 2008 Share Posted November 5, 2008 No problem Noel, Glad I could help - btw, when posting, try to include your code in: [/b] Type code here... [b][color=Red][/code ][/color][/b] (but without the spaces in the[b][color=Red] [ ] [/color][/b]symbols Quote Link to comment Share on other sites More sharing options...
CmdrDuh Posted November 5, 2008 Share Posted November 5, 2008 Glad you got it working. I haven't had time to check in here that much today Quote Link to comment Share on other sites More sharing options...
NoelStalker Posted November 5, 2008 Author Share Posted November 5, 2008 Thanks for the help and the code tip Quote Link to comment Share on other sites More sharing options...
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.