Jump to content

Recommended Posts

Posted

hi

 

im trying to create a wipeout beneate a hatch, i cant figure out what im doing wrong?

 

(defun C:TEST(/ ent)
 (setq ent (entget(car(entsel))))
 
 (command "HATCHGENERATEBOUNDARY" (cdr (assoc -1 ent)) "")
 (command "WIPEOUT" "p" "" (entlast) "" "y" "")
 (command "DRAWORDER" (entlast) "u"  "" (cdr (assoc -1 ent))"")
 )

 

thanks

Shay

Posted

Try:

 

(defun C:TEST(/ ent)
 (setq ent (entget(car(entsel))))

 (command "HATCHGENERATEBOUNDARY" (cdr (assoc -1 ent)) "")
 (command "WIPEOUT" "p" "y")
 (command "DRAWORDER" (entlast) "" "u"  (cdr (assoc -1 ent)) "" )
)

Posted

Another

(defun C:TEST (/ sel)
 (setq sel (entsel))
 (command "_.HATCHGENERATEBOUNDARY" sel "")
 (if (= (getvar 'PICKFIRST) 1)
   (command "_.WIPEOUT" "p" "y")
   (command "_.WIPEOUT" "p" (entlast) "y")
 )
 (command "_.DRAWORDER" (entlast) "" "_u" sel "")
 (princ)
)

HTH

Henrique

Posted
(if (and (setq s (car (entsel "\n Select hatch :")))
        (eq (cdr (assoc 0 (entget s))) "HATCH")
        )
 (......

Posted

hi

 

_.HATCHGENERATEBOUNDARY is unknow command in acad 2010, is there any eqivalent?

Posted
hi

 

_.HATCHGENERATEBOUNDARY is unknow command in acad 2010, is there any eqivalent?

 

Maybe -> -hatchedit

Posted

(command "-hatchedit" sel "" "b" "" "p" "" "n" "") give a very minimal options to select from (there is "create boundry") when i access this command from acad, but from lisp is not there,

 

wierd :?

Posted
Remove the "" after the variable sel

 

Thanks you very much for the quick respons Tharwat :)

Posted
Thanks you very much for the quick respons Tharwat :)

You're welcome anytime :)

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