Elevations

Elevations

Anonymous
Not applicable
1,573 Views
18 Replies
Message 1 of 19

Elevations

Anonymous
Not applicable

I'm looking to add elevation figures to existing contour lines

https://www.dropbox.com/s/ldzutpphz5csyjo/1.DWG?dl=0

Any idea how to do this?  Have looked at a video with a line being drawn through the contours on Civil however this file is not a surface.

0 Likes
Accepted solutions (1)
1,574 Views
18 Replies
Replies (18)
Message 2 of 19

ВeekeeCZ
Consultant
Consultant
Accepted solution

With CIVIL it's 2 minutes job. Sure you must create surface first.

 

Labes using C3D

Message 3 of 19

Pointdump
Consultant
Consultant

Aonal,

 

In Vanilla AutoCAD you'd have to do something like this:
http://www.cadforum.cz/cadforum_en/qaID.asp?tip=5671

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 4 of 19

TheCADnoob
Mentor
Mentor

Another method would be to create a line type Per elevation, but that is probably harder than the method @Pointdump suggested.

 

CADnoob linetype elevation.png

CADnoob

EESignature

Message 5 of 19

Anonymous
Not applicable

Thanks for the help and the video. Much appreciated!

Just wanted to ask why you chose to type 100 in the video?

 

I also saw a video someone using Civil to change text into points and then making a 'surface'. This file has points as text however I'm unsure as to how I can make contours from this. My version of Civil and Architecture are both educational. Also my final aim is to then import this file as a toposurface into Revit.

0 Likes
Message 6 of 19

Anonymous
Not applicable

Hi I had a look here but I think I've only got x and y, not z.

0 Likes
Message 7 of 19

Anonymous
Not applicable

I only need an area about 0.5km2 so would it just be a matter of renaming lines?

0 Likes
Message 8 of 19

Pointdump
Consultant
Consultant

Aonal

 

If that text represents an elevation, you can set all the text objects to their respective elevations, in Civil 3D, like this:
http://help.autodesk.com/view/CIV3D/2017/ENU/?guid=GUID-885C0212-ECED-47B9-85CE-5855CFA98720

 

Then you would define your Surface using "Drawing Objects"

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 9 of 19

TheCADnoob
Mentor
Mentor

@Anonymous wrote:

I only need an area about 0.5km2 so would it just be a matter of renaming lines?


No, you would first have to create the 26 or 27 line types using Expresstools and then you would have to select the lines at each of the different elevations and change them to that particular line type. Not impossible but not the most efficient way to get it done. 


CADnoob

EESignature

0 Likes
Message 10 of 19

Pointdump
Consultant
Consultant

Aonal,

 

Oops, I spoke too soon. Your text looks like an elevation number, but it's got a space in it that doesn't allow C3D to set the text value to its elevation.

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 11 of 19

ВeekeeCZ
Consultant
Consultant

@Anonymous wrote:

Thanks for the help and the video. Much appreciated!

Just wanted to ask why you chose to type 100 in the video?

 

I also saw a video someone using Civil to change text into points and then making a 'surface'. This file has points as text however I'm unsure as to how I can make contours from this. My version of Civil and Architecture are both educational. Also my final aim is to then import this file as a toposurface into Revit.


100 is a distance between labels. Actually I used 200 is posted file. Just a value I thought it looks good.

 

Only problem are spaces in front of figures. You need to get rid of those - use Excel. See THIS SCREENCAPTURE

 

Maybe the video is too fast.

- use DE to extract text's x,y and value

- replace space with dot (notepad)

- add two dots in front of text =".."&C2

- replace formulas with it's values (I forgot this step in video at first)

- replace 4 dots with nothing, then 3 dots, then 2 dots

- save csv

- CIVIL, create surface, import file of coords...

Message 12 of 19

Anonymous
Not applicable

That's some speed! I'm going to try this vid when I get to my PC. Thanks heaps!

0 Likes
Message 13 of 19

TerryDotson
Mentor
Mentor

Looks like about a 15 second operation entirely inside Civil3D to me.  I don't understand the need to jump through hoops?

 

Command: Find
1) Replace all "__" with "" (two spaces to nothing, ignore quotes)
2) Replace all "_" with "." (one space to period, ignore quotes)

 

Command: MOVETEXTTOELEVATION (Window them)

 

Then under your surface definition add Drawing Objects, Text, Window them.

 

Message 14 of 19

ВeekeeCZ
Consultant
Consultant

@TerryDotson wrote:

Looks like about a 15 second operation entirely inside Civil3D to me.  I don't understand the need to jump through hoops?

 

Command: Find
1) Replace all "__" with "" (two spaces to nothing, ignore quotes)
2) Replace all "_" with "." (one space to period, ignore quotes)

 

Command: MOVETEXTTOELEVATION (Window them)

 

Then under your surface definition add Drawing Objects, Text, Window them.

 


 

I used approach that covers everything without digging too much. But since...

 

Most of those texts are really with double space in front.

But 22 heights are with single space and negative

And 30 heights are witch single space and number. (probably 10, 11, 14, 16)

 

Your approach is certainly possible... with couple more steps... 

1) "  " to ""

2) " -" to "-"

3) " 10 " to "10."

4) " 11 " to "11."

...

7) check if anything " *" left

8) " to "."

 

One way or another... 

 

I am use to use this way, because I am receiving files with "123 12 " type a lot. 

0 Likes
Message 15 of 19

Pointdump
Consultant
Consultant

Aonal,

 

OK, we're getting there. But the coordinates are in the billions, so I'm guessing that the units are in millimeters. And what coordinate system was this drawing originally created in? Looks like the location is St. Kilda Beach in Melbourne, Australia.

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
Message 16 of 19

Anonymous
Not applicable

This is from the council. Whoever they got to do their survey.

As far as the amount of coordinates it doesn't need to be the entire thing. If it means quicker processing surely half the coordinates could be taken.

Regards.

0 Likes
Message 17 of 19

Pointdump
Consultant
Consultant

Aonal,

 

I wasn't talking about the number of points. I meant the size of the X and Y:
X: 321554004.1730

Y: 5807187224.1910

 

How about a link to your data?

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2025
0 Likes
Message 18 of 19

Anonymous
Not applicable

Unfortunately there is no link.

0 Likes
Message 19 of 19

ВeekeeCZ
Consultant
Consultant

@ВeekeeCZ wrote:

1) "  " to ""

2) " -" to "-"

3) " 10 " to "10."

4) " 11 " to "11."

...

7) check if anything " *" left

8) " to "."

 


I've wrote a simple routine for fixing bad text vaules at once. Then you can use civil's MOVETEXTTOELEVATION command.

Routine will erase spaces from both ends (if needed) and replace middle space with dot.

 

(vl-load-com)

(defun c:FixHeights ( / ss i ed)

  (if (setq ss (ssget '((0 . "*TEXT"))))
    (repeat (setq i (sslength ss))
      (setq ed (entget (ssname ss (setq i (1- i)))))
      (entmod (subst (cons 1 (vl-string-translate " " "." (vl-string-trim " " (cdr (assoc 1 ed)))))
		     (assoc 1 ed)
		     ed))))
  (princ)
)

...then you need to scale the drawing by 0.001, as @Pointdump noticed. Or use -DWGUNITS command to fix wrong units.