Jump to content

Recommended Posts

Posted

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?

Posted
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)

Posted

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.

Posted

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

Posted

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

Posted

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.

Posted
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.

Posted

(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

Posted

neekcotrackThanks for the advise. I was trying .plot and _plot. I did not try -plot. Have a good one.

Posted

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.

Posted

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

Posted

Glad you got it working. I haven't had time to check in here that much today

Posted

Thanks for the help and the

code tip

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...