Welcome to the CADTutor forums, probably the most lively and friendly AutoCAD forums on the web. You will need to register in order to post a question and to see all the content on this board. See How to register for details. Use the Lost password recovery form if you ever forget either your password or username. Be sure to check out the FAQ for more information.

Why not use excell to create a script for you, if you have always the same type of layout name then its only a matter of putting a number in 1 sq and run a macro, a script can be written as 1 line with multi commands rather than 1 after another a bit easier in exell

This is way out there ! Got a copy of MSword or excell it has vba in it as its macro language so maybe dump a dxf and read it via excel macro write out layout tab names and create script. Big job but achieveable.

Disavantage is that you will end up with a script for every dwg.

Its sounding easier just type layout name in excel as created then create script. Much easier only need 1 line in excel repeated rest is easy.

Layout change with zoom command

Hello all,

I have Auto CAD LT2016 and right now I have to go to each layouts and than give command "zoom, extents". This is very irritating when I have too many layouts and file runs very slow.
So, can anyone please tell me if you know any macro which automatically goes to every layout and runs "zoom, extents" command.

steven-g's Computer Details

steven-g's Discipline Details

Occupation

Draughtsman

Discipline

Construction

Details

I work in the estimating department of a large building contractor.

Using

AutoCAD 2018

Join Date

May 2013

Location

An Englishman in Belgium

Posts

2,116

I have never found a way, Ctrl + PgDn is a shorcut not a command and it's not listed in the CUI which would give a clue as to how it operates, "ctab" or "layout - set" both work but only if you know the layout names, "layout - ?" does return the layout names and could conceivably be sent to a variable and split by diesel which I might try (might). Macro's do have some special control codes which can be useful.

EDIT*
Nope no way to get the output of the layout tab list into a diesel accesible list (from a macro), it is a nice way to get the list into excel, but if your doing that then there is no need to struggle with a macro, as using an excel script is much easier.

Last edited by steven-g; 7th Nov 2017 at 01:00 pm.

I've just been down graded from 2012LT to full Autocad 2017. I WANT LT BACK