DIESEL Expression to List ALL Layout Tab Names in TitleSheet

DIESEL Expression to List ALL Layout Tab Names in TitleSheet

tcoley95E9Z
Enthusiast Enthusiast
505 Views
5 Replies
Message 1 of 6

DIESEL Expression to List ALL Layout Tab Names in TitleSheet

tcoley95E9Z
Enthusiast
Enthusiast

All,

 

I have been looking everywhere for a way to have my Sheet Index (MTEXT Located in my Title Sheet) be able to auto populate at least the Layout Tab Names at once. It would look like this:

 

SHEET LIST:                                  <This is a separate MTEXT object
-------------------------              <This is a poly line
[T1]        TITLE SHEET                   <where [] will be the field

[A1.0]     OVERALL SITE PLAN    <where [] will be the field

[X.X]      3rd sheet.. etc                                   

 

NOTE: I would love for the sheet name to auto populate as well but that can be for another time.. not as important right now. I've also attached an image of our sheet list for reference.

 

Is there a better way to do this? I'd prefer not to use a lisp routine as many people will be touching this CAD template and I do not want to force each and everyone to run a routine before they use the CAD file.. Maybe fields?

0 Likes
Accepted solutions (1)
506 Views
5 Replies
Replies (5)
Message 2 of 6

Sea-Haven
Mentor
Mentor
Accepted solution

This does not auto populate but makes a new index. You could though make the values as fields but a bit of work compared to a couple of seconds to make a new one.

 This is an example code as its hard coded for a single title block matching attributes but shows you how to do it. It makes a table which I think is a better solution than mtext.

 

 

0 Likes
Message 3 of 6

scot-65
Advisor
Advisor

DIESEL cannot do this.

(LAYOUTLIST) in LISP is a list of all layout tabs.

Your table of contents is not a fixed list between projects (sheet A3.2, D1.2, etc...).

 

One method is to generate a CFG file that one will manually fill out the associative data and a second program to write [MTEXT] the results.

The CFG will be INI structured and will be located in the same directory as the DWG file.

A3.2=RACK ELEVATIONS (cont.)

 

But why go thru all this trouble?

 

Use the layoutlist to create one column of MTEXT and go from there provided the layout tabs are named the same as the sheet name. A second MTEXT object placed next to the sheet names will be the sheet descriptions.

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 4 of 6

Sea-Haven
Mentor
Mentor

Scott-65 "But why go thru all this trouble?" Creating a dwg index can be quite complex I had 88 layouts and just did make index. All done with all the correct attributes in the index.

0 Likes
Message 5 of 6

tcoley95E9Z
Enthusiast
Enthusiast

Apologies as I have rarely worked with .CFG- how would I go about storing this data? 

 

And I would gladly do a LISP routine but we have about 15-20 people that plan to touch this template so having them manually download a lisp routine would be a pain for everyone.

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

@tcoley95E9Z you need some one to be Cad Manager, I worked with multiple staff on multiple floors in a building. The 1st step was have everything in one location on a server all your lisps, custom menus, custom dwt's, block libraries and so on. A simple lisp can set up a user that loads the menu's and sets the support paths etc only has to be ran once. I can provide an example lisp. Once you have a menu pointing to a server if you add more options to that menu when a user starts their CAD the latest version is then available to that user no user interaction.

This has like 130 lisps behind it. Index was under "D", "Drawing index"

SeaHaven_0-1740612838932.png

If we upgraded it took about 2 minutes to get a user back to our normal setup, I used to use a USB and just did it for them. I also had the toolbars for each user as they all had different ones they liked to use.

 

Do you know anything about making a Menu ? If you can use notepad you can make a pop menu. I always make custom menu's as makes installs much easier, currently running 4.

0 Likes