Archicad C++ API
About Archicad add-on development using the C++ API.

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
Guru

Edited to what extent? Still a rectangle?

 

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

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
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
Legend

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 Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
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
Legend

@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 Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
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 Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)

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