How many times have you wanted to use Civil3d and all its tools only to be served up some dxf or dwg thats 2D typically out of SDR Map, CivilCad or 12D with nothing but mtext heights and crosses. No blocks with attributes to extract the height data nothing. Track down the original surveyor if still in business? Yeah right. Enter the points manually? No thanks.
Well maybe here is some code to help you get 80% of the way there in no time at all. Some of you may of seen it before as I originally posted it on the Autodesk Civil Community site a few years ago which has since been taken down. The code was pulled together from a couple of the VBA examples that shipped with Autocad and does not work with any Civil3d objects but could be extended to do the Civil3d point creation automatically.
Basically all you have do is :-
Well maybe here is some code to help you get 80% of the way there in no time at all. Some of you may of seen it before as I originally posted it on the Autodesk Civil Community site a few years ago which has since been taken down. The code was pulled together from a couple of the VBA examples that shipped with Autocad and does not work with any Civil3d objects but could be extended to do the Civil3d point creation automatically.
Basically all you have do is :-
- Download the code https://sites.google.com/site/c3dxtreme/home/convert_text_to_point.zip?attredirects=0&d=1
- Figure out the typical x and y offset for the majority objects from the insertion point of the mtext containing the spot height text to the insertion point of the object marking the actual position of the spot height.
- Run the code.
- Enter the x and y offset.
- Enter the text used to represent the decimal character.
- Select the mtexts representing the heights and press enter.
- Bang Basic Autocad points at the correct height are entered at all the spot height insertion points.
- Use Civil3d built in tools to create Civil3d points, add them to your surface and we are in 3d and cooking with gas.
Dude you've spent 2 fking minutes for one point. If you get a survey around 5000 2d Points you are fked up. This method is broken.
ReplyDeleteThere are other ways of working with large data sets with Map or using the Data extraction command in autocad to create a points files. This method came about to solve a particular problem on a particular job so it may not work for everyone.
ReplyDelete