Nikon Posted 5 hours ago Posted 5 hours ago (edited) Hi, everybody. It is necessary to perform hatch, regardless of the previous type of hatching. The first code issues superfluous requests. The second code performs the hatch using the previous type, not the one specified in the code. (defun c:HatchUser ( / ss) (setq ss (ssget)) (if ss (progn (command "_-BHATCH" "_Properties" "_User" "0" "_Double" "_Yes" "200" "_S" ss "") ) ) (princ) ) ; *********** (defun c:HatchUser1 ( / ss) (setq ss (ssget)) (if ss (progn (command "_.-BHATCH" "_User" "_Double" "_Yes" "0" "200" "_S" ss "" "") ) ) (princ) ) HatchUserdwg.dwg Edited 3 hours ago by Nikon Quote
BIGAL Posted 1 hour ago Posted 1 hour ago Maybe use (setvar 'hpname "User") in code, sets the pattern name. 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.