cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.

Attribute Index -Nr. // Showing it with an Label and list it in an Schedule

GabrielGG
Booster

Hello,

 

I need for a very specific use case to list the Attribute Index of Composites in Plan (with a Label??) and also to List the Index-Nr. of the COmposites in a Schedule.

 

I cound not find any possibility in this direction an I would be happy if somebody can help od suggest workarrounds or maybe Library parts that can read this information.

 

Thanks in advance

Gabriel

Since Archicad 11
Currently at Franz&Sue Zt GmbH
4 REPLIES 4
scottjm
Mentor

I believe the only way to display an attribute index number in label would be to access it via GDL. 
However from looking here you can only read the composite name WALL_COMPS_NAME and the is no parameter for composite index. 

https://gdl.graphisoft.com/reference-guide/wall-door-window-and-wall-end-parameters/

Scott J. Moore | Fulton Trotter Architects | BIM Manager, Associate, Architect
Since AC13 | Current versions AC23.7000 & AC26.5002 | BIMCloud Basic | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe
Barry Kelly
Moderator

As Scott said I don't think it is possible.

You can REQUEST a name in GDL based on the index number, but you can't request the index number based on the name as far as I know.

 

If you just need to know the index number for a composite you can print a list from the Attribute Manager.

It will list the index, name and if it is being used in the file.

 

BarryKelly_0-1764322203278.png

 

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
Davor P
Enthusiast

You could still do it with GDL, and there are two options - one is to maintain a list of IDs in GDL, manually. You only need to add the composite IDs you are using and tagging and order you add them does not matter.

 

The other option would be to export the text file like Barry suggested and you can then read that text file with GDL and extract information that way.

 

If you don't want to deal with GDL you might be able to do it with property expression and some IF comparisons


@Barry Kelly I know you can request Surfaces (Materials) and Building materials by ID but can you actually get composites? They have always been missing for some reason.

DIM compositesList [][]
compositesList [1][1] = 1 !ID
compositesList [1][2] = "Your composite 1 name"
compositesList [2][1] = 2 !ID
compositesList [2][2] = "Your composite 2 name"

...
Request name of the composite and store it in returnCompName for example
...
Then loop through the array and compare name to get the ID
FOR i = 1 to VARDIM2(compositesList)
    IF returnCompName = compositesList[i][2] THEN
        compID = compositesList[i][1]
        GOTO "BreakLoop"
    ENDIF
NEXT i

"BreakLoop":
TEXT2 0,0, compID

 

BIM4BIM - by BIM managers for BIM managers
www.bim4bim.com | audit.bim4bim.com

@Davor P wrote:

@Barry Kelly I know you can request Surfaces (Materials) and Building materials by ID but can you actually get composites? They have always been missing for some reason.


No, there are no composites in GDL, probably because you can not use composites in GDL, just fills, surfaces and building materials.

 

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