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

identifying a printer only

  • Thread starter Thread starter x11start
  • Start date Start date

x11start

Guest
at work we have several pcs that share some printers and plotters. In particular, a printer/photocopying machine is used for printing in 3 modes: color, mono and bypass i.e. use the outside drawer and not the inside a3 and a4 drawers.
in my lisp use for printing the related names that were assigned:
“taskalfa mono”
“taskalfa color”
“taskalfa bypass”
in the last pc that was added to the network, the names appear slightly different: “taskalfa_monocrome”. This would not be a problem for a "human"! instead for a pc, it becomes a problem.
I know that the solution would be to rename the printer on the incriminated pc, but I wonder if there is no possibility of finding a unique code (e.g. Ip 192.168.0.45) and re-use the name to pass to the lisp to make it "universal".
 
I found this:

(getplotdevices (vla-get-activedocument))

... that creates a nice list of system printers.
now I just have to make a lisp (with wcmatch) that find, for example, the words "taskalfa" and "mono" that are common both to "taskalfa mono" and to "taskalfa_monocrome" ... and the game is done!
 

Forum statistics

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

Members online

No members online now.
Back
Top