# Thread: Area Calculation Text - Help Change lisp code

1. Login to Give a bone

## Area Calculation Text - Help Change lisp code

Hi i am using this code to calculate areas for multy triangles and rectangles. I need a change to this code. I want to replace the talbe with analicic calculation mtext like this :

Code:
```E1 = 1/2 x 59.32 x 102.36 = 3035.99 sq.m
E2 = 1/2 x 16.67 x 85.95 = 716.39 sq.m
E3 = 73.39 x 97.33 = 7143.04 sq.m
Total = 3035.99 + 716.39 + 7143.04 = 10895.42 sq.m```
and insert the calculation texts in layout with txt size 2.5

Thanks

2. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

I am currently working with the area plans, and that last tip was much needed.Can any one help?

Thanks

3. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Any option ?

4. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Without changing the code, but making it simpler? (less assembly of codes coming from right and left)

5. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Thanks Bruno.Valsecchi

6. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Hi Bruno. I have a litle problem with the results of the lisp code. Calculate the area using area command and when i do the maths with the export text the area is not the same.

1) Is it possible to calculate the area using the export dimensions?
2) After some tests i see when i have triangles that the height of triangle some times is out of the triange. Is possible to use the longest side to calculate the height distanse ?

Thanks

7. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Originally Posted by Razor
Hi Bruno. I have a litle problem with the results of the lisp code. Calculate the area using area command and when i do the maths with the export text the area is not the same.

1) Is it possible to calculate the area using the export dimensions?
2) After some tests i see when i have triangles that the height of triangle some times is out of the triange. Is possible to use the longest side to calculate the height distanse ?

Thanks
Very good point, it's a mistake on my part sorry.
New lisp code, good use!

8. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Hi Bruno.. Thaks for the code. But Is it possible to calculate the area using the export dimensions? I check the calculatios with my calculator and i find difference. All the calculations must be done with two decimals because the autocad area use more.

Thanks

9. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

If this is your wish, then with rounding...

10. Login to Give a bone

## Re: Area Calculation Text - Help Change lisp code

Thanks you very match Bruno.Valsecchi !!!

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•