Inserting Field Into Layout Tab Name

Inserting Field Into Layout Tab Name

KMulligan-Fabian
Community Visitor Community Visitor
711 Views
11 Replies
Message 1 of 12

Inserting Field Into Layout Tab Name

KMulligan-Fabian
Community Visitor
Community Visitor

Hello,

Is there a way to insert a field into the layout tab name (See image - circled in red)? When I right-click on the tab it doesn't give the option. I could rename all the tabs individually, but with potentially 40+ tabs I would like to streamline this.

0 Likes
712 Views
11 Replies
Replies (11)
Message 2 of 12

paullimapa
Mentor
Mentor

No but what Field are you thinking of using?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 12

KMulligan-Fabian
Community Visitor
Community Visitor

I was going to use either a custom field to match drawing file name or if there an existing field to utilize that. If there is a way to find and replace the tab name, that would work as well.

0 Likes
Message 4 of 12

paullimapa
Mentor
Mentor

Perhaps a lisp can be written to place the dwg file name as a prefix to all the layout tabs. You may want to be specific with the requirement and post in the customization lisp forum


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 12

vladimir_michl
Advisor
Advisor

You cannot use Fields directly but you can use a LISP reactor to do this. See e.g. RenameLOA:

https://www.cadforum.cz/en/how-to-rename-layouts-by-a-specific-attribute-of-the-title-block-tip11780

 

Vladimir Michl, www.arkance.world  -  www.cadforum.cz

 

Message 6 of 12

edwin.prakoso
Advisor
Advisor

You might want to check the Sheet Set Manager. You can rename and renumber the sheets from the SSM palette, which has the option to update the layout name.

Cheers,
Edwin Prakoso
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 7 of 12

TomBeauford
Advisor
Advisor

Lee Mac's TabSort lisp with dialog boxes allows you to modify/rearrange layout tabs in many ways including adding a prefix or suffix to their names. https://www.lee-mac.com/tabsort.html

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
Message 8 of 12

jreidKVSUZ
Advocate
Advocate

In AutoCAD, the field name to access the current layout tab name is "ctab" - which stands for "current tab"; you can use this system variable within the "Field" command to automatically insert the current layout tab name into your drawing, like in a title block.

 

Key points about using "ctab":

Accessing the field:

When inserting a field, select "All" in the Field Category, then choose "System Variable" and finally select "ctab".

 

Application:

This is commonly used to dynamically display the layout name in a title block attribute.

Copy the Block I made into your drawing. Regen or save and your tab name should show up.

 

Hope this helps!!! Happy New Years!!

JRR!

jreidKVSUZ_0-1736201688046.png

 

Message 9 of 12

cadffm
Consultant
Consultant

Hi jreid,

 

right, but it doesn't match TOs question.

As you could read above:

 

Title: "Inserting Field Into Layout Tab Name"

Source: Somewhere
"Is there a way to insert a field"
TARGET: "into the layout tab name (See image - circled in red)?"

 

1. Not possible

2. Workaround A - Programming/Tool , Kind to 'Rename or Search&Replace in Layoutnames'

3. Workaround B - remove the standard name part from layout name and use two field in the title

    Field1 reads from a Textobject or DWGprops the fix part and Field2 (the existing one) reads the individually part name (ctab)

Sebastian

0 Likes
Message 10 of 12

paullimapa
Mentor
Mentor

FYI, Not sure why you would want to add the drawing filename as a prefix to all the layout tab names because when you PLOT/PUBLISH using any of AutoCAD's built-in drivers the drawing file name is automatically added as prefix to the layout tab name:

paullimapa_0-1736203136448.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 11 of 12

cadffm
Consultant
Consultant

"to match drawing file name or if there an existing field to utilize that"

 

As stated, you can not add a field to the layout-tab(name),

but in your title 

 

If you remove the dwg name part of your layout name,

Add a field to read the DWGNAME variable.

Together with the following ctab-field.. it's done, or?

 

Sebastian

0 Likes
Message 12 of 12

AlecTadman
Community Visitor
Community Visitor

It would be good to be able to link the current revision field from the sheet set manager so the drawing number and revision are automatically plotted.

 

It would only work with one drawing per file drawings as you couldn't have two layouts the same number or letter.

 

This is something Autodesk should implement.

0 Likes