Author Topic: Seperate layout as a drawing?  (Read 7671 times)

0 Members and 1 Guest are viewing this topic.

huan_khu

  • Guest
Re: Seperate layout as a drawing?
« Reply #15 on: May 16, 2014, 03:37:59 AM »
You need to first run my LISP to delete all objects which are not in any viewport. Then you should seperate each layout as drawing.

Say I have 2 layouts with 2 viewports on it.

     1. Run your LISP, it delete objects not on any view port
     2. Run separate layout LISP, it creates 2 drawings with one view port on it. So Drawing 1 still remains objects on viewport 2 and drawing 1 remains objects on viewpor t1. These objects are not on any wiewport and I need to delete. 

Quote

If I run this LISP 2 times, it will not delete all objects in Model Space but delete all those objects which are not included in any viewport. If you have already exported your viewports as seperate layouts and no viewports exist, then probably, all objects in Model Space would be deleted.

I have checked again and the LISP also delete all objects in Model Space  ( I don't exported my viewports as seperate layouts). I tested on Autocad 2013 and Autocad 2015. Maybe because of my CAD version.

Thank you very much.
« Last Edit: May 16, 2014, 03:44:51 AM by huan_khu »

WHOSAGOOFBALL

  • Guest
Re: Seperate layout as a drawing?
« Reply #16 on: October 16, 2014, 02:51:25 PM »
sorry for hopping on to this thread but i've run this lsp from jtbworld in the past and it worked perfectly. since we've gone to 2015 it no longer works. this is what i get:

Command: LAYOUTSTODWGS
Enter filename prefix:
Regenerating model.
Regenerating layout.
Regenerating model.

Block "_Y" not found.

Invalid option keyword.

Error:  Function cancelled
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.Include AutoCAD Map information in the export? [Yes/No] <Y>:


any thoughts? thanks.

RC

  • Guest
Re: Seperate layout as a drawing?
« Reply #17 on: October 16, 2014, 03:56:57 PM »
expLortlayouts??

Code: [Select]
(vl-cmdf "._explortlayout" "")