LDT 2004
Does anyone have a routine to copy a viewport between layouts and retain the layer configuration?
You have your layouts all in one file?
See attached lisp routine and try it out. Hopefully this will get you what you are wanting.
The command is COPY2ALLTABS
Hint: explore other "copy" capabilities of the routine besides viewports...
Thank you for the routine
I think this program may do more than I need. But I can cut it back -- and add a little user guidance on the way. I don't recognize the "Command: (vl-load-com)" line. Why not simply (vl-load-com)? I use LDD4 and maybe there are changes in lisp syntax since then. I'll give it a spin later today and respond again.
tcebob
I had a chance to try it out. Results are mixed, maybe because of a difference in version.
1. The "Command:" line didn't cause an error, to my surprise.
2. As stated in the defun, the routine attempts to copy the viewport to all layouts.
a. The defun name is too long for practical use, so I shortened it to C2T.
b. I really only need to copy the viewport to one layout. I'll try to incorporate a select process.
3. The copied viewports are, indeed, viewports. They land on the layout at the same coordinates they had on the original. However, they are empty. When I try to turn them on with Mview/on the immediate results can be bizarre. The entire screen can show the model view or a view tilted in the z axis or nothing at all. Any further interaction (keyboard or mouse) crashes Acad. Fortunately the original file is untouched.
tcebob