cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.
SOLVED!

How to reindex attributes (best practice)

Sam Karli
Enthusiast

Hi,

I'm about to work on a new template file, essentially by decimating/simpifying an old one (and later growing it).

My problem is that i can remove attributes that I don't need but cannot reindex so that there shouldn't be any gaps between them.

If i reindex them using the Attribute Manager (> Append to temp/Delete all/< Add by index) then the inedexes will be OK but the relations between the attributes will be lost (like a composite will reference a bad fill etc; not mentioning the Favorites).

 

Is there a method with I can reindex while not loosing the references?

 

Thanks in advance.

GDL/Python/C++ dev
2 ACCEPTED SOLUTIONS

Accepted Solutions
Solution
Laszlo Nagy
Community Admin
Community Admin

I think if you use the Reindex button in the Attribute Manager Dialog, Archicad makes sure that all references will point to the new index number. However, you will have to do it one by one.

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28

View solution in original post

Solution
Barry Kelly
Moderator

And just be careful, as your re-indexed template will no longer be compatible with any of your old files.

So no more copy & paste from other files unless they are also based on your new template.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

4 REPLIES 4
Solution
Laszlo Nagy
Community Admin
Community Admin

I think if you use the Reindex button in the Attribute Manager Dialog, Archicad makes sure that all references will point to the new index number. However, you will have to do it one by one.

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Solution
Barry Kelly
Moderator

And just be careful, as your re-indexed template will no longer be compatible with any of your old files.

So no more copy & paste from other files unless they are also based on your new template.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Thanks for both,

I consider exporting both attributes and favorites into .xml and writing a script to replace stuff according to a mapping.

I did this mapping (given in an .xls, btw) before for modifying ArchiCAD Library's default parameters, so should apply for attributes and favorites, too.

 

PS this reindexing is ultimately the most brainrotting thing I've done this year. After reindexing 20 layers I have unintentionally pushed the purge button in the vicinity and had to do the whole from the start 😞

GDL/Python/C++ dev
Laszlo Nagy
Community Admin
Community Admin

There are two other things I can think of that can be affected by attribute reindexing:

1. Default settings in tool settings dialogs - this is not that much of a problem because you can just apply Favorites after the reindexing and the tool default settings will be the same as the settings of one of the favorites.

2. Library Parts default attribute settings - Library Parts in the default Archicad Library refer to many attributes (like Pen 19 or Pen 91 for fill backgrounds), so just make sure that reindexing does not change the index number of all those attributes, otherwise the 2D and 3D representation of many Library parts can get messy.

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28