Jump to content
CAD_Question

Multiple Sheets in Model Space

Recommended Posts

CAD_Question

Hi,

 

I would like to make a lisp routine that will create page setups for multiple drawings in model space. Has anyone tackled this before? If so, what would the lisp routine look like?

Share this post


Link to post
Share on other sites
ronjonp

Create your setups in a template then import them using something like this:

(defun c:pagesetups (/ dwt)
  (cond	((findfile (setq dwt "X:/Your/Shared/Path/YourTemplate.dwt"))
	 ;; Remove plot configs
	 (vlax-for x (vla-get-plotconfigurations (vla-get-activedocument (vlax-get-acad-object)))
	   (vla-delete x)
	 )
	 (setvar 'filedia 0)
	 (vl-cmdf ".-psetupin" dwt "*")
	 (setvar 'filedia 1)
	)
  )
  (princ)
)

 

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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