AutoCAD Civil 3D :: How To Use The Sample API

Oct 26, 2012

How I could use on of the sample Civil 3D API that is provided? In particular, I would like to use the Export to Excel Sample API provided at the following location during the install:

C:Program FilesAutodeskAutoCAD Civil 3D 2013SampleCivil 3D APIDotNetCSharpPipeDataExcel

I am not a programmer and can not just load this sample as it is a .cs file.  How would I go about using the code already provided to create a plugin into my AutoCAD to be able to use this command?

View 3 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: Sample Lines

Jul 3, 2008

I'm trying to create sample lines at sta. 0+58, 1+08, 1+58, 2+08......................

My alignment begins at 0+00.

In the Create Sample Lines - By Station Range I set the From Alignment Start?end both to false and set the start and end stations as 0+58 and 20+58 respectively. The 0+58 sample line plots at 0+58 but the rest of the sample lines plot at even 50' stations (1+00, 1+50...).

View 9 Replies View Related

AutoCAD Civil 3D :: Sample Line Frequency

Jun 4, 2013

I have a road corridor and need to create sample lines at a 50m interval, as well as at every horizontal and vertical turning point. While the 50m stations and the horizontal turning points are easy to add (using the alignment), I can't seem to find where/how to add the vertical points (they have to be extracted from the profile).

Running the Feature Line Report I noticed the horizontal turning points are not used in the report: it only reports the 50m stations (so I guess the same will happen to the vertical points?).

how to add the vertical turning points to the sample line group and how to include both horizontal and vertical points in the Feature Line Report.

View 6 Replies View Related

AutoCAD Civil 3D :: Widths Of New Sample Lines

Dec 22, 2013

how to create a new sample line group and a new sample lines within that slg: URL....I have checked what is the default sample lines width  (create sample lines command):

Autodesk.Civil.Settings.SettingsCmdCreateSampleLines SobreanchosSamples = default(Autodesk.Civil.Settings.SettingsCmdCreateSampleLines); SobreanchosSamples = civilDoc.Settings.GetSettings<Autodesk.Civil.Settings.SettingsCmdCreateSampleLines>(); Settings Cmd Create SampleLines SettingsCmdSwathWidths anchos = SobreanchosSamples.SwathWidths; double anchoIzquierda = Convert.ToDouble(anchos.LeftSwathWidth); double anchoDerecha = Convert.ToDouble(anchos.RightSwathWidth);

But how can I put these values (left width and right width) for a new sample line?Sample line class doesn't have "left width" or "right width" property ¿? Do I have to create a new vertex? However I think that I can´t add new vertex in vertex collection.

View 8 Replies View Related

AutoCAD Civil 3D :: Sample Line Object Snaps?

Jan 9, 2013

I am trying to use object snap (intersection) to position the end of my sample lines at the intersection of the sample line with a polyline. The object snap works with sample lines left of the alignment centerline but not on the right. How do I correct this?

View 2 Replies View Related

AutoCAD Civil 3D :: Add Sample Lines To Specific Group

Apr 11, 2008

How or if you can add sample lines to a specified group? I created a group only to realize that there are some specific stations I need. I do not want to re-create the group and re-assign the materials nor reproduce my volume reports. I just want the section plotted on my sheets.

View 3 Replies View Related

AutoCAD Civil 3D :: Cross Section With Sample Lines

Jan 13, 2013

I have my surface, aligment and sample lines created, but I cant get my sample lines profiles. 

The grid apperas without data, it is like I have never selected a surface, but I did ! 

This is what I get , totally empty

View 6 Replies View Related

AutoCAD Civil 3D :: How To Sample More Sources In Profile View

Aug 15, 2012

How can I sample more sources in my profile view? I added a new surface that I want to see on my profile, but it doesn't show the "sample more sources" option like the sections do..

View 2 Replies View Related

AutoCAD Civil 3D :: Sample Line On Alignment With Spiral

Aug 29, 2013

I draw an alignment for road. I turned off design criteria and i used data from manual for my country Slovenia. I need spiral in, curve and spiral out on alignment. Finally i got that alignment. Then i insert sample lines along the alignment. Then i saved autocad civil 3d file and shut  down the program. When i reopen file, i see that sample lines after the spiral in being erased. Sample lines stayed along first tangent, after that they were erased.

View 9 Replies View Related

AutoCAD Civil 3D :: Sample Elevation In Object ARX Application

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

AutoCAD Civil 3D :: Export Alignment And Sample Lines

Feb 15, 2013

I have an alignment with sample lines, I need to export these to a new drawing. i tried export/import land xml, but it did not work.

View 4 Replies View Related

AutoCAD Civil 3D :: Why The Sample Lines Don’t Appear On Prospector

Oct 18, 2012

Why the sample lines don’t appear on the prospector?

I’m wondering why the sample lines don’t appear on the prospector like other components such that we can have an access to delete them, for example.

How can I get a list for all the sample lines?

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 6 Replies View Related

AutoCAD Civil 3D :: Sample Line Name Duplicated Exception

Dec 23, 2013

In Civil 3D we can create several new sample line groups and their sample lines can have the same name in other sample line groups.e.g

SLG_1:   

Sample line names:

1
2
3
4

SLG_2:   

Sample line names:

1
2
3
4

However, If I create a new sample line group with API and after new sample lines, if other sample line name(of other SLG) has the same name, Civil 3D throws Exception.

View 2 Replies View Related

AutoCAD Civil 3D :: Sample Elevation In Object ARX Application

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

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 View Related

AutoCAD Civil 3D :: Export Coordinates Table Of Sample Line?

Apr 15, 2012

 I'm designing a road, but I have a trouble how to export coordinates table of sample lines?

I need a table of coordinates X,Y of sample lines.

View 9 Replies View Related

AutoCAD Civil 3D :: Sample Line Increment Not Respected At Start

May 13, 2013

Creating sample lines at a specific increment within a range starting from the start of the range is impossible unless the start of the range is divisible by the increment.  This is a defect that needs fixing.

Meanwhile you'll find me typing in the 93 locations for my sample lines.  I believe this is what we made computers for.

View 9 Replies View Related

AutoCAD Civil 3D :: Sample Line Stationing Text Not Updating

Jan 14, 2013

I have some sample lines that highlight utilities needing a section view. I've now moved my sample line to highlight the true cross section stationing for these crossings. Why doesn't the station value update for the sample line once this is moved. For some reason I remember the station text on the sample line updating itself automatically in the past.

View 2 Replies View Related

AutoCAD Civil 3D :: How To Change Labeling Of Sample Line Style

Sep 26, 2011

I am trying to figure out how to change the labeling of my sample line style from (<[Sample Line Number(Sn)]> which out puts a count of 1,2,3,4 etc to output A,B,C,D etc.

View 4 Replies View Related

AutoCAD Civil 3D :: Sample Line / Surface And Cross Sections

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

AutoCAD Civil 3D :: Creating Sample Lines At Vertical Curves

Sep 9, 2013

Can we automatically add sample lines at vertical curve points (e.g. BC, EC, Bottom of curve) ?I need to show the sections at these vertical curve key points.

I am using C3D 2011 but could not find that option when creating sample lines in a station range.

View 2 Replies View Related

AutoCAD Civil 3D :: Place Sample Lines Along A Very Sinuous Alignment

Jun 27, 2013

Im trying to place sample lines along a very sinuous alignment and about a third of the way down all of a sudden the little tracking marker jumps to what seems like thousands of kilometers away and starts tracking along some invisible alignment which does not exist?

I have tried everything I can think of from every type of sample line creation option to recreating the alignment and auditing the drawing. Nothing I do creates different results. Is this an alignment issue and being cause by all the tight bends?

View 3 Replies View Related

AutoCAD Civil 3D :: Left / Right Sample Profile Not Honoring The Gutter

May 2, 2013

When creating a profile with right/left samples, the sampled profile does not show the gutter when crossing an intersection.  If you do a quick profile of the area, it shows the gutters.  See images below...

Sampled profile...

Same area with a quick profile...

View 9 Replies View Related

AutoCAD Civil 3D :: Where Is Setting For Sample Line Label Background Mask

Jun 17, 2013

Where is the setting for the sample line label background mask?  I have some sample lines that will be plotted on top of an aerial photo, and the black box background looks terrible.  I'd like to turn it off.  I found the contour label background fine and I switched those to False without much of a problem, but I can't seem to locate the ones for the sample lines. 

View 1 Replies View Related

AutoCAD Civil 3D :: Create Points At Surface Vertices Along Sample Lines

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

AutoCAD Civil 3D :: Interpolating Points From A Surface Based On The Sample Lines

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

AutoCAD Civil 3D :: Export Point Coordinates And Elevations Along Sample Line

Sep 4, 2012

I'm working on a stream restoration project and we need to determine the x coordinates and corresponding elevations along a stream alignment at certain sample lines.  The centerline of the stream's alignment has been created as well as sample lines for cross sections at 50' intervals. We need the coordinates & elevations of each sample line (cross section) exported into an excel/txt document.

For instance, at station 1+00 of the alignment  we have a sample line.  We need to know to the right and left along that sample line the corresponding elevations and that x coordinate) from the alignment.  Primarily, whole contour intervals but more information would be useful as well.  I was hoping this could be automatically generated.

View 5 Replies View Related

AutoCAD Civil 3D :: Don't Find SampleLineLabel Property In Sample Line Class

Dec 23, 2013

In "SettingsSampleLine.SettingsStyles" there are the default properties:

 SampleLineSampleLineLabelSampleLineLabelStyleIdSampleLineStyleIdSettingsSampleLine estiloLM = CivilApplication. ActiveDocument. Settings. Get Settings<SettingsSampleLine>();string NombreEstilo=estiloLM.Styles.SampleLine.Value;string NombreEstiloEtiqueta = estiloLM. Styles. SampleLineLabel. Value;

but I don´t find SampleLineLabel property in Sample Line Class¿?Is that property in sample line group?

View 1 Replies View Related

AutoCAD Civil 3D :: Create Sample Line On Option By A Range Of Stations

Nov 20, 2012

I create the sampleline on the option "by a range of stations" so the sample lines were created on the horizontal geometry points. When I change the geometry of the alignament, the sample lines's local change or I need to do the process all over again?

View 1 Replies View Related

AutoCAD Civil 3D :: Add Sample Line To Existing Group - Redistribute Graphs FAIL

Nov 18, 2013

[URL]

Bring that back from the archives... because I am still very fond of redoing hundreds of cross sections because you're incable of redistributing the graphs when a sample line is added to a an existing group... and blow up all of the projections well done.... way to leave out a super critical dynamic component.

PPD        E P I C           F A I L

There is some unbelievable gaps in the software but how do you let this one go on for so long?  

Dell Precision T3500 - Xenon W3550 @ 3.07 (4 core)
Ram @ 12Gb
64bit Win7 Pro
Samsung SSD
NVIDIA Quadro 2000 - Dual Monitors
Cat 6 network with GlobalScape Avail Agent - WAFS
Infrastructure Design Suite Premium and Civil 3D 2012

View 1 Replies View Related

AutoCAD Civil 3D :: Sample Lines / Section Views - Unable To Change From Layer 0

Jul 15, 2012

I created sample lines and section views for my road projects. I set all line works to appropriate layers except for "Segment and Points". Cannot change from layer "0".

I right click the existing grade on my section views, click "edit section style", click "display", then change the layer of Segments and points and click "OK", "apply".

Go back to my drawing, verify the layer but  still layer "0". I tried so many times, read the manual, call friends but no luck. I am tempted to "explode" my drawing.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved