Jump to content

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


dgp123

Recommended Posts

  • 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

My dwg unit is inches and I checked with my unit converter every unit is fine...

 

Which type of unit u fixed..

 

my drawing unit is in meters. please fix and provide as text at drawing instead of dialog box. because dialog box is temporary.

Link to comment
Share on other sites

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

 

here is a simple start

 

(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)))
)

 

Only way I'd consider. I'd never download any type of compiled code onto my work PC. Not worth the risk of loosing my job over what could be a virus especially for such a simple piece of code. No way to modify it for whatever units you're using either.

Link to comment
Share on other sites

Bro this plinearea code not working. I save this code as lsp and load via appload. Not working....

 

Add

(vl-load-com)

to the code to load visual lisp if you're getting an error. Most lispers have it set to load automatically when AutoCAD opens. All of these depend on your unit settings if the values are wrong.

Link to comment
Share on other sites

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...