Jump to content

Recommended Posts

Posted

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.

Posted

Could you post the code so that we can maybe see what is happening - or at least the hatch part of the code?

Posted

Try this...

 

(setq ent (entsel))
(command "._hatch" "_P" "ANSI31" (getvar "dimscale") "0.0" "_S" ent "")
(princ)

Posted

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

Posted

When i do that Lee Mac I get landed back at the command line and nothing has happened.

Posted

R K Mcswain,s suggestion did the trick.

 

Thanks

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