Jump to content

creating a new border in layout


richard3009

Recommended Posts

I need a lisp to place a border in layout on multiple drawings then fit the contents of the drawing into that border, but where to start.

Link to comment
Share on other sites

Sorry should have been clearer, im now using full blown autocad so can run lisp, i want to place a drawing border in layout space that has a viewport that will surround all my drawing in model space, I need to automate this for 100 drawings

Link to comment
Share on other sites

How can I run this as an autolisp

 

 

1) Create a title Block the way I want, put in those standard things like Scale, Drawn By, Dwg No, Company Names, Logos, etc,

3) On any Drawings where I need the Title Blocks, I could use X-REF to insert the Title Block I want, zoom extents of the model space design in the Paper Space viewport.

 

So basicly I insert a titled border in paperspace/layout then the modelspace design is fitted into this border at no set scale but zoom extents into the viewport.

Link to comment
Share on other sites

If you write down the manual steps then you have the code I would look at a script rather than just lisp as you can add dwg names pretty easy.

 

something like

Open dwg1
layout N layoutnew
(setvar "ctab" "layoutnew")
Mview 0,0 800,560
Mspace
z
e
Pspace
z e
xref "abcd" "0,0"
close Y
Open dwg2
and so on

or just be carefull if you start to use spaces in the dwg names etc

Open dwg1 layout N layoutnew ctab "layoutnew Mview 0,0 800,560 Mspace z e Pspace z e xref "abcd" "0,0" close Y

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