BATCH PRINT BY NAME OF PRINTER

BATCH PRINT BY NAME OF PRINTER

Gaganpatel
Collaborator Collaborator
1,500 Views
27 Replies
Message 1 of 28

BATCH PRINT BY NAME OF PRINTER

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

I want to batch print to by name of printer lisp file.

Print Paper size A4.

 

 

0 Likes
Accepted solutions (3)
1,501 Views
27 Replies
Replies (27)
Message 21 of 28

Sea-Haven
Mentor
Mentor

Just a guess trying to confirm , did Boundingbox exist in 2013 ? Searching help for 2013 is hard, If not, can work out LL UR etc from size of title block.

0 Likes
Message 22 of 28

Sea-Haven
Mentor
Mentor

Just a guess does VLA-getboundingbox exist ? Trying to find in 2013 help. Can work out LL UR pts from size of title block other wise.

copy this and paste to command line, select a suitable object as a test.

 

 

(defun wow ()
(vla-getboundingbox (vlax-ename->vla-object (car (entseL "\nPick object like text "))) 'mn 'mx)
(setq llpt (vlax-safearray->list mn)
urpt (vlax-safearray->list mx))
(princ llpt)
)
(wow)

 

 

 

Pick object like text

result (-2.5 -4.0 0.0)(-2.5 -4.0 0.0)

0 Likes
Message 23 of 28

paullimapa
Mentor
Mentor

Excellent suggestion by @Sea-Haven 

@Gaganpatel Try this revised code which uses the exact size based on your title block SS

                (setq llpt (cdr(assoc 10(entget (cddr x))))) 
                (setq urpt (list (+ 267.00 (car llpt)) (+ 188.78788 (cadr llpt))))  ; use exact dimension of ttl blk SS

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 24 of 28

paullimapa
Mentor
Mentor
Accepted solution

So i searched the forums and apparently even back as far as 2010 the VLA-getboundingbox function was available 

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bounding-box-question/td-p/2657431

so there’s something else that’s preventing @Gaganpatel from completing the plot sequence. I also did a search on the forums and found that the plot sequence was the same back in 2012

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-plot-does-not-work-in-2013/t...

So my suspicion is that perhaps @Gaganpatel is missing the Dwg To Pdf.pc3 printing device or monochrome.ctb which are specified in the lisp code. Will require @Gaganpatel feedback.  

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 25 of 28

Sea-Haven
Mentor
Mentor
Accepted solution

A screen dump of your plot settings would be helpful when doing a manual plot that works. There are at least 3 items that must match exactly even down to spaces in there input and capital or lowercase input.

0 Likes
Message 26 of 28

Gaganpatel
Collaborator
Collaborator
Accepted solution

Dear Sir,

 

Thanks a Million 🙏🙏

0 Likes
Message 27 of 28

Gaganpatel
Collaborator
Collaborator

Dear Sir,

 

Thank you Very Much 🙏🙏

0 Likes
Message 28 of 28

paullimapa
Mentor
Mentor

glad that it finally all worked out for you...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes