cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Document & Visualize forum

auto labelling

Ben Cohen
Contributor
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
Contributor
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
Contributor
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
Contributor
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
Newcomer
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

TomWaltz
Newcomer
The easiest way to open a Label object is to place one through the Label Tool, select the Label, then click File > GDL Objects > Open Object....

This will at least open the Object Editor so you can see the scripts.
Tom Waltz

PatriciaLe_o
Participant
Thanks Tom. I opened some but are the text, ID and internal ID labels not able to be opened? And those I could open... I don't know why I thought it could help me... I don't get a clue what's all about! So naïve...
Do you know someone who might have done the label I wanted??
Patricia Leão

AC21 INT Full
MacOSHighSierra

TomWaltz
Newcomer
Text labels are not objects, so they cannot be opened. (They are just text and lines).

I don't remember ever seeing label objects called "ID" or "internal ID", so I cannot say.

I don't know of anyone who has done what you're looking for. It's definitely possible to call out almost any parameter of anything you have placed, but it's not going to be easy (even for those who are more experienced with GDL)
Tom Waltz

PatriciaLe_o
Participant
The ID and internal ID must be then just labels then... They exist on the objects settings, label settings box, as in image. With them I can get automatic label showing the walls ID's for example, but this is completely useless for me! I thought that it would have the same logic, but instead of showing the ID, the label would show the object property...
TomWaltz wrote:
I don't know of anyone who has done what you're looking for. It's definitely possible to call out almost any parameter of anything you have placed, but it's not going to be easy (even for those who are more experienced with GDL)


Thanks anyway for telling me the real situation... I´ll just sit on the corner and cry...
ID things.JPG
Patricia Leão

AC21 INT Full
MacOSHighSierra

TomWaltz
Newcomer
OK, it looks like those are just like the Text labels and are not objects. Sorry!
Tom Waltz

PatriciaLe_o
Participant
Tom! I have to say it... You're reeeeeally FAST!!!!!
Thanks a lot!
Patricia Leão

AC21 INT Full
MacOSHighSierra

Start a new conversation!

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!