I have a lot hatches with no boundary around. i need recreate boundaries of these hatches but it take too late time doing it. i know that is possible but don't know how! plz help me. i am an intermediate in autocad.
I know that. I mean I want do this for many hatches at once because i want save a lot time of recreate hatch boundaries. with hatchedit command you able do this for one hatch. i guess that be done by script writing or that will be possible with a sidelong software.
You will have to customize with Lisp (or a menu macro) using the -HATCHEDIT (note the dash) command.
Customization Discussion area if you need help:
What and see if anyone here has one already written they can share.
Here you go. I just wrote it real quick. It seems to work ok.
Hi, i extended the previous code with these features:
- creates associative boundary
- assigns the same hatch color to the boundary
- creates the boundary on the same layer the hatch entity belongs
How about selecting all the individual hatches, then right click and choose "Generate Boundary"?
Great murray-clack! I love this command
Hi thnak you.. Was wondering how to put new voundary to existing layer "Defpoints"
;;;Recreate-Hatch-Boundaries.lsp written by Murray Clack, November 19, 2010 ;;;This routine will recreate boundaries around multiple selected hatch patterns and makes the patterns associative (prompt "\nHatch-Recreate-Boundaries.lsp loaded, Enter 'Hatch_Recreate_Boundaries' to execute") (defun c:Hatch_Recreate_Boundaries (/ OLDCE SSET CNT OBJ) (setq OLDCE (getvar "cmdecho")) (setvar "cmdecho" 0) (princ "\nSelect Hatch Objects: ") (setq SSET (ssget)) (setq CNT -1) (while (setq OBJ (ssname SSET (setq CNT (1+ CNT)))) (command "-hatchedit" OBJ "b" "p" "y") (command "_change" CNT "P" "LA" "Defpoints" "") ) (setvar "cmdecho" OLDCE) (princ) )