Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Batch change polylines elevations

81 REPLIES 81
Reply
Message 1 of 82
Anonymous
8977 Views, 81 Replies

Batch change polylines elevations

Hi there,
I have a certain task I need to do and trying to figure out the fastest way to do it. Lets say I have several dozen polylines and I need to add certain elevation to each one. I would use them as contours in the next step for creating surface. Trouble is that I will have to change elevations to the whole set of polylines dozen of times. Is there way to get some sort of table which would list all of my polylines with column stating their elevation and where I would be able to change elevation to whole set of polylines by copy/pasting column with values from excel for instance?
Thanks in advance !
81 REPLIES 81
Message 2 of 82
Anonymous
in reply to: Anonymous

This might help.

http://civilcommunity.autodesk.com/blogs/blog/6/blogpost/7629/
Message 3 of 82
Anonymous
in reply to: Anonymous

Thanks, but unfortunately I don`t have contours at the same intervals. Each is different. So it doesn`t solve this problem. Although I might find it useful in the future.
Message 4 of 82
Anonymous
in reply to: Anonymous

On 5/15/2010 10:12 AM, hrast wrote:

> ... several dozen polylines and I need to add certain elevation ...

Kind of on the fringe but still worth doing (dialog below). You can
sort the table by any field, select a range or random cells, then set
the value or add, subtract, multiple or divide the factor.

If your interested in acquiring this tool, email me at dotson [at]
dotsoft [dot] com.

Terry
--
Never start any job without the right tools!
AutoCAD Add-on Tools at http://www.dotsoft.com
Message 5 of 82
Anonymous
in reply to: Anonymous

A solutionn is highly dependent on what you are trying to do and the data
you have. If you need to move all the polylines vertically by the same
amount, the simple move command will work. If you need to apply a
mathematical formula to the elevations, you can use a map query with the
Alter Properties option. If you need to adjust the elevations of polylines
that meet specific criteria, a combination of the FILTER command or Qselect
and a move command or the properties dialogue may do the job. There may be
other ways such as extrapolating elevations from text elements, etc. You
will need to provide more specific info to come up with a solution.

Terry Dotson's Toolpac has a utility to edit polyline elevations in a
tabular form if you want to consider custom tools.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5117 (20100515) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Message 6 of 82
Anonymous
in reply to: Anonymous

Thanks. I sent you an email.
Message 7 of 82
Anonymous
in reply to: Anonymous

So here are specifics.... I want to create surface of a water face. I am calculating water levels in a river and I have a polyline representing water level in each cross section. I make run on hydraulic software and my results are water levels in each cross section. I get those results as a column of values representing water level elevation in each of cross sections. So my idea is to assign those values to polylines representing water levels in cross sections so I can create water face surface. I need to do that for different hydraulic runs so each time I have to change all of the polyline elevations. They always stay at the same spot. But their elevations change. Hope I explained it better. Thanks.
Message 8 of 82
Anonymous
in reply to: Anonymous

Do you use the Edit Polyline Elevations command? This has got to be less
work then manually creating tables if you are doing this. Modify tab, Design
panel, click the arrow to expand the panel & select Edit Polyline
Elevations. This command will repeat itself. Yes a custom command would be
best but this command is available. It's a shame the interval is not equal
because the Move command would be nice to use.

Is editing the surface out of the question? The Raise/Lower surface command
could save a lot of time if you could make it work instead of pline edits &
remodeling.

John
Message 9 of 82
Anonymous
in reply to: Anonymous

Thanks for commenting John. With use of Edit Polyline Elevations command I have to manually enter new elevation for each of polylines and that is tedious work considering I have around 65 of them. And I hve to change elevation of all of them at least 10 times. So I was hoping for some sort of table where all of my polylines would be listed with their names or numbers in a column and next to that a column with their elevations. So that I could copy water level results and paste them in the elevations column. And then I would just rebuild surface.
Message 10 of 82
Anonymous
in reply to: Anonymous

From what you describe I gather that the polylines representing the water
level along the river are 3D polylines and not 2D contours. Where the 3D
polylines intersect a cross section you want to set the elevation to match
the calculated water surface elevation from your analysis. For each run the
values will change. From the 3D polyline you want to create a Civil 3D
surface.

If I understand the scenario correctly, I am thinking along the lines of
using alignments and profiles for the left and right bank of the river. You
would then create a profile with a vertex at each cross section representing
the water elevation. From these alignemtns and profiles you will create a
feature line that is dynamicly linked and use them to build your surface.
The trick here is to update the profiles with each water model run. There is
a way to import a design profile from a text file but I don't have the
details to explain it.

Let me know if this concept might work for you and we can dig into methods
for updating the profiles.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5118 (20100516) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Message 11 of 82
Anonymous
in reply to: Anonymous

Looking back through the threads I may have misunderstood the current
dataset. I now think that each cross section is a polyline that is set to
the elevation of the water level. These cross section polylines are being
used to create the C3D surface.

If this is the case, the alignment and profile concept should still work
although with a slight modifcation. Since the cross sections must have some
baseline from which their stations are derived, that baseline can be used to
build a corridor. The corridor will consist of the baseline used for cross
section stationing along with a design profile derived from the water
surface elevations computed by the analysis software, a flat assembly that
can target the edge of channel alignments and of course the left and right
channel alignments which are developed by connecting the end points of the
cross sections polylines. As the new cross section water surface elevations
are computed, the baseline profile is updated which in turn updates the
corridor and it's surface model. Again the only missing piece of the puzzle
is getting the water surface elevations into the corridor profile, which
again I am certain can be done.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5118 (20100516) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Message 12 of 82
Anonymous
in reply to: Anonymous

Hi neilw,
Yup, this is right
"Looking back through the threads I may have misunderstood the current
dataset. I now think that each cross section is a polyline that is set to
the elevation of the water level. These cross section polylines are being
used to create the C3D surface."

Thank you for your suggestion, but at the end I end up with problem of getting water surface elevations into the corridor profile which is not easier to solve than assigning set of elevations to polylines.
So here is my whole idea: I have 2D polylines representing position of cross sections and I have terrain model. Idea is to assign elevations to those 2D polylines which would give me "contours" for creating the water surface. One I have that I would create intersecting curve between two surfaces - one being terrain model, and another being water surface. Final result is my ultimate goal - flood line.
So any ideas how to add those elevations to the polylines in the batch mode? because as I mentioned - I need to make 10+ floodlines. And to get each one of them I had to change elevation of all 65 cross section polylines representing waterface.
Message 13 of 82
Anonymous
in reply to: Anonymous

Now that you say you want to generate the floodplain boundaries then we have
more to discuss.

You did not meniton the application you are using for your river analysis.
If you are using HEC-RAS, then C3D has tools to import flood plain
boundaries from HEC RAS and there is no need to find other solutions. That
being said I still think you are better off using an alignment and profile.
The C3D profile data can be imported from a text file such as a space
delimited Station/Elevation format that is generated by your hydrology
software.

The workflow would be this:

1) Using the baseline alignment that you used to station your cross
sections, import the water surface profile from the text output file
generated by your river analysis software

2) Create a linked feature line from the alignment and profile

3) Use gradings at 0% slope from this profiled feature line and target the
existing terrain on both sides of the featureline. The resulting daylight
lines will be your floodplain boundaries.

You would not need to create a surface at all with this approach if your
only goal is to get the floodplain boundaries.

I suggest that you preserve each water surface profile vs. over writing a
single profile with each study output. That way you can generate a feature
line and grading for each profile and have all your floodplains available
simultaneously.

I have attached a screen capture showing the proceedure for creating a
profile from a text file.
Message 14 of 82
Anonymous
in reply to: Anonymous

Hi neilw,
Yeah I know about HEC-RAS C3D tools and have been using them. Unfortunately in this case I am using DHI Mike 11 river analysis software and things get more complicated with that. However I think your second approach would work. I haven`t thought of that solution. I think I like it better than mine. I will try it out and let you know how it worked. Thanks !
Message 15 of 82
Anonymous
in reply to: Anonymous

Hi again,
Unfortunately once I gotback to my problem I realized that the method you suggested wouldn`t give as accurate results in my case. Reason being is that my cross sections are not straight cut but "broken". I am attaching screen shot so you can see what I am talking about. Grading would spread on both sides perpendicular to alignment. However cross sections are not perpendicular in their whole length. So method with contours would be more precise. Any suggestions?
Message 16 of 82
Anonymous
in reply to: Anonymous

I was afraid the alignment would not fit your sections. The next solution
that I would use is qute a bit more convolulted but if you know Map it is
not difficult.

You would use Map to link the cross section polylines to a spreadsheet
containing the cross section identifier and elevations from the model. Then
using a Map query with alter properties you can assign the elevations to the
polylines.

The workflow would be as follows:

Create an object data table for the cross section identifiers and assign
each cross section polyline an ID attribute via the Object data table.

Create a spreadsheet containing the output from your hydrology software and
link the cross sections to the spreadsheet.

Define a map query to assign the elevations to the polylines from the linked
table.

Add them to a surface as contours or breaklines.

If you are not familiar with Map it may be a bit much to absorb though. In
the meanwhile perhaps I or another user will come up with an easier
approach.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5122 (20100517) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Message 17 of 82
Anonymous
in reply to: Anonymous

Thanks neilw. Unfortunately I am not familliar with Map. But will try to figure it out by what you wrote. Thanks again !
Message 18 of 82
Anonymous
in reply to: Anonymous

I have been worknig on a file to demonstrate how it works but I've run into
a snag. I'll get back to this thread once I get it resolved.
Message 19 of 82
Anonymous
in reply to: Anonymous

Thanks so much.
Message 20 of 82
Anonymous
in reply to: Anonymous

I have an answer from ADESK on the snag I encountered in the workflow.
Ideally we wanted to create links to the ASCII text files output by your
river modeling software, but Map does not work well with CSV (comma
seperated values) links. If it did we could create links to your output
files and anytime you overwrote them the polylines could be easily updated
with the new values. However due to Map's limitations the process will
require that you convert the ASCII text output files to Microsoft Access
(.mdb) format so it will require a few more steps each time you revise your
data.

If it's not too late and you want to pursue this I'll outline the procedure
for you, but it does require you to be familiar with MS Acces. I'll put
together a video showing the results when I can get to it.

What version of C3D are you using and are you familiar with and have MS
Access available to use?

Neil



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5136 (20100521) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report