Jump to content

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


Recommended Posts

Posted

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

 

Which type of unit fixed it..

  • 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

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

 

Which type of unit u fixed..

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

Posted

I don't have sources code. I get this fas file from my senior.

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

Posted

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

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

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