Hmm, that brings up an interesting question: I wonder if it's possible to replicate the 'copy layout' option (probably not in Lisp). I think I'll do a little research and digging.
I think you would have to manually copy all the objects from the layout space into the new layout... I don't think there would be an elegant solution to it.
Just use the ' CopyObjects ' method of the document. You might have to turn on viewports in the new layout, but you should be able to copy all content from one tab to another, even if it is one you just created. Just make sure you don't grab the very first viewport, as that is the paperspace viewport.
Hi Tim,
I am currently attempting to add this feature to the program, but I am falling down when it comes to viewports.
When I try to filter the first viewport out, I end up with one viewport missing. But, if I do not filter out any objects, I end up with the Paperspace viewport, but still missing one of the user-drawn viewports...
So, my question is, how can I tell which viewport to filter out in my:
(vlax-for Obj (vla-get-Block <layout>)
...
Advice is appreciated as always