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

2d wardrobe symbol

bouhmidage
Advisor

Hi,

My gdl skills are almost equal to 0, 

In the Archicad library there is a 2d symbol ofca rectangle and a cross inside of it,  that can be used for wardreobe  2d representation 

Can someone please script an object that can do this, but instead of a rectangle, the shape can be edited, 

In3d, the object shows the volume with a given thickness, and that volume can be repeated vertically to a given number with a given distance, 

Thanks

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 25
Windows 10 professional
https://www.behance.net/Nuance-Architects
12 REPLIES 12

Lingwisyer
Champion

Edited to what extent? Still a rectangle?

 

And I do not get your 3D point or your 3rd drawing...

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

bouhmidage
Advisor

Here are screenshots to explain better, 

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 25
Windows 10 professional
https://www.behance.net/Nuance-Architects

DGSketcher
Rockstar

Why does a slab not do the job, can you explain how an object would be better? I can't see any major benefit to it being an object, in presentation the doors are likely to be shut or the shelves easily duplicated. For quantities it would just be a single object, where a slab can be easily counted etc.

Apple iMac macOS Monterey / AC26UKI (most recent builds)

bouhmidage
Advisor

an object can be parametric, each wardrobe have a number of shelves that can be edited,also, shelves are combined in a single object that can be handled easily without the need of grouping slabs and managing them all together, 

for quantitiy takeoff, from an object i can extract :

1 - number of shelves, for that specific wardrobe

2- Area of shelves of that specific wardrobe, 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 25
Windows 10 professional
https://www.behance.net/Nuance-Architects

DGSketcher
Rockstar

@bouhmidage This is one for the GDL experts... Extracting the number of shelves is easy, but I'm not aware of an easy way to pull the surface area of a random polygon shape in the standard GDL commands.

Apple iMac macOS Monterey / AC26UKI (most recent builds)

bouhmidage
Advisor

maybe using a composite Slab ( alterning wood and air space ) would be better in this way, 

or using a simple  slab, with 2 properties : shelves count , shelves area ( a formula : shelves count x 1 shelf area ) 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 25
Windows 10 professional
https://www.behance.net/Nuance-Architects

It's not the modelling that is difficult, it's the maths to calculate the area of a random number of points. I'm sure there are some users round here that would solve that in a few minutes but it's beyond my skill set. 

Apple iMac macOS Monterey / AC26UKI (most recent builds)

This is true, i have spent many hours trying to write algorithms to calculate the areas.

however there is a way to calculate the total shelf area, But its more or less a hack.

you set the shelf thickness to .001 only in the schedule which will allow you calculate the material area with basically no thickness.

bouhmidage
Advisor

in this case this can be helpful ! 

the object is used for 2D representation and calculations, no need for the thickness , to represend thikness in section you can just use a thick pen ,

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 25
Windows 10 professional
https://www.behance.net/Nuance-Architects

Oh it would still have its thickness everywhere else just not in scheduling so that you could get an accurate reading of the top surface area of each shelf

sinceV6
Enthusiast

Hello.

 

If I understand correctly what you need, this is relatively easy to achieve, including the area calculation (as long as there are only straight segments). You can use the object I posted here to start. You will need to make a few modifications so you can build the array that models the shelves, but it has what you need to get you going.

 

Hope this helps.

 

Best regards.

Lingwisyer
Champion

That Area of an Irregular Polygon is pretty neat. Why did we not get taught that in school... Pretty neat and uncomplicated math.

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!