linuxap Posted July 20, 2010 Share Posted July 20, 2010 Hi everyone! I'm kinda new in this LISP world and I'm having some trouble on this project of mine. Here we go: I need a LISP to draw a PLINE and create a text with the PLINE's area. The area is always different and I don't have the points to draw the PLINE, so I have to draw it with the mouse and when I finish I want to have the area value in a text placed inside that PLINE (I can place it with a mouse click, but I don't want to have to write the area). This is the code I already wrote: (defun c:AREA () (command "-layer" "m" "PLINES - Area" "c" "40" "" "") (command "PLINE") (command "AREA" "o" (entlast)) (command "text" "J" "MC" (getvar "viewctr") "0.5" "0" (getvar "area")) (command "move" (entlast) "" (getvar "viewctr") pause) ) I would appreciate any help! Thanks! Quote Link to comment Share on other sites More sharing options...
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.