Jump to content

batch previous plot


NoelStalker

Recommended Posts

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?

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

(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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...