[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Import Layouts from Standard Drawings
Tip# 3938 By Michael Nelson On 17-Jul-2012
Rated By 0 users Downloaded : 228
Categories : Paper Space, Templates
Software type : AutoCAD 2013
Rename File To : bland.lsp
Import a layout from another drawing and make it current.

One of the best things about AutoCAD is the ability to automate frequently repeated tasks, which can speed up processes and reduce mistakes. Michael Nelson has achieved both of these benefits with this routine, which imports layouts from one drawing into another. Sure, you can do this manually, but why would you? You will need to edit this LISP code before using it so that you can insert the correct path, filename, and layout name of your standards into the code. After doing so, load the LISP file and type in the command name Bland. The layout will be imported and set to current. If you have multiple standard layouts, use variations of this routine to insert each of them. Now instead of browsing for the layouts each time, you can have a single command do all the work for you.


Average Rating:

User comments
Comment by nemirovsky,len
Posted on 2012-07-23 16:46:37
I think it is better tu start with dwt tamplete rather then dwg and use sheet set. I also modified a bit lisp routine. I did not have time to check it thorow, so there it is "AS IS" :) ;;;================================================ ;;; Modified version of Bland.lsp Hot Tip Hartry Tip 3938 ;;;================================================= (defun c:Bland () (setq loc (getfiled "Select file:" " " "dwg" 8)) (command"layout" "t" loc "*") (alert "New Layout been inserted") (princ) );end defun
Comment by nemirovsky,len
Posted on 2012-07-23 16:55:51
Sorry that code looks obscured, here is the file attached
Comment by nemirovsky,len
Posted on 2012-07-23 16:55:58
Sorry that code looks obscured, here is the file attached
Comment by Anderson,Jim
Posted on 2012-07-30 08:50:48
I didn't download & test the lsp file, but you can do the same thing with a macro, which also works with AutoCAD LT - ^C^C^R_layout _t "YOUR_LAYOUT_DWG" _d Blank _psltscale $M=$(getvar,msltscale) "Blank" is our default layout in our template - it gets deleted after another layout is inserted. The routine also ensures that psltscale & msltscale settings are the same.

Log In