Using hatchgenerateboundary

Using hatchgenerateboundary

Anonymous
Not applicable
2,010 Views
5 Replies
Message 1 of 6

Using hatchgenerateboundary

Anonymous
Not applicable

I have a large number of nonassociated hatches on separate auotcad layers. When I use HATCHGENERATEBOUNDARY, the polylines generated do not retain the original hatch layer names. Is there a way to ensure that this happens? 

When I select all the hatches in the drawing and then run the command, it creates polylines on a single layer and not the individual hatch layers as I would have expected.

0 Likes
2,011 Views
5 Replies
Replies (5)
Message 2 of 6

imadHabash
Mentor
Mentor

Hi,

>> it creates polylines on a single layer and not the individual hatch layers as I would have expected.

It depends on your current layer name . 

 

Imad Habash

EESignature

0 Likes
Message 3 of 6

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> creates polylines on a single layer and not the individual

>> hatch layers as I would have expected

They are generated on the current layer and this was never different, why are you expecting that the boundaries generated on the hatch-layer? If you had this previously then you most probably have used a tool which did this.

 

It could be an idea for sending this to AutoCAD using the >>>product feedback site<<<

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 4 of 6

ВeekeeCZ
Consultant
Consultant
If you have just a few layers just isolate each layer first and run hatchreg... for each. Else you would need to use some custom routine, a LISP.
0 Likes
Message 5 of 6

Anonymous
Not applicable
Ok so I would have expected that a global command like hatchgenerateboundary would create a boundary associated with the hatch layer by hatch layer name. It just seems logical although I must admit I've little experience with AutoCAD and that my background is GIS. So my main issue is being able to convert nonassociative hatches into something GIS can use and in general designers don't seem to create hatch boundaries which make the conversion process tedious.
0 Likes
Message 6 of 6

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> create a boundary associated with the hatch layer by

>> hatch layer name. It just seems logical 

Not really, if you look how hatches are generated ... they are also not automatically created on the layer of the surrounding object (even more complex, the objects building the border could be sitting on multiple layers).

AutoCAD generally creates objects always on the active layer. AutoCAD verticals do this different for their types of objects, also AutoCAD has a special setting e.g. for dimension to have a layer predefined, but these are exceptions).

 

>> So my main issue is being able to convert nonassociative

>> hatches into something GIS

Take care! Using this command to create polylines is not going to work ... if hatches have islands then you get multiple polylines, but as polylines you don't know any more which ones are outer borders and which ones are island borders.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes