Documentation
About Archicad's documenting tools, views, model filtering, layouts, publishing, etc.

auto labelling

Ben Cohen
Enthusiast
Hello all, nice to meet you all (my first post) here goes
Does anyone have a hint on how to create an associative label that contains data directly from the object that is being labelled.
ie. can I label a roof maker rafter and have the label contain the length. Or label a steel section and have the label contain the section size and weight.
This is something that I have being trying to do for ages using properties and keys etc but with no luck

TIA

Ben
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
15 REPLIES 15
Anonymous
Not applicable
Ben wrote:
Or label a steel section and have the label contain the section size and weight.
AFAIK, you can only get information from construction element, not from object (you still can get generic info from it, such as X,Y,Z position, A, B, ZZYZX size, etc), but you won't be able to get directly specific object parameter...

I made some labels that can be used with slabs and walls, for exemple, you might have a look and derive it for your objects...

Anyway, the seems to be more GDL related and you should also post your question on GDL-Talk
Ben Cohen
Enthusiast
yes thank you anything will help, maybe using GDL but it cant script!! just basic cut and paste
Is there is a label tool out there that can return this information.
Will your custom label return the length of a beam??

thanks

Ben
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Ben wrote:
yes thank you anything will help, maybe using GDL but it cant script!! just basic cut and paste
Is there is a label tool out there that can return this information.
Will your custom label return the length of a beam??

thanks

Ben
You'll find a label attached here : it only works for slabs, but you should be able to adapt it for a beam or an object.

The label will only work if it's associated with an element (by checking the checkbox of the element itself) and if the default label type for this kind of construction element is the correct one.

You should check the help file in the GDL section :
"Beam parameters - available for listing only
BEAM_THICKNESS thickness of the beam

BEAM_HEIGHT height of the beam

BEAM_REFLINE_OFFSET offset of the reference line relative to the axes of the beam

BEAM_PRIORITY 3D intersection priority index number

BEAM_MAT_RIGHT material of the beam on the right side of the reference line

BEAM_MAT_LEFT material of the beam on the left side of the reference line

BEAM_MAT_TOP material of the beam on the top

BEAM_MAT_BOTTOM material of the beam at the bottom

BEAM_MAT_END material of the beam at both ends

BEAM_OUTLINE_LINETYPE line type of the beam outline

BEAM_AXES_LINETYPE line type of the beam axes

BEAM_FILL fill type of the beam

BEAM_FILL_PEN pen of the beam fill

BEAM_SECT_PEN pen of the contours of the beam in section

BEAM_FBGD_PEN pen of the background of the fill of the wall

BEAM_DIRECTION the direction of the beam reference line

BEAM_POSITION absolute coordinates of the beam axis starting point

BEAM_LENGTH_RIGHT length of the beam on the right side of the reference line

BEAM_LENGTH_LEFT length of the beam on the left side of the reference line

BEAM_RIGHT_SURF surface of the beam on the right side of the reference line

BEAM_LEFT_SURF surface of the beam on the left side of the reference line

BEAM_TOP_SURF surface of the top of the beam

BEAM_BOTTOM_SURF surface of the bottom of the beam

BEAM_END_SURF surface of both ends of the beam

BEAM_VOLUME volume of the beam

BEAM_HOLES_NR number of holes in the beam

BEAM_HOLES_SURF total surface of holes in the beam

BEAM_HOLE_EDGE_SURF total surface of hole edges in the beam

BEAM_HOLES_VOLUME total volume of holes in the beam "

This is the list of the element you can handle in an associated label.
Ben Cohen
Enthusiast
thankyou Geoffroy

I shall try and adapt it, it works great for slabs I am sure it will be easy to get it to recognize beams

Regards

Ben
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Ben wrote:
I shall try and adapt it, it works great for slabs I am sure it will be easy to get it to recognize beams
Let's hope so ! If any help needed fruthermore, contact me in PM
Ben Cohen
Enthusiast
whoops, no it is not easy to adapt I have no idea what the scripting does) it looks like I need to learn how to code, something I have tried to avoid, but I think the bottom line is if you want to harness the power of archicad you have to script.

Thnx heaps for your help

Ben
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
PatriciaLe_o
Participant
Hi guys,
I know this is a very old topic, but maybe you could help me...
I'm looking for a label that automatically shows the object component or even better, its properties in plans and in sections. This way everytime I change an object material (so I'd have to change it's property link also) the indications on every drawing would change too.
Do you know how can I get this??
Patricia Leão

AC21 INT Full
MacOSHighSierra
TomWaltz
Participant
It would not be overly difficult to do, but it would require GDL scripting.
Tom Waltz
PatriciaLe_o
Participant
As I supposed... the bad news is that I don't know GDL!! I tryed to open some label to see their scripts and see if I could at least understand something and try changing it... but I couldn't even open one of them because I don't know where the default labels are... Sorry to abuse Tom, but can you help me?
Patricia Leão

AC21 INT Full
MacOSHighSierra