andyb57J Posted March 21 Posted March 21 I have a civil3d (2025) file where parcels of different types are hachured using parameters within the parcel styles When I export the civil3d file to either a dfx or dwg the generated hatch is not bounded and as such the area and accumulated area values are missing from the hatch properties. This is information is needed by others who do not use civil3d. Is there a way to add this information to the hatch when exporting the file or once it has been exported without having to recreate the hatch either by lisp or otherwise Quote
BIGAL Posted Saturday at 03:32 AM Posted Saturday at 03:32 AM Try this https://help.autodesk.com/view/CIV3D/2025/ENU/?guid=GUID-61D485EE-F82B-464F-AC54-E4B56445134C Quote
GLAVCVS Posted Sunday at 09:59 AM Posted Sunday at 09:59 AM (edited) Hi @andyb57J I think you haven't received any further answers so far because we're not sure we understand you. In principle, I believe that any drawing edited in Civil 3D and opened in a standard version of AutoCAD should contain the same information for a 'hatch' object To check if this is the case, do the following: -In Civil 3D, type '(entget (car (entsel)))' in the command line, press ENTER, and then select one of those hatches. Save the information returned by AutoCAD. -Start the standard version of AutoCAD, open the same drawing, type the same code above in the command line, and press ENTER. The result should be exactly the same in both cases. If not, send us a screenshot of both results. Edited Sunday at 02:02 PM by GLAVCVS Quote
andyb57J Posted Sunday at 10:45 PM Author Posted Sunday at 10:45 PM (edited) The parcel is hatchured from the Style Dropdown. From the Civil3d files From the Autocad file after exporting via ExportC3ddrawing command Hope this helps. Dwg files attached. At present out workaround is to copy the hatch areas to a new drawing then create new hatch boundaries. Then delete the existing hatch and then hatch the remaining hatch boundaries to get the area and accumulated areas geometry information into properties. Although this is easy enough given that each lot type is on its own layer it would be great if we could get that information when it is converted from a civil3d drawing to an Autocad drawing. Drawing10.dwgFetching info... ACAD-Drawing10-Model.dwgFetching info... Edited Sunday at 10:54 PM by andyb57J Quote
marko_ribar Posted Monday at 11:07 AM Posted Monday at 11:07 AM Maybe all you need is creation of associative hatch boundary... If you have newer versions of AutoCAD, there is command HATCHGENERATEBOUNDARY... If you don't have newer versions of AutoCAD, you can try to generate boundary through HATCHEDIT command and use button called Recreate hatch boundary... Quote
GLAVCVS Posted Monday at 11:15 AM Posted Monday at 11:15 AM It seems that the object in Civil 3D isn't exactly a standard hatch. When opened with a standard version of AutoCAD, it "translates" it into a standard hatch. Because of this, the original object's properties are lost. I think this can only be remedied with some code. And you'd have to consider whether to do it from Civil 3D or in standard AutoCAD. Anyway, wait a bit: someone might know a better solution. Quote
andyb57J Posted Monday at 12:11 PM Author Posted Monday at 12:11 PM I am happy if its done in Autocad as that is generally what most users use and I think would be easier. Even a lisp routine that allows you to globally select the "HATCH" in the AutoCAD drawing and then generates the boundary around each piece of hatch. Then asks the user to select the existing hatch and sets the layer as current before deleting all "HATCH" and the looping through creating the new hatch based on the layer style. I hope this makes sense. Generally automate what I already do in the form of a lisp. Quote
andyb57J Posted Monday at 12:12 PM Author Posted Monday at 12:12 PM On 3/24/2025 at 11:07 AM, marko_ribar said: Maybe all you need is creation of associative hatch boundary... If you have newer versions of AutoCAD, there is command HATCHGENERATEBOUNDARY... If you don't have newer versions of AutoCAD, you can try to generate boundary through HATCHEDIT command and use button called Recreate hatch boundary... Expand I use the HATCHGENERATEBOUNDARY command Quote
GLAVCVS Posted Monday at 12:22 PM Posted Monday at 12:22 PM On 3/24/2025 at 12:11 PM, andyb57J said: I am happy if its done in Autocad as that is generally what most users use and I think would be easier. Even a lisp routine that allows you to globally select the "HATCH" in the AutoCAD drawing and then generates the boundary around each piece of hatch. Then asks the user to select the existing hatch and sets the layer as current before deleting all "HATCH" and the looping through creating the new hatch based on the layer style. I hope this makes sense. Generally automate what I already do in the form of a lisp. Expand Just an idea: you could write a lisp that would associate the information you need with the object and another lisp for the standard versions of AutoCAD that would be loaded and executed at the start of each drawing (from "acad####.lsp", for example), that would check if there is any hatch object with associated information and that would carry out, if necessary, the appropriate tasks. Quote
BIGAL Posted Monday at 10:22 PM Posted Monday at 10:22 PM A big answer Drawing10 it is not a hatch its a AECC_PARCEL. My Bricscad identifies it as that. EntityName (RO) = "AeccDbFace" The ACAD....10 reveals proxy objects but in Bricscad its area is 18920.779, checked with lisp code can get Area. You need to maybe get the "Proxy object enabler" for Autocad maybe that will allow area. Quote
andyb57J Posted Tuesday at 11:13 PM Author Posted Tuesday at 11:13 PM On 3/24/2025 at 10:22 PM, BIGAL said: A big answer Drawing10 it is not a hatch its a AECC_PARCEL. My Bricscad identifies it as that. EntityName (RO) = "AeccDbFace" The ACAD....10 reveals proxy objects but in Bricscad its area is 18920.779, checked with lisp code can get Area. You need to maybe get the "Proxy object enabler" for Autocad maybe that will allow area. Expand Unfortunately this doesnt work either. Quote
BIGAL Posted Tuesday at 11:48 PM Posted Tuesday at 11:48 PM When you click on the Acad...10 dwg what does property return as an object ? Bricscad its hatch. copy this to command line (entget (car (entsel "\nPick object"))) I get Pick object((-1 . <Entity name: 405fe300>) (0 . "HATCH") Quote
andyb57J Posted 20 hours ago Author Posted 20 hours ago On 3/25/2025 at 11:48 PM, BIGAL said: When you click on the Acad...10 dwg what does property return as an object ? Bricscad its hatch. copy this to command line (entget (car (entsel "\nPick object"))) I get Pick object((-1 . <Entity name: 405fe300>) (0 . "HATCH") Expand This was done previously and results are as previous entry. Autocad shows it as a hatch but there is no area or geometry associated with it. As per GLAVCVS Civil 3d does not identify it as a hatch - It is a fill and does not have any geometry associated with it. Quote
GLAVCVS Posted 18 hours ago Posted 18 hours ago (edited) I don't have Civil3D at the moment, so I can't verify this. But it seems that the "AECC_PARCEL" object must be a container object for other objects, the main one of which should be a hatch. Perhaps someone with Civil3D can confirm this. Edited 18 hours ago by GLAVCVS Quote
SLW210 Posted 15 hours ago Posted 15 hours ago Most likely a problem with your boundary or other geometry. Solved: Hatch Geometry area... sometimes - Autodesk Community The hatch you posted in the ACAD-Drawing 10-Model has a boundary made up of several separate polylines, you could join them and get a closed polyline boundary. Quote
Recommended Posts
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.