Jump to content

How to use publish command in model space?


RRS1987

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

@ 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

my model space.jpg

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...