Hello all,
Sorry for the bad english. I was hoping to automatically get multiple closed polylines from excisting hatches. In civil or autocad its of course posibble to use: generate boundary, but i cant seem to find this option in dynamo.
@C.N.v.d.Zwaag try:
Hi @C.N.v.d.Zwaag,
Take a look at the Civil 3D Toolkit package. There is a node to get the polycurve boundary of a hatch. It is not necessary to use Python.
You are getting the hatches within block definitions, which have coordinate systems that do not correspond with the WCS. Are the desired hatches contained within block references or just in model space?
These hatches are located in the model space. so this might cause the problem.
OK, in that case then the only input you should have for âblockâ is the model space block.
Document.Current â Document.ModelSpace
Yes it works. but it only does when the hatches are created by using the select function not the pick points function ![]()
The information in Hatch.ByObject turns these hatches to: hatch(Loop=0) is there any solution to get the hatch object even if the hatch is created while its created by pick point(s)?
Not sure I understand. Can you show an example?
I also encountered the same problem, with the âpick pointsâ method for hatch creation, the âhatch.byobjectâ returns loop=0
Better regenerate the boundary inside AutoCAD and place them into a particular layer, then can use dynamo to pick them up from that layer.
hatch made via picking inside point is a boundary-associated hatch which may not have a ârealâ closed boundary curve. I do not think the dynamo code can rebuild the closed boundary curves (if has holes or multiple closed boundaries) well, better use CAD to do that job.



