woodman78 Posted September 30, 2009 Posted September 30, 2009 i am setting up a lisp to run the hatch command. I want it to allow me to select objects not by internal point. The lisp I have works but i get error **function cancelled** in the command line. Can anyone help??? Thanks. Quote
Lee Mac Posted September 30, 2009 Posted September 30, 2009 Could you post the code so that we can maybe see what is happening - or at least the hatch part of the code? Quote
rkmcswain Posted September 30, 2009 Posted September 30, 2009 Try this... (setq ent (entsel)) (command "._hatch" "_P" "ANSI31" (getvar "dimscale") "0.0" "_S" ent "") (princ) Quote
woodman78 Posted September 30, 2009 Author Posted September 30, 2009 sorry my bad. i meant to post the code. (defun c:Excav10( / cla) (command "_.-layer" "_N" "CCC_LAYOUT_Proposed_Footpath_Hatch" "_M" "CCC_LAYOUT_Proposed_Footpath_Hatch" "_C" "_T" "0,179,179" "CCC_LAYOUT_Proposed_Footpath_Hatch" "" ) (command "_-color" "bylayer") ;(setvar "cmdecho" 0) ;(command "hpgaptol" 0.5) ;(command "HPNAME" "solid") ;(graphscr) (command "-hatch" "s" "pause" "") (setvar "cmdecho" 1) (princ) ) Quote
Lee Mac Posted September 30, 2009 Posted September 30, 2009 take the pause out of quotation marks for one Quote
woodman78 Posted September 30, 2009 Author Posted September 30, 2009 When i do that Lee Mac I get landed back at the command line and nothing has happened. Quote
Lee Mac Posted September 30, 2009 Posted September 30, 2009 The pause is pausing for user input. Quote
woodman78 Posted September 30, 2009 Author Posted September 30, 2009 R K Mcswain,s suggestion did the trick. Thanks 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.