RRS1987 Posted March 18, 2015 Posted March 18, 2015 Greetings to all I made one dwg for SLD. All entities has been done in Model space, Totally 10 No. of sheets came (10 Title blocks has been used). I want to use publish command to generate each title block as each PDF files. Thank you very much Quote
ReMark Posted March 18, 2015 Posted March 18, 2015 I wasn't aware that was even possible. Why don't you make each sheet a separate layout or a separate drawing? Quote
RobDraw Posted March 18, 2015 Posted March 18, 2015 It is possible but it would just as easy and recommended to use layouts. That is what they are there for. If you are stuck in model space, then you will need to create a page set-up for each sheet. In publisher you will have to load the file as many times as there are sheets and select the page set-up for each sheet. Do you really want to do all that work that is prone to errors or set-up layouts? Quote
SLW210 Posted March 18, 2015 Posted March 18, 2015 I moved your thread to the AutoCAD Drawing Management & Output Forum. Quote
BIGAL Posted March 19, 2015 Posted March 19, 2015 A way out just find every title block and plot it. ;plots all title blocks in model space ; By ALAN H ; change Da1drsht and hard coded sheet size (PROMPT ".....PRINTING DRAWING TO plotter....") (setq oldsnap (getvar "osmode")) (setvar "osmode" 0) (setq ss2 (ssget "x" '((0 . "INSERT")(2 . "Da1drsht")(410 . "Model")))) (setq n (sslength ss2)) (setq index 0) (repeat n (setq en (ssname ss2 index)) (setq el (entget en)) (setq inspt (assoc 10 el)) ; insertion pt (setq xmin (- (cadr inspt) 6.0)) (setq ymin (- (caddr inspt) 6.0)) (setq xymin (strcat (rtos xmin 2 1) "," (rtos ymin 2 1))) (setq xmax (+ xmin 813.0)) ; hard coded for 813 wide 6mm offset (setq ymax (+ ymin 566.0)) ;hard code for 566 high (setq xymax (strcat (rtos xmax 2 1) "," (rtos ymax 2 1))) (COMMAND "-PLOT" "Y" "" "//PRODPRN01/Design-5100" "A3" "M" "LANDSCAPE" "N" "W" xymin xymax "1=2" "C" "y" "Designlaser.ctb" "Y" "" "n" "n" "y" ) (setq index (+ index 1)) ) (setvar "osmode" oldsnap) (princ) Quote
RRS1987 Posted March 19, 2015 Author Posted March 19, 2015 @ BIGAL "Command: .....PRINTING DRAWING TO plotter....; error: bad argument type: lselsetp nil" This is what I get, while using code . find the attachment for your reference. Thanks Quote
RobDraw Posted March 19, 2015 Posted March 19, 2015 That LISP needs a few edits for it to work for you. The printer and the .ctb for starters. Quote
BIGAL Posted March 20, 2015 Posted March 20, 2015 Thanks Robdraw To the OP the name of the title block change Da1drsht, you must have the insert point of your block as lower left, you must change the hard clip plot window -6,-6 & 813,586 to suit your title block these are 6mm bigger than the corners and as commented change the plot settings to match your plotter name and sheet size. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.