TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on July 25, 2011, 12:43:07 PM

Title: NOC = Number Of Copies
Post by: Andrea on July 25, 2011, 12:43:07 PM
Hi all...

Little challange for you guys...

I've finaly be able to capture the number of copie when printing.
anyone can reproduce this reactor ?

Title: Re: NOC = Number Of Copies
Post by: Matt__W on July 25, 2011, 12:59:00 PM
(define C:NOC ( / )
   (alert "Number of Copies = 2")
   (princ)
)

:whistle:
Title: Re: NOC = Number Of Copies
Post by: Matt__W on July 25, 2011, 01:01:45 PM
My LSP is rusty, but I'm assuming it has something to do with the NUMBEROFCOPIES property.
Title: Re: NOC = Number Of Copies
Post by: Andrea on July 25, 2011, 01:11:37 PM
Nice Try Matt..  :)

Code: [Select]
(vla-get-numberofcopies (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object))))always return 1
Title: Re: NOC = Number Of Copies
Post by: Matt__W on July 25, 2011, 01:12:38 PM
Nice Try Matt..  :)

Code: [Select]
(vla-get-numberofcopies (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object))))always return 1
In that case, I'm sticking with my first response.  ;)
Title: Re: NOC = Number Of Copies
Post by: Andrea on July 25, 2011, 01:43:35 PM
Nice Try Matt..  :)

Code: [Select]
(vla-get-numberofcopies (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object))))always return 1
In that case, I'm sticking with my first response.  ;)

Well eaven that....there is no "S" on Copie.  :P
Title: Re: NOC = Number Of Copies
Post by: CAB on July 25, 2011, 04:41:58 PM
Looks like an old problem
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/vla-get-NumberofCopies-Not-Getting/td-p/877840
Title: Re: NOC = Number Of Copies
Post by: JohnK on July 25, 2011, 05:01:47 PM
Looks like an old problem
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/vla-get-NumberofCopies-Not-Getting/td-p/877840

Not the OPs question. Re-read the first post. There was no question of how to do it, Andrea said that he was able to do something and was asking if anyone else can as well (And, the last person who posted in the link you gave asked what Andrea seems to have done).

Andrea,
Can you give us a hint? Is it a variable or registry setting? I would imagine there is a lot of things it could be or where it would be hiding. Right?
Title: Re: NOC = Number Of Copies
Post by: MP on July 25, 2011, 05:18:47 PM
good thing we haz a monitor
Title: Re: NOC = Number Of Copies
Post by: Andrea on July 25, 2011, 05:27:01 PM
I've worked hard on this one..
but like each program, the programmer need to think of what he realy need..

In fact the question is....

do I want to know how many copy I've put on the dialog?
or
do I want to know how many copy was sent on the printer?

than,...maybe that will direct you to another direction.
 :kewl:
Title: Re: NOC = Number Of Copies
Post by: kdub_nz on July 25, 2011, 06:21:38 PM

what a tease :)
Title: Re: NOC = Number Of Copies
Post by: alanjt on July 26, 2011, 09:12:17 AM

what a tease :)
x2  :-P