<?xml encoding=”UTF-8″>By Partha Sarkar
If you are
wondering how to import a named Layout into the current drawing file using LISP
in AutoCAD, here you go.
LISP code
snippet below, demonstrates how to import a layout named “ABC” from a
selected DWG file to the current drawing file.
(defun C:LayoutImport()<br><br> ;; Select a DWG file to import a Layout<br> (setq myFile (getfiled "Select your DWG File:" " " "dwg" 8)) <br> <span>(command"layout" "t" myFile "ABC")</span> <br> (alert "New Layout is inserted!") <br> (princ) <br>)
After
executing the above LISP code, you would see a new Layout named “ABC” is
imported to the current DWG –


Leave a Reply to DwgCancel reply