AutoCAD Civil 3D :: Sample And Extract Elevation From A Surface
Feb 27, 2012
I just got a topographic map of some land we plan to develope, and would like to work out some preliminary earthmoving analysis.
I would like to sample that surface at very specific locations -- I could produce the required points in PNE format.
What I want is to find the way to: (1) import those points, (2) sample elevation from the surface at those locations, and (3) export the 3D poitns in PNEZ format.
View 2 Replies
ADVERTISEMENT
Mar 18, 2013
I have an Object ARX application where I consult a TIN surface for elevation samples. I need several thousand point's elevations in a straight line.
I have the surface declared as
CComQIPtr<IAeccTinSurface> mTINSurface;
And given coordinates (x,y) I can easily and successfully find the elevation using
//x and y are given double valuesdouble z;HRESULT result = mTINSurface->FindElevationAtXY(x, y, &z);
//+error treatment
This, however, takes a lot of time when I have to do it thousands of times inside a for-loop varying the x-coordinate. Reading the documentation on IAeccSurface I found the Sample Elevation method (I don't paste the link here, it's pointing to 'invalid HTML' and forbidding me to post). In the hopes of improving performance, this is what I tried:
SAFEARRAY* safearray;SAFEARRAYBOUND bound;bound.lLbound = 0; //zero-basedbound.cElements = number_elements; //does this define the number of samples?safearray = SafeArrayCreate(VT_I8, 1, &bound); //zero based, safe array of X,Y,Z doubles
CComVariant variant(safearray);variant.vt = VT_ARRAY | VT_I8; //type: safe array of doubleHRESULT result = mTINSurface->SampleElevations(x,y,n_x,y,&variant); //sample in line
This is what I took from the description given by the documentation; that the last parameter should be a "VARIANT containing a zero based, one dimensional safe array of X, Y, Z values. ". My problem is that 'result' is always E_FAIL - and I'm not sure why - and 'safe array' is filled with zeroes.
I have the following questions:
Am I passing the right parameters? I have little experience with VARIANT and SAFE ARRAY types.Does the entire Sample Elevation operation fails whenever a single elevation cannot be found? (I have sections without elevation information in the surface - I'm sure the first point (x,y) DOES have a valid elevation value, though). Would I really see performance gain by using Sample Elevation instead of multiple FindElevationAtXY, as I assumed?When calling Sample Elevation, I'm not entirely sure how the sampling is considered. Does the method recognize the size of the array and divides the distance between the initial point and ending point equally, resulting in that many samples?
View 3 Replies
View Related
Mar 19, 2013
I have an ObjectARX application where I consult a TIN surface for elevation samples. I need several thousand point's elevations in a straight line. Initially, I was making thousands of FindElevationAtXY calls, but that proved to be somewhat slow, so I searched and found SampleElevation in the documentation and was hoping it'd provide me with performance gain.
I had some problems, due to my inexperience with VARIANT and SAFEARRAY types, but now I get what seems to be correct results when passing an initial and ending point. Here's a code snippet of my call, which succeeds and gives me the correct elevations;
HRESULT result = mTINSurface->SampleElevations(x,y,n_x,y,&variant); //sample in line
Note that I'm sampling a line along the x-axis (y constant).
The problem i'm facing is that the number of samples along the line provided by the method is far smaller than I expected. I need thousands of points along this line (in fact, I want all points with exact round x-coordinates), and no matter what size I provide for the safe array of doubles given by 'variant', I get only a few hundred points. Furthermore, I've checked and the offset between any two points in the resulting sample is not constant, nor are they the same when I sample a different line (increase y coordinate by one).
Here are my questions: Why are these points chosen by the method - I mean, are they chosen because they are somehow 'significant'?Is there a way to specify the number of points I want along this line?Would it be at all possible to determine a constant offset for the samples (i.e., I want coordinates at specific points x-units apart from each other)?
View 3 Replies
View Related
Apr 4, 2012
Is there any way to change the referenced surface on a Surface Elevation Label. I can see the surface in the properties but cannot change it.
C3D 2011
View 1 Replies
View Related
Nov 22, 2013
I'm working on cross sections and ran into a problem. I had to edit my surface but it wouldn't cooperate with me. So instead, I just erased the whole surface and restarted it. After I got my surface the way I like it, I added my sample lines to where they are supposed to be. Problem is, my cross sections turned out blank.
So for now, I skipped to create a surface profile and see both of my surfaces available on the bottom. The old one I deleted and the newly created one. It won't let me go to the bottom and erase the old deleted surface. When I go into my toolspace-prospector....it only shows my newly created surface and nothing more. Is this a reason why my cross sections come up blank?
I'll show you a pic of my toolspace with just the current surface and another pic of the "create a surface profile" showing that it still has both the old and new (all in CAPS) but it won't let me delete the original.
HP Compaq 8100 Elite
Win 7 Pro SP1 - 64Bit
8GB RAM
i7 860 @ 2.80 GHZ
AutoCad Civil 3d 2012 SP1
View 5 Replies
View Related
Jan 9, 2013
I need to create points with surface elevations along sample lines. The points need to represent the verticies one would see in the section editor. I've attached an image of my section editor for one of my sample lines. I need to create points that represent these 24 verticies along this sample line and do so for the rest of my sample lines as well. Is there an automated process to create these points?
View 1 Replies
View Related
Jul 21, 2013
I wanna interpolate points from surface but only in that area where my sample lines intersecting with the surface. There is a point creation tool that makes this based on polylines but I have to many data and it will get to much time to do this. So, for better understanding I attached some pictures, in the first picture it is shown the final result which I have made based on polylines, but here is also a problem, the tool is not putting points where the surface is changing ( on my second picture I highlighted with red circles).
View 5 Replies
View Related
Jun 10, 2011
Found this code at //blog.civil3dreminders.com/2011/0 ... aries. html to extract all surface boundaries - something I do a lot. How can I take this code and use it in C3D 2012
Extract All Surface Boundaries
Ever want to extract a bunch of surface boundaries? I have, but I don't really want to select each and every surface. Here is some code for VBA that will automate the process.
Sub ExtractBoundaries()
Dim oAcadObject As AcadObject
For Each oAcadObject In ThisDrawing.ModelSpace
If (TypeOf oAcadObject Is AeccTinSurface) Then
Dim oSurf As AeccTinSurface
Set oSurf = oAcadObject
oSurf.ExtractBorder aeccDisplayOrientationPlan
End If
Next
End Sub
IDSP Premium 2014 (mainly Civil 3D 2014 UKIE SP1 & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600
View 9 Replies
View Related
May 22, 2013
I used the Volume dashboard to cal volume so when I view the surface in object viewer or 3D I see my TIN volumes surface at zero elevation is this right? I think the reason is because they want us to see both surface so they are not on top of one to another.
View 5 Replies
View Related
Jun 18, 2013
I used to have a tool (not sure where I got it from) that would extract all surface boundaries that were in a drawing but this tool no longer works in 2014 as it was written for 2012. Time/inclination to write a similar routine that would work in 2014?
IDSP Premium 2014 (mainly Civil 3D 2014 UKIE SP1 & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600
View 8 Replies
View Related
Aug 14, 2013
I have some topo drawings (contours with Z elevations) and am trying to create lines representing where we did our field work. I then want to extract X, Y & Z coordinates of points along those lines (either where they cross the contour lines or at regular intervals along the lines that I create). I can create surface(s) of the topo that I have, but my questions are what kind of lines would be the best to use to represent our lines of field work (3D poly lines, feature lines, or alignments) and once I get those laid in, how do I extract the XYZ info into a text format of some kind (excel, csv, etc.)?
View 3 Replies
View Related
Sep 27, 2013
I'm getting a zero elevation for the surface I create when I compare surfaces to get volumes. What am I missing?
View 9 Replies
View Related
Jun 26, 2013
I have a drawing that someone else created that has a spot elevation label for a surface. It labels the surface (PAD) then automatically subtracts a set distance for another elevation (GFE) and adds a set distance for another elevation (FFE). After doing some research, it looks like it was created with an expression?
I have two questions:
First, where to go to get a better understadning of this? I'm not familiar with expressions.
Second, where can I find the expression in drawing to make an edit to the set distances. I can remove the GFE/FFE as they are separate components in the label style, but I don't see where to modify the distance it adds or subtracts.
View 1 Replies
View Related
Apr 25, 2013
I have created a surface, when I hover over a contour on it I used to get name,style, layer, elevation. Now I get them all except elevation, I didn't change anything (not on purpose at least) in my drawings.
View 6 Replies
View Related
Feb 8, 2006
I've tried to create a surface analysis by using a point group reading xdata to set the elevations and when I set my surface properties to display the elevation shades it will only allow me to set the range to 5 or less. All of the other analysis settings for direction, slope, and slope arrows allow me to input the nuber of ranges I want, but I need the elevation analysis.
View 5 Replies
View Related
Apr 17, 2012
In the previous C3D 2012 version I was able to set surface transparency just setting it on a layer with defined transparency. Example: I set my "existing ground" surface to a created "EG" layer (example name) and set transparency layer to 50% (example, again) and it WORKS! My surface become transparent...
But now, in the C3D 2013, I can't get the same results... my surface is not getting transparent. I already tried to turn off/on hardware acceleration and adaptive degradation and show/hide transparency.
More details: I can get transparency on points, triangles, contours etc... but not on elevation, and this is my priority.
Autocad Civil 3D 2013 - Infrastructure Design Suite
Windows 7 64 i7 860 @2.80GHz 8GB Ram Quadro 2000D
View 9 Replies
View Related
May 3, 2012
We work with Hydro graphic surveys that have large numbers of points. We would like to be able to display girded spot heights colored to represent the elevation. (Similar to elevation banding)
I have created a surface and then created surface elevation points on a grid with spacing of 15m. I have tried looking at setting up a style that will adjust the color depending on the elevation ie 0 to -1 = red but haven't made any progress.
View 2 Replies
View Related
Aug 16, 2013
I have a question about pipeline networks.
I have a civil3d pipe network that has modeled by my co-worker before.
Now I want to put that pipe network on new surface and get rim elevation from surface automatically and also after stretch it can update rim elv based on that surface.
View 3 Replies
View Related
May 4, 2011
I want to extract contours with elevation labels from a C3D 2011 surface for use in another 2011 drawing without the surface, as polylines and labels. Is there a way to do this?
View 9 Replies
View Related
Feb 18, 2013
I got this plan from a third person and, the point from the survey have the property " bloc ". In their attribute property, I can see the elevation value. but in the z of the actual bloc, it shows zero. I would like to tell C3D to use the attribute elevation for his actual Z in the drawing. How can I achieve this ?
View 6 Replies
View Related
Nov 15, 2013
is it possible to export elevations from a surface at a given interval? i can easily export all the data i used to build the surface, but now I am wondering if its possible to export/extract the surface to a CSV or TXT file with a position and elevations, say, every 5 feet?
View 3 Replies
View Related
Jun 24, 2013
I have a surface with all sorts of heights, and want to add color to different heights. Getting the color there is not that difficult, but how do I swap them around? i.e. red is 'low ground' and blue is 'high ground'. In Holland we use it the other way around though, so blue should be low ground and red high ground.
Where exactly do I change this? I've tried it in the surface style tab, surface properties tab, analysis tab, and some others, but no success so far.
View 9 Replies
View Related
Jun 19, 2012
I am using Civil 3d 2012 and an trying to apply elevation banding (one color) to a surface that is completely flat. Everything seems to be in order but nothing shows up. If I add another point file to it that has a variety of elevations then the elevation bands show up, if i remove it it disappears again. I can view the boundary and get elevation readings when I mouse over the surface.
View 6 Replies
View Related
Sep 27, 2013
I just used 8 points to create a surface - see the right-hand-side of the 1st attached file.
I went to Settings => Surface => Label Style => Spot Elevation =>Elevation Only => Label Style Composer - Elevation Only => Text Contents: <[Surface Elevation(Uft[P2[RN]AP[SN|OF]>P<[Description(CP) - see the 2nd attached file..
I went to Prospector => Surface => Surface1 => Definition and I did not see any place for editing Elevation - see the left-hand-side of the 1st attached file.
How to make the Elevation and my stuff in Description show up in the DWG.
View 8 Replies
View Related
Oct 30, 2012
I have a project I designed and grading plan is almost done. My proposed surface lables read as 1256.50. How can I get them to read just 56.50? I have a FG surface I created and am labeling using surface elevations. I am running out of room and need to free up some space. I don't want do drop my surface 1200'.
View 3 Replies
View Related
Jul 5, 2013
I have been searching for a way to rotate surface spot elevation labels but have not been able to find a solution to do so. Has this feature been added to 2013 or 14? I do not want to use the point and label styles for my surface elevation, even though these can be rotated. I have several miles of roadway with many horizontal curves and would like the surface labels aligned with and along the centerline. I prefer not to update the spot elevations when the profile is revised.
C3D 2013 (latest updates), 2014 Infrastructure Design Suite
Win 7 Pro, 64-bit
16 GB RAM
View 3 Replies
View Related
Mar 6, 2012
Our provincial standard requires subgrade and subbase surfaces to have a normal cross slope of -3%. The base and asphalt surfaces have a normal cross slope for the driving lane of -2% and -5% for the shoulder.
I have been trying to figure out how to do this in C3D. I have thought of different ways of handling this for a straight tangent, but have not tested them. What is causing me the most grief at the moment is how to handle this in a curve with super elevation.
The transition will be different for -2%, -3% and -5% Runout distances.
Can C3D handle this? What about using Subassembly Composer?
(I should mention that I have tried with Subassembly Composer, but I am not sure how to deal with superelevation. -
View 2 Replies
View Related
Oct 1, 2013
I created a new surface, pasted my OG surface into it, set the build to exclude elevations less than and greater than but my surface still is showing every contour range. I want to only show contours at elevations of 371.5 and 370.5
Is it because it's a pasted surface?
View 6 Replies
View Related
Dec 18, 2013
xrefing a drawing that has annotated surface labels spot elevations into a Precise Grading Breakout Sheet, but making sure those labels plot screened. How do I make sure I can plot it screened? I have set the label styles By Layer and the text within that style is set By Layer and the Layer I created for the styles is set to plotstyle screened and color 8, I also made sure that the Precise Grading breakout sheet has the xref layers applicable to those surface labels set to screened plotstyle and color 8.
View 1 Replies
View Related
Apr 9, 2013
I've created a triangulation volume surface to compare two surfaces. Under the analysis tab in Surface Properties I have banded my levels in metre intervals and coloured the bands accordingly. I would now like to display the 'banding' in my drawing. Under the information tab I should be able to select 'Elevation Banding (2D)' as a Surface Style, however this is missing and I can only select 'Standard'... How to get this selection back.
View 4 Replies
View Related
Oct 21, 2013
Today I created a TIN Volume Surface. The volume surface seems to have a "resolution" issue if you will when displaying using elevation banding. In the attached screenshot note how the edges of the surface are "squared" or pixelated. Also, the blue lines are "hide" boundaries, and they have the same effect. I've created volume surfaces before with no issues until now.
The volume surface compares 2 surfaces that were created from nothing but contours. Some of the contours can be seen in the attached image.
I've tried REDRAW and REGEN, the image looks the same in model space and paper space, I've tried closing AutoCAD and reopening the file. I deleted the volume surface and then created a new one... I'm sure there's just a setting somewhere that I'm missing.
For comparison, also attached is a screenshot a "normal" volume surface that I created before. This one has no "hide" boundaries, but the edges of the surface aren't "squared."
View 2 Replies
View Related