Jump to content

Wipeout for pline


vnanhvu

Recommended Posts

I HAVE A LISP CREATE WIPEOUT FOR CIRCLE. BUT I CANT DO THIS WITH PLINE! CAN YOU HELP ME ! THANKS ALL !

(Defun c:WC ()
(command "undo" "be")
(setq luubatdiem (getvar "osmode"))
(setvar "osmode" 0)

(Princ "\nHay chon CIRCLE :")
(setq XX (ssget '((0 . "CIRCLE"))))

(setq L 0)
(setq M (sslength XX))
(while (< L M)
(setq DT (ssname XX L))
(setq DT (entget DT))
(setq TAM (cdr (assoc 10 DT)))
(setq BANKINH (cdr (assoc 40 DT)))

(command ".polygon" "30" TAM "" BANKINH) 
(command ".wipeout" "" "last" "y") 

(setq L (1+ L))
)

(setvar "osmode" luubatdiem)
(command "undo" "end")
(Princ)
) 

Link to comment
Share on other sites

i'm afraid i cannot help you here, but i do like your lisp. did you write it? and may i use it please?

ps. i like the non-english commands: "hay chon CIRCLE:" i am told --- am i learning vietnamese?!

Link to comment
Share on other sites

i'm afraid i cannot help you here, but i do like your lisp. did you write it? and may i use it please?

ps. i like the non-english commands: "hay chon CIRCLE:" i am told --- am i learning vietnamese?!

" hay chon Circle " >>> mean : pick circle. Sorry, im vietnam :D

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