• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

multiple print keeping the last printing setting

  • Thread starter Thread starter yag
  • Start date Start date

yag

Guest
Hello

So I wrote some vba code to upload a list of many dwg
and open them and do other operations.

now I would like to know if it is possible to send them all one after another in the press
by taking them as default the last print settings performed

Is it possible?
 
In my opinion it is more profitable to set the data instead of exploiting the previous ones, learn more and do not create dependencies.

Hi.
 
I clarify, at least I hope: instead of printing referring to the settings for the last print performed, I find it is preferable to set the appropriate settings for printing from your software.
Okay?
 
I clarify, at least I hope: instead of printing referring to the settings for the last print performed, I find it is preferable to set the appropriate settings for printing from your software.
Okay?
Okay, but let's say I want to do this, because I've been trying for hours, I can't figure it out, would you know how to do that?
 
I clarify, at least I hope: instead of printing referring to the settings for the last print performed, I find it is preferable to set the appropriate settings for printing from your software.
Okay?

io sto provando così

private sub btnstampadwg_click()
for i = 0 to lstbelencodwg.listcount - 1
application.documents.open lstbelencodwg.list(i)
thisdrawing.sendcommand "plot" & vbcr & "a" & vbcr
exit sub
next
end sub

ma non funge
 
in vba I don't know but a method you can use in vba is this:
sub plot()
if msgbox("ready x plot", vbyesno) = vbyes then
thisdrawing.sendcommand "(command ""_plot"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
end if

end

from vba call through .sendcommand the autocad command, I adapted it to the device <dwg pdf.pc3="" to="">.

bye</dwg>
 
io ho fatto così

thisdrawing.sendcommand "-stampa" & vbcr & "a" & vbcr
thisdrawing.sendcommand "n" & vbcr & "a" & vbcr 'dettagliata
thisdrawing.sendcommand "" & vbcr & "a" & vbcr 'modello o layout
thisdrawing.sendcommand "stampa precedente" & vbcr & "a" & vbcr '
thisdrawing.sendcommand "" & vbcr & "a" & vbcr 'stampante predefinita
thisdrawing.sendcommand "n" & vbcr & "a" & vbcr 'stampa a file
thisdrawing.sendcommand "n" & vbcr & "a" & vbcr 'stampa a file
thisdrawing.sendcommand "s" & vbcr & "a" & vbcr 'stampa a file
thisdrawing.sendcommand "" & vbcr & "a" & vbcr 'modello o layout

ma solo che ho un windows ed il comando parte solo dopo che la chiudo ora provo il tuo
 
in vba I don't know but a method you can use in vba is this:
sub plot()
if msgbox("ready x plot", vbyesno) = vbyes then
thisdrawing.sendcommand "(command ""_plot"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
end if

end

from vba call through .sendcommand the autocad command, I adapted it to the device <dwg pdf.pc3="" to="">.

bye</dwg>
I tried it doesn't work. .
 
I tried it doesn't work. .
this is an example of a complete set-up sequence for printing with the send command and that or who told you the good rpor66 is the same thing, check with autocad the options that are required to you in command line and you pass the steps you want,



Of course I have variables that have values according to that where my programam does, but the concept is that


rpor66 code actually has a thisdrawing.sendcommand error "(command ""_-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

to execute the plot command transparently you have to put _-plot.

a passionate advice, if you know it always uses commands in English with _ so your progs turn on all versions, Russian or Polish that are...

and then it is known that in 2010 certain abbreviations and commands in Italian have problems, in English never mistakes.
 
xshape: I must point out.
if you launch the command plot by command, in order not to have the plot window, you must precede the command with the indent -.
instead, via (command "_plot"), you always and only have command line options.
the most common mistake you make in using the -plot command is the failure to use the .pc3 print devices.
If it is not .pc3, create it.

x yag: returning to topic, you were precipitous and, above all, you have to learn to insist.

I tested the command on autocad 2010 and 2009 both in English, on two different pcs, with the same identical result, therefore, insist.
Remember that you must make the first printing with the device <dwg pdf.pc3="" to=""> manually, by completing it, then you can use the macro.

Let me know.

Hi.</dwg>
 
xshape: I must point out.
if you launch the command plot by command, in order not to have the plot window, you must precede the command with the indent -.
instead, via (command "_plot"), you always and only have command line options.
Sorry maybe I misunderstood what I meant was to use education _-plot and not -print as he does.

but then we are talking about the vba sendcommand or the lisp command? because for the vba you have to pass _-plot if steps _plot opens the window. on the lisp I did not try
 
with sendcommand passes the command (command "_plot" ...., not _plot, this is why of the clarification.

Hi.
 
perfect but where do I find the complete list in English?
I feel thanks to previous print antipicpo = previous plot ?
 
positive.
to test the exact execution of the command (command "_plot" .....) write to command: (command "_plot"), then you will be asked for the additional information that you will insert manually and that correspond to what you will have to write in the macro to run the whole.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top