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

How do I continue adding?

LeeJaeYoung
Advisor

LeeJaeYoung_0-1656912765449.png

How do I continue adding?

LeeJaeYoung_1-1656912884469.png

 

AC25 5010 on window 11
2 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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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

AC25 5010 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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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

AC25 5010 on window 11

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!