Results 1 to 10 of 10

Thread: Area Calculation Text - Help Change lisp code

  1. #1
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default 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
    Attached Files Attached Files

  2. #2
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default 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. #3
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default Re: Area Calculation Text - Help Change lisp code

    Any option ?

  4. #4
    I could stop if I wanted to
    Join Date
    2002-08
    Posts
    212
    Login to Give a bone
    0

    Default 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)
    Attached Files Attached Files

  5. #5
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default Re: Area Calculation Text - Help Change lisp code

    Thanks Bruno.Valsecchi

  6. #6
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default 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
    Attached Files Attached Files
    Last edited by Razor; 2022-01-18 at 06:47 PM.

  7. #7
    I could stop if I wanted to
    Join Date
    2002-08
    Posts
    212
    Login to Give a bone
    0

    Default Re: Area Calculation Text - Help Change lisp code

    Quote Originally Posted by Razor View Post
    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!
    Attached Files Attached Files

  8. #8
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default 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. #9
    I could stop if I wanted to
    Join Date
    2002-08
    Posts
    212
    Login to Give a bone
    0

    Default Re: Area Calculation Text - Help Change lisp code

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

  10. #10
    Member
    Join Date
    2015-08
    Posts
    32
    Login to Give a bone
    0

    Default Re: Area Calculation Text - Help Change lisp code

    Thanks you very match Bruno.Valsecchi !!!

Similar Threads

  1. Need a help in modification of lisp. Please update the lisp code as required.
    By brahmanandam.thadikonda762224 in forum AutoLISP
    Replies: 0
    Last Post: 2018-09-20, 04:12 AM
  2. Modification to a lisp (needs to change the lisp code)
    By nanaji130285733687 in forum AutoLISP
    Replies: 3
    Last Post: 2016-11-21, 04:45 AM
  3. How do I change the area calculation to be rounded to a square foot?
    By bradylady in forum AutoCAD Customization
    Replies: 4
    Last Post: 2007-11-20, 11:26 PM
  4. Hatched area calculation
    By alhasanatyk in forum AutoCAD General
    Replies: 2
    Last Post: 2005-03-04, 03:23 PM
  5. Area Calculation Extents Using Room Tag
    By photography67836 in forum Revit Architecture - General
    Replies: 3
    Last Post: 2004-06-03, 06:31 PM

Posting Permissions

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