entlast on area command

entlast on area command

Anonymous
Not applicable
1,003 Views
4 Replies
Message 1 of 5

entlast on area command

Anonymous
Not applicable

Hi, 

I really don't understand why entlast doesn't work with the area command. The command stops after the boundary command...

 

(defun c:superficie (/ ent center)
(setq center (getpoint "Specify internal point"))
(command "_boundary" center "")
(setq ent (entlast))
(command "_area" "_o" ent)
(princ)
)

0 Likes
Accepted solutions (1)
1,004 Views
4 Replies
Replies (4)
Message 2 of 5

Moshe-A
Mentor
Mentor

maybe you do not need (setq ent (entlast))

 

try this:

(command "_area" "_object" "_last")

 

Moshe

 

0 Likes
Message 3 of 5

Anonymous
Not applicable

it doesn't work...

0 Likes
Message 4 of 5

doaiena
Collaborator
Collaborator
Accepted solution

Try this:

(defun c:test (/ ent center)
(setq center (getpoint "Specify internal point"))
(command "_boundary" center "")
(princ (strcat "\n" (rtos (vlax-get-property (vlax-ename->vla-object (entlast)) 'area) 2 4)))
(princ)
)
0 Likes
Message 5 of 5

john.uhden
Mentor
Mentor

It worked for me in 2002.

John F. Uhden

0 Likes