Choose your top Archicad wishes!

Read more
GDL
About building parametric objects with GDL.
SOLVED!

How do I continue adding?

LeeJaeYoung
Virtuoso

LeeJaeYoung_0-1656912765449.png

How do I continue adding?

LeeJaeYoung_1-1656912884469.png

 

AC27 on window 11
2 ACCEPTED SOLUTIONS

Accepted Solutions
Solution
Barry Kelly
Moderator

Just split the calculation up.

Instead of ...

 

Total = A*A+B*B+C*C+D*D+E*E+F*F

 

You can say ...

 

Total = A*A+B*B+C*C

Total = Total + D*D+E*E+F*F

 

I am too lazy to write out exactly what you had - but I think you will get the idea.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

Solution

Breaking Long Code Lines - Graphisoft Community

 

Thank you  

I solved it by using the "\" character.
And the problem was that it was wrong with us_unitF_areaf, so the "\" character also gave an error, but I solved all the problems by changing it to us_unitF_area. ^^

 

us_area_unit = us_unitA_Area * us_unitA_count + us_unitB_Area * us_unitB_count + us_unitC_Area * us_unitC_count \
+ us_unitD_Area * us_unitD_count + us_unitE_Area * us_unitE_count + us_unitF_Area * us_unitF_count \
+ us_unitG_Area * us_unitG_count + us_unitH_Area * us_unitH_count

AC27 on window 11

View solution in original post

2 REPLIES 2
Solution
Barry Kelly
Moderator

Just split the calculation up.

Instead of ...

 

Total = A*A+B*B+C*C+D*D+E*E+F*F

 

You can say ...

 

Total = A*A+B*B+C*C

Total = Total + D*D+E*E+F*F

 

I am too lazy to write out exactly what you had - but I think you will get the idea.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Solution

Breaking Long Code Lines - Graphisoft Community

 

Thank you  

I solved it by using the "\" character.
And the problem was that it was wrong with us_unitF_areaf, so the "\" character also gave an error, but I solved all the problems by changing it to us_unitF_area. ^^

 

us_area_unit = us_unitA_Area * us_unitA_count + us_unitB_Area * us_unitB_count + us_unitC_Area * us_unitC_count \
+ us_unitD_Area * us_unitD_count + us_unitE_Area * us_unitE_count + us_unitF_Area * us_unitF_count \
+ us_unitG_Area * us_unitG_count + us_unitH_Area * us_unitH_count

AC27 on window 11