samifox Posted April 22, 2014 Posted April 22, 2014 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 Quote
GP_ Posted April 22, 2014 Posted April 22, 2014 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)) "" ) ) Quote
hmsilva Posted April 22, 2014 Posted April 22, 2014 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 Quote
Tharwat Posted April 22, 2014 Posted April 22, 2014 (if (and (setq s (car (entsel "\n Select hatch :"))) (eq (cdr (assoc 0 (entget s))) "HATCH") ) (...... Quote
Tharwat Posted April 26, 2014 Posted April 26, 2014 Thank you all To come late better than never Quote
samifox Posted April 27, 2014 Author Posted April 27, 2014 hi _.HATCHGENERATEBOUNDARY is unknow command in acad 2010, is there any eqivalent? Quote
Tharwat Posted April 27, 2014 Posted April 27, 2014 hi _.HATCHGENERATEBOUNDARY is unknow command in acad 2010, is there any eqivalent? Maybe -> -hatchedit Quote
samifox Posted April 27, 2014 Author Posted April 27, 2014 (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 Quote
samifox Posted April 27, 2014 Author Posted April 27, 2014 Remove the "" after the variable sel Thanks you very much for the quick respons Tharwat Quote
Tharwat Posted April 27, 2014 Posted April 27, 2014 Thanks you very much for the quick respons Tharwat You're welcome anytime Quote
Recommended Posts
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.