Exchange Forum > Beta Testing Forum
PlotDwgs, a plot utility program
Page 2 of 3
1 2 3
PlotDwgs, a plot utility program

#11

danneshi
Join Date:
01-09-2008
ok,
 
I am sending the file for you look at.
 
I to mark the code where I thing happen the error
 
Thanks

Attachments  PlotDwgs.lsp  
PlotDwgs, a plot utility program

#12

Terry Cadd
Join Date:
09-10-2007
Thanks for your quick reply. I'll take a look into it after lunch.
Terry
PlotDwgs, a plot utility program

#13

Terry Cadd
Join Date:
09-10-2007
I found it! Look for the following lines:
 
(setq Dcl_Id% (load_dialog "PlotDwgs.dcl"))
(new_dialog "PlotDwgs.dcl" Dcl_Id%)
 
Change the line above to the following:
 
(new_dialog "PlotDwgs" Dcl_Id%)
 
Just remove the ".dcl".
PlotDwgs, a plot utility program

#14

danneshi
Join Date:
01-09-2008
nice Terry,
 
I got print!
but after the first one, I received a message "Cannot find definition for dialog PlotDwgs"
and more one dount...
I have a lisp what print a frame of dwgs. Print with option "window".
Can I print with your lisp using my option. Because I already configure my dwgs with its points what define the interval for print.
following this rotine.
 
ps. the problem found before was the path the dcl file. The lisp dont found the dcl find.
 
regards

Attachments  prtw.lsp  
PlotDwgs, a plot utility program

#15

danneshi
Join Date:
01-09-2008
about the message "Cannot find definition for dialog PlotDwgs" I discovered this because the file "ploddwgs.dcl" is erase after the print. After I used the option plot folder dwg the dcls code PlotDWg : dialog thru //PlotDwgs is erased.
This way, in next time I dont print because this error: the message "Cannot find definition for dialog PlotDwgs"
PlotDwgs, a plot utility program

#16

Terry Cadd
Join Date:
09-10-2007
Hi Danneshi,
There has been some confusion about the dcl files "PlotDwgs.dcl" and "PlotDwgs .dcl". The second file has a character 160 in it, so as to not erase the original "PlotDwgs.dcl" that comes with the program. Can you upload and attach your "PlotDwgs.dcl" so I can take a look at it?
 
I have revised the the attached version of "PlotDwgs.lsp" for you, and have changed the name of the temp dcl "PlotDwgs .dcl" to "PlotDwgs_.dcl". This is the dcl file that is re-created over and over each time the program runs the folder of drawings option.
 
I can help you with the rest of the configuration if your will please attach the flip screen plot information of two different sizes of successful plots that you will be using, such as A3-Size and A4-Size. This is where you plot using the command line -plot version. Please make sure you only choose your standard sizes, such as A3 and A4. It looks like the following.
 
Command: -plot
Detailed plot configuration? [Yes/No] <No>: Y
Enter a layout name or [?] <Layout1>:
etc.
 
Regards,
Terry
 
P.S. Is your PlotDevice$ name for "HP Designjet 200(C3180A" missing a ")". I just wondered.

Attachments  PlotDwgs.lsp  
PlotDwgs, a plot utility program

#17

lucianno
Join Date:
11-23-2007
Hi Terry,
I am sending a file to you configure the my new plot.
I am sending too a file with your function PlotLayout with a adjust for print customize.
I like what you look at and see if it will run with these changes.
Thank you
 
Regards

Attachments  enviarConfig.txt    new_PlotLayout.txt  
PlotDwgs, a plot utility program

#18

lucianno
Join Date:
11-23-2007
After change the function PlotLayout I got print using the modifications only mode "current drawing", but when I print in mode "folder of drawings" the change not have effect and still receive a alert dialog with message "user".
 
Thanks
PlotDwgs, a plot utility program

#19

ksbhadekar
Join Date:
05-16-2008
Hi Terry,
Thanks a lot for developing this program. I tried to run your program on my machine but it give error.
Command:
Plotting Drawings...
; error: bad argument type: consp nil
 
I think there is some problem in following code.
 
Code:
(defun GetLayoutList (/ Layouts@)
  (vlax-map-collection (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object))) 
    '(lambda (x) (setq Layouts@ (cons 'x Layouts@)))
  );vlax-map-collection
  (setq Layouts@ (vl-sort Layouts@ '(lambda (x y) (< (vla-get-taborder x) (vla-get-taborder y)))))
  (vl-remove "Model" (mapcar '(lambda (x) (vla-get-name x)) Layouts@))
)
Thanks and Regards,
 
-Kaustubh
 
Quote:
I have recently revised PlotDwgs to be easier to customize by other AutoCAD users and AutoCAD departments.
This version utilizes two global lists, which are located at the top of the PlotDwgs.lsp file. The lists are easy to edit,
even by a non-programmer. PlotDwgs doesn't use or require previous page setups, or layout plotter configuration
settings. This makes it ideal for batch plotting a folder of customer drawings or other engineering firms' drawings. In
the main dialog, by selecting "Varies" for the paper size, the program determines the correct paper size
and corresponding plotter to use for each layout. This version also includes the option of plotting all open drawings. 

  In order to make this version work for most global AutoCAD departments, a few company specific functions were removed, such as a plot stamp function for title blocks, and a Bill of Material utility which updates an Excel spreadsheet for the database. The program may be customized to meet your requirements, such as turning on or off certain layers when plotting. For the International AutoCAD users that use metric page sizes, search and replace A-Size through D-Size with your page size names, and also edit the PaperSize function, and change the values of the Widest~ variables accordingly. PlotDwgs is designed to work with AutoCAD 2000 and up.   These files can be downloaded from: http://web2.airmail.net/terrycad/AutoLISP-Code.htm

PlotDwgs, a plot utility program

#20

Terry Cadd
Join Date:
09-10-2007
Kaustubh,
In the code you pasted into your post there is a [cons 'x] that should just be [cons x] with out the ['].
Here's the version from PlotDwgs.lsp.
 
Code:
;-------------------------------------------------------------------------------
; GetLayoutList - Returns a list of layouts in the drawing in tab order
;-------------------------------------------------------------------------------
(defun GetLayoutList (/ Layouts@)
  (vlax-map-collection (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
    '(lambda (x) (setq Layouts@ (cons x Layouts@)))
  );vlax-map-collection
  (setq Layouts@ (vl-sort Layouts@ '(lambda (x y) (< (vla-get-taborder x) (vla-get-taborder y)))))
  (vl-remove "Model" (mapcar '(lambda (x) (vla-get-name x)) Layouts@))
);defun GetLayoutList
Page 2 of 3
1 2 3