Jump to content

Get area of polyline detail of square feet, square metre, acres


Recommended Posts

Posted

Some one help me to make lsp for get area. It should contain detail of square feet, square metre, acres

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

  • dgp123

    14

  • BIGAL

    3

  • tombu

    2

  • Dadgad

    2

Top Posters In This Topic

Posted Images

Posted

You realise you posted in the CHAT sub-forum? You'll get more attention in one of the LISP sub-forums, especially on a week-end.

Posted

You're very welcome.

 

But don't thank me, thank Lee!

 

While you are on Lee's website, I would be amazed if you can't find a bunch of others you would enjoy using.

One of my personal favorites is LAYER DIRECTOR.

 

Thanks Lee! :beer:

Posted

I got this .fas file from ESURVERYING website.

 

When select a polygon using DAREA command will give the area of polygon in 6 different measurement units viz. square feet, square meter, square inches, square yard, acres and hectares.

 

THANKS IN ADVANCE......

darea.jpg

perfect.jpg

DAREA.zip

Posted

I would contact the source of the code for trouble shooting.

 

Or maybe it is working and the rectangle is too small.

Posted

I try it for large rectangle but the answers is 0.0000

Posted

Have you verified the area by getting it in another fashion?

Posted

Bro check it --- Forum -AutoCAD - AutoCAD 2D Drafting, Object Properties & Interface - DAREA.fas is not working. Need help

Posted (edited)

You can not get into a FAS its compiled so if it does not work can not help.

 

here is a simple start

 

(vl-load-com)
(defun c:plinearea ( / obj)
(setq obj (vlax-ename->vla-object (car (entsel "\nPick Pline"))))
(setq plarea (vla-get-area obj))
(alert (strcat "Area is sq feet " (rtos plarea 2 2) "\n\n" "Area is sq m" (rtos (* plarea 0.09290304) 2 2)))
)

Edited by BIGAL
vl-load-com added
Posted

Finally I got the perfect working fas file

Posted

Can you share how you solved it in case someone else has this problem?

Posted
Please check the code. And Thanks for your response.

 

hi all,

 

Interesting post. i have tried your ".fas" code. i have created 5mx10m rectangle. and getting area as 50 sq.m. but square feet point of vile showing as 4.64 sft instead of 538.195sft. remaining units i am not tested. and another request is Place the area text with different units is best instead of dialog box results. we will wait for this version also.

 

Best regards.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...