Jump to content

HATCHMAKER lisp for creating hatches from a drawing


designerstuart

Recommended Posts

hi all

 

i just found this lsp here - it is awesome - but i always get the error message:

 

Command: ; error: AutoCAD variable setting rejected: "HPNAME" "FACE"

 

even although it all seems to work fine. should this be a problem later on? thanks to lanny schiele for the code. (and cadtutor 2006 archive for finding it!)

Link to comment
Share on other sites

The system variable HPNAME sets the default hatch pattern. Normally this is ANSI31 if working in imperial units and ANGLE if working in metric units. I don't think the variable is saved with the drawing if I recall correctly but I believe there is a workaround for this by editing the acadlsp.doc file. A search of this site will most likely uncover the solution to the problem.

Link to comment
Share on other sites

oh yes i see near the end of the code there is this bit:

 

(progn
   (setvar "HPNAME" HatchName)
   (princ (strcat "\nHatch pattern '"
    HatchName
    "' is ready to use!"
   )
   )
 )

is this meant to set your new hatch as the default option? i don't need that, but it seems odd to do that anyway..... so i tried deleting this bit of code, but now i get a message saying "unable to create hatch pattern". even although it does create it, and works just fine.

 

please understand i don't have a problem here, just trying to learn! willl keep messing about until i break it...... heh heh

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