Hi Henrique,
The reason I am asking this is because I am using the WBLOCK to clean some drawings. This process works realy good but it has one issue: the page setup disappears and to print or to plot without this is to hard. So, I am trying to import it from another drawing with a lisp routine because I will do this cleaning process many times from now.
That said, the routine will be put in my acaddoc.lsp on the server. So, when someone open a drawing, it will check if the drawing already has the same page setup from my template, and if idoesn't, the routine will import it. I am using AutoCAD2012.
I did some tests with this:
(defun c:test ()
(psetup_in "C:\\Users\\mds\\Documents\\plot_configurations.dwg")
)
If the drawing already has the same page setup, nothing happens (this is perfect)
If the drawing has at least one page setup, the others will be imported (this is perfect)
But, if the drawing has none page setup, I have this error :
Error: ActiveX Server returned an error: Parameter not optional
Maybe here, you could create one page setup named "Setup1", do the import, and at the end erase this "Setup1" page setup...
I also did some tests with this:
(psetup_in "C:\\Users\\mds\\Documents\\plot_configurations.dwg")
In all the cases (with or without page setups), I have this error:
; error: no function definition: PSETUP_IN
Thanks!