TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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 ?
-
(define C:NOC ( / )
(alert "Number of Copies = 2")
(princ)
)
:whistle:
-
My LSP is rusty, but I'm assuming it has something to do with the NUMBEROFCOPIES property.
-
Nice Try Matt.. :)
(vla-get-numberofcopies (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object))))
always return 1
-
Nice Try Matt.. :)
(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. ;)
-
Nice Try Matt.. :)
(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
-
Looks like an old problem
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/vla-get-NumberofCopies-Not-Getting/td-p/877840
-
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?
-
good thing we haz a monitor
-
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:
-
what a tease :)
-
what a tease :)
x2 :-P