Jump to content

command issues


samifox

Recommended Posts

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

Link to comment
Share on other sites

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)) "" )
)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

(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 :?

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