We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Calculation of square meters of several elements.

Anonymous
Not applicable
Are there anyone here who can help tell me how to get an item list.

As you can see in the attachment, there are several types of elments and then I need the square meters of each type of element.
Elements can come up several times, then it's the total I need of that type of item.

To explain it a little more, imagine that it's the same as a tiles floor that I need to find square meters on each tiles.

I hope there is someone who can help me with this
And gladly, GDL codes because I'm not so good at GDL yet.

PS! My script is something that's not right but it works the way I want it.

Laurits
9 REPLIES 9
poco2013
Mentor
Not sure I understand your question entirely --- BUT

You already have the parameters of Area and Area2 within you object. Assuming that you complete those calculations, as appropriate, then, within a schedule you would just select the library part field and under that, select your object which would then list all your parameters for that library object. Add the appropriate parameters (areas) to the schedule fields and do a sum of that field if needed.

Is there something else?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
Anonymous
Not applicable
poco2013 wrote:
Not sure I understand your question entirely --- BUT

You already have the parameters of Area and Area2 within you object. Assuming that you complete those calculations, as appropriate, then, within a schedule you would just select the library part field and under that, select your object which would then list all your parameters for that library object. Add the appropriate parameters (areas) to the schedule fields and do a sum of that field if needed.

Is there something else?
Thanks for the answer poco2013

Yes, I know that it's possible but that's not exactly what I'm looking for here.
What I'm needing to get out to a List Schemes how many square meters it's separated by Plates # 1 and 2 in this case.

See picture and see what I mean.

Laurits
poco2013
Mentor
Laurits wrote:
how many square meters it's separated by Plates # 1 and 2 in this case. --????
Laurits
You may want to explain further as the summary of areas is somewhat routine. Can you further elaborate so that someone else might understand the problem and offer help?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
Anonymous
Not applicable
poco2013 wrote:
Laurits wrote:
how many square meters it's separated by Plates # 1 and 2 in this case. --????
Laurits
You may want to explain further as the summary of areas is somewhat routine. Can you further elaborate so that someone else might understand the problem and offer help?
As you can see from the drawing, I have 3 types of elements 1:40, 1:60 and 1: 100 angles on top of the plates.

At 1:40 there are 2 plates. Plate # 1 starts at 20mm up to 50mm, Plate # 2 is also from 50mm up to 80mm.

At 1:60 there are 2 plates. Plate # 1 starts at 20mm up to 40mm, Plate # 2 is also from 40mm up to 60mm.

At 1: 100 there are 0 plates. Plate # 1 starts at 0mm up to 12mm Plate # 2 from 12mm up to 24mm Plate # 3 from 24mm up to 36mm Plate # 4 from 36mm up to 48mm Plate # 5 from 48mm up to 60mm Plate # 6 from 60 mm up to 72 mm.


That they can be stretched out with a hotspot in length and on the width is fixed.
And then there is an array that creates multicopy with a hotsopt in the width direction.
Then here you can get a lot of copies of each of the discs that are used depending on how far you extend the hotspot on the width.

So to my problem is how I can make a Component Schedules where I can figure out how many square meters of each of the copies of the plates.

Laurits
Anonymous
Not applicable
Hi again folks

Is there nobody who knows where I can get this or is that you do not understand what I'm looking for.

I'm sorry for my bad English
Anonymous
Not applicable
Hello again

Are you someone who can be so kind to help me when I get stuck.
I really need to get a report on the square meters on this.
If not possible, this is useless.

Laurits
sinceV6
Advocate
Hi.
You would usually use your master script to define common variables, options, arrays, etc. and make most common calculations. All these you then use in each of the other scripts.

If you don't want to arrange everything again, you could use, in your master or parameter scripts, the same kind of loops you have in the 3D script to know how many pieces or the size or calculated area of each type of panel, then give the result to your parameters so you can then create a schedule.

This is kind of what I meant when I said I would rearrange some things in the scripts.

Hope that gives a direction to find the solution.
Best regards.
Anonymous
Not applicable
Hi sinceV6
You're my rescue angel again sinceV6.

I will try your proposal to see what I can get out of it.
As you can see, I'm not an expert on this with GDL script but I'm just trying a little to get something I can use in my work to make it a bit faster.

I'll be back with a comment when I've gotten something.

Laurits
sinceV6
Advocate

It is awesome that you are trying to code things by yourself. It is little smart objects like these that make work a lot faster. Once you get a couple of objects going, you'll start to get the hang of how to give code a certain structure, and it'll just get easier.

Just try to use the same logic that was used to build the 3D plates, but to know how many of each are created and calculate area based on that.

Best regards.