Jump to content

Recreating boundary of hatch from command line


Recommended Posts

I can't find how to recreate boundary of hatch using command line only. I can do it from hatchedit, but it requires hitting "recreate boundary" button in the hatch edit window. Any advice what command can be used to make hatchedit command line only?

 

I found it! It's HATCHGENERATEBOUNDARY

 

I can't make command alias HGB to work as HATCHGENERATEBOUNDARY

 

Express Tools gives warning that it's a new command, I can add it, but it doesn't work.

 

lisp (command "HATCHGENERATEBOUNDARY") works fine

Edited by pefi
Found it!!! And more problems..
Link to comment
Share on other sites

There is also BOUNDARY built-in command.

 

To associate shortcuts to commands, please check the acad.pgp file (in user's Support folder).

(startapp "NOTEPAD" (findfile "acad.pgp"))

Link to comment
Share on other sites

Thanks!

I got that HGB shortcurt working - looks like it was problem with reloading acad.pgp - autocad didn't do it, but it was claiming "Session has been updated".

P.S. I'll be fan of startapp and findfile from now on (both are new for me) :-)

Link to comment
Share on other sites

That's true, after you make changes in acad.pgp file you need to re-initiate it either by restarting AutoCAD or by calling the REINIT command.

Link to comment
Share on other sites

I'm using Express Tools aliasedit to make acad.pgp changes, so that shouldn't be required. I just made a test: I added alias "bbb" for "line" and it works without "reinit". Anyway, thanks and next time I'll try "reinit" as well.

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