move drawing visible in a viewport to layout?

move drawing visible in a viewport to layout?

AndTufo
Observer Observer
998 Views
7 Replies
Message 1 of 8

move drawing visible in a viewport to layout?

AndTufo
Observer
Observer

Hello everyone, I'm in need of help with LISP!

I'm a layman on the subject, I need to automatically move what is being displayed in my viewport (model drawing) to my layout, and then delete everything that is in the model.

Would it be possible?

0 Likes
Accepted solutions (1)
999 Views
7 Replies
Replies (7)
Message 2 of 8

pendean
Community Legend
Community Legend
Message 3 of 8

john.uhden
Mentor
Mentor

@AndTufo 

Are you sure you really want to change objects from Modelspace to Paperspace?

Albeit @pendean suggested CHSPACE, which is the correct command, CHSPACE requires a viewport in a layout to accomplish that and adjusts the scale of the objects selected by that of the viewport.

Unless your viewport is 1:1 your objects' sizes will change.  Besides, what's wrong with leaving them in Modelspace and zooming to them at the preferred viewport scale?  That's the way [most of] the rest of the world works.

I mean at that rate you might as well not use Paperspace at all, which is what we used to do in R9 (I don't remember when Paperspace came along, but it was a long time ago, maybe not until R12).

John F. Uhden

Message 4 of 8

AndTufo
Observer
Observer

In fact, I have several drawings of electrical diagrams in a single file, each layout has a manual page, the final idea is just to keep a layout with its respective model drawing per dwg file.

I found a lisp code that performs the division of layouts by files, but I still have to manually delete all drawings that are not from the respective layout, and do one by one, for example: in file 01, only the cover is left in the layout and in the model , in file 02 is the index in the layout and in the model, and so on.

My purpose would be to eliminate the repetitive process, as some manuals have 200 sheets.

0 Likes
Message 5 of 8

AndTufo
Observer
Observer

the idea would be to do it automatically, the CHSPACE command helps but there would have to be an automatic way for it to identify what is in the viewport and move it in just one autolisp routine.

0 Likes
Message 6 of 8

Sea-Haven
Mentor
Mentor
Accepted solution

Do you really need 1 dwg 1 layout, I have a DWG with 88 layouts. None of our projects are ever multiple dwgs and they all have at least 4 layouts.

0 Likes
Message 7 of 8

Kent1Cooper
Consultant
Consultant

@AndTufo wrote:

.... the CHSPACE command helps but there would have to be an automatic way for it to identify what is in the viewport and move it ....


And does anything ever extend in model space beyond the area shown in one viewport, and into the area shown in another one?  Like column lines, or contour lines, or...?  You would have things moved into paper space from processing one of the viewports, and therefore gone from model space when you get to processing another one.

Kent Cooper, AIA
0 Likes
Message 8 of 8

Sea-Haven
Mentor
Mentor

A bit more you can draw a rectang in "Model" that represents your viewport at a sheet size and plotted scale over an area in model, click on the rectang and a new layout is made and viewport auto made at correct scale.

 

There is lots of examples for this Google.

 

 

 

 

0 Likes