Jump to content

Multiple Sheets in Model Space


CAD_Question

Recommended Posts

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?

Link to comment
Share on other sites

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

 

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