Jump to content

Recommended Posts

Posted (edited)

I have made this lisp to select all the title blocks within a file and print. Title blocks are on different paper spaces.

 

What I did was (ssget "x" BlockName), check block's layout name, if layout name is not current, switch to that layout and print.

 

It works fine if the file is not very complicated (i.e. doesn't take too long to regen), but when the drawing is big enough, it takes time to regen when switching layouts, it ends up printing a blank paper in certain layouts, looks like to me is that the print command has executed before the drawing has finished regen. I though may be I should apply (pause) into my lisp but I have no idea how it works. Can someone please help.

 

Thank you

Edited by LauKwokFai
Posted (edited)
 
(foreach blks (layoutlist)
(setvar 'Ctab blks)
  (ssget "x" (list '(0 . "INSERT")(cons 2 blockname)(cons 410 (getvar 'Ctab))))
  (process before proceedign to next layout)
 )

Edited by pBe
Posted

Right...why didn't I think of this !!!! Thanks a lot

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...