TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: vozer on December 08, 2016, 09:15:33 AM

Title: move multiple viewports in layout at once dxf code 20
Post by: vozer on December 08, 2016, 09:15:33 AM
Hi Guys!

So i have multiple viewports on one layout. now i am moving the shown objects in modelview to some place else, but they still have the same position to each other. So instead of going to the layout and pan every viewport by itself to the new location, is there a way to do it all at once? or to associate viewports with a certain rectangle in model view and if moved the viewport changes also?

I think it could work with DXF Code 20, as anthony described in another forum:

"I think DXF code 20 for a viewport has the modelspace coordinates of the center of the viewport, so it should be easy to create a custom command that does what you want. It would just have to change the DXF-20 value of all selected viewports, or of all viewports in the file, by X and Y values that the user enters. "

My Question is, is there already a snipped for this action lying around here?
Or could somebody help me generate one?

cheers
Title: Re: move multiple viewports in layout at once dxf code 20
Post by: roy_043 on December 08, 2016, 09:34:28 AM
The Op is referring to this:
https://www.bricsys.com/common/support/forumthread.jsp?id=31660
Title: Re: move multiple viewports in layout at once dxf code 20
Post by: kruuger on December 08, 2016, 01:34:20 PM
try this tools. all can be done automatically.
http://u-cad.eu/apps/viewportmaster/

kruuger
Title: Re: move multiple viewports in layout at once dxf code 20
Post by: vozer on December 19, 2016, 10:53:19 AM
Thanks! This Tool works like a charm!