andyb57J Posted Friday at 10:58 PM Author Posted Friday at 10:58 PM On 3/26/2025 at 8:20 AM, GLAVCVS said: 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. Expand You are exactly right Quote
GLAVCVS Posted Friday at 11:08 PM Posted Friday at 11:08 PM What properties exactly do you need to export? Quote
BIGAL Posted Friday at 11:11 PM Posted Friday at 11:11 PM The acad...10 dwg says its a hatch so what about generating a hatch boundary can then get the area. (load "hatchb") (c:hb) (setq area (vlax-get (vlax-ename->vla-object (entlast)) 'area)) (command "erase" (entlast) "") HatchB.lspFetching info... Quote
SLW210 Posted Saturday at 12:31 PM Posted Saturday at 12:31 PM On 3/28/2025 at 10:58 PM, andyb57J said: It is the hatch that I require to show the area geometry, not the polyline. Expand Did you even bother to click the link I posted that explains the issue? Quote
andyb57J Posted Saturday at 11:56 PM Author Posted Saturday at 11:56 PM (edited) On 3/29/2025 at 12:31 PM, SLW210 said: Did you even bother to click the link I posted that explains the issue? Expand Thankyou and I did but unfortunately that site just continually refreshes. Doesn't give me a chance to read it'. Will keep trying Edited Sunday at 12:12 AM by andyb57J Quote
andyb57J Posted Saturday at 11:58 PM Author Posted Saturday at 11:58 PM (edited) On 3/28/2025 at 11:11 PM, BIGAL said: The acad...10 dwg says its a hatch so what about generating a hatch boundary can then get the area. (load "hatchb") (c:hb) (setq area (vlax-get (vlax-ename->vla-object (entlast)) 'area)) (command "erase" (entlast) "") HatchB.lsp 13.15 kB · 78 downloads Expand Thankyou Edited Sunday at 03:25 AM by andyb57J Quote
andyb57J Posted Sunday at 12:08 AM Author Posted Sunday at 12:08 AM On 3/28/2025 at 11:08 PM, GLAVCVS said: What properties exactly do you need to export? Expand The left is the hatched area as exported from Civil3d using using the EXPORTC3DDRAWING command. As you can see although AutoCAD shows the hatch as "HATCH" there is no geometry (ie. Area or Accumulated Area). The right is the hatched area after I use the GENERATEHATCHBOUNDRY command and rehatch the area. It gives the two geometry fields I require. Purpose is to allow the user without Civil3d to select the hatched areas, (given there could be hundreds of them) and obtain the accumulated area from the drawing without having to manually calculate or use excel spreadsheets. Quote
andyb57J Posted Sunday at 12:31 AM Author Posted Sunday at 12:31 AM (edited) On 3/28/2025 at 11:11 PM, BIGAL said: The acad...10 dwg says its a hatch so what about generating a hatch boundary can then get the area. (load "hatchb") (c:hb) (setq area (vlax-get (vlax-ename->vla-object (entlast)) 'area)) (command "erase" (entlast) "") HatchB.lsp 13.15 kB · 79 downloads Expand Thankyou. This gives what I needed even though area is shown in the command line. Edited Sunday at 03:25 AM by andyb57J Quote
andyb57J Posted Sunday at 07:48 AM Author Posted Sunday at 07:48 AM On 3/29/2025 at 11:58 PM, andyb57J said: Thankyou Expand Thankyou so much. This is generally what I wanted although it still doesnt show the area etc in the properties manager after it recreates the hatch. but I get the information I need from the command line. Again thankyou Quote
SLW210 Posted Sunday at 12:35 PM Posted Sunday at 12:35 PM The link works fine for me. Basically it states the reason the information is missing is due to errors in the creation of the geometry. Quote your hatch was created using a polyline that had overlapping nodes and segments Expand You should have stated you were having trouble accessing the Autodesk Forums. Quote
SLW210 Posted Sunday at 12:37 PM Posted Sunday at 12:37 PM The solution is to recreate the hatch boundary has has been suggested several times. You might can fix them using MAPCLEAN. As I stated the polylines are there, you just need to join and close. Quote
SLW210 Posted Sunday at 12:44 PM Posted Sunday at 12:44 PM I moved your thread to the Civil 3D & LDD Forum since this is a Civil 3D issue, specifically. Quote
andyb57J Posted Sunday at 01:19 PM Author Posted Sunday at 01:19 PM On 3/30/2025 at 12:44 PM, SLW210 said: I moved your thread to the Civil 3D & LDD Forum since this is a Civil 3D issue, specifically. Expand On 3/30/2025 at 12:37 PM, SLW210 said: The solution is to recreate the hatch boundary has has been suggested several times. You might can fix them using MAPCLEAN. As I stated the polylines are there, you just need to join and close. Expand I fully understand what you were saying but joining the polylines for each piece of hatch (where there maybe over 1000 individual hatch areas is just not practical. As I said previously my current process was to use the HATCHGENERATEBOUNDRY command to regenerate the boundaries and then re-hatch them globally. This provided me with the two missing fields in the property manager being the area and accumulated area of all selected hatch which was the information I was try to obtain. What I was hoping to achieve was being able to use the hatch already within the drawing once it has been exported from Civil3d to AutoCAD without having to regenerate the boundaries and hatches which would be on multiple layers. The post by BIGAL yesterday and the lisp he provided supplies the missing data within the command line which is suitable as this data is only required to complete spreadsheets within the drawing o convey information to the user etc. Again I thank you for your input. Quote
BIGAL Posted Sunday at 10:47 PM Posted Sunday at 10:47 PM (edited) It may be your lucky day, like others I have write to Excel direct, so if we convert 1000 hatches we can get area and write to excel. Can you post a sample dwg with say a few hatches not a 1000, and an Excel showing header details, what is required to go where in Excel. Edited Sunday at 10:48 PM by BIGAL Quote
andyb57J Posted Sunday at 11:06 PM Author Posted Sunday at 11:06 PM On 3/30/2025 at 10:47 PM, BIGAL said: It may be your lucky day, like others I have write to Excel direct, so if we convert 1000 hatches we can get area and write to excel. Can you post a sample dwg with say a few hatches not a 1000, and an Excel showing header details, what is required to go where in Excel. Expand Thankyou but you have already given what I need. If I need to output to excel I have tools that allow that but it is not necessary in this instance. Thankyou. Quote
SLW210 Posted Monday at 10:53 AM Posted Monday at 10:53 AM Why wouldn't you just run MAPCLEAN on them and fix them? 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.