andyb57J Posted March 28 Author Posted March 28 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
BIGAL Posted March 28 Posted March 28 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 March 29 Posted March 29 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 March 29 Author Posted March 29 (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 March 30 by andyb57J Quote
andyb57J Posted March 29 Author Posted March 29 (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 March 30 by andyb57J Quote
andyb57J Posted March 30 Author Posted March 30 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 March 30 Author Posted March 30 (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 March 30 by andyb57J Quote
andyb57J Posted March 30 Author Posted March 30 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 March 30 Posted March 30 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 March 30 Posted March 30 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 March 30 Posted March 30 I moved your thread to the Civil 3D & LDD Forum since this is a Civil 3D issue, specifically. Quote
andyb57J Posted March 30 Author Posted March 30 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 March 30 Posted March 30 (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 March 30 by BIGAL Quote
andyb57J Posted March 30 Author Posted March 30 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 March 31 Posted March 31 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.