AutoCAD Civil 3D :: Using IntersectWith On Figure And Alignment?
Feb 27, 2013
I need getting the crossing point for a survey figure relative to an alignment. I'm trying to use the IntersectWith on my active alignment. I'm able to see my figure in debug mode so, I think I've got access to each survey figure. I think I need to cast the figure as a com object to a acad entity using directcast, but that's where it's going bad. When using the ofigure.GetObjectId it returns an integer value and it fails in VS Express 2010 in the DirectCast when trying to pass the objectId.
The error (if I'm setting this up correctly) :integer cannot be converted to objectid
'Get figure crossing point Dim ofigures As AeccSurveyFigures = oSurveyProject.Figures 'Dim figEnt As Autodesk.AutoCAD.DatabaseServices.Entity Dim intPoint As New Point3dCollection() For i = 1 To ofigures.Count - 1 Dim ofigure As AeccSurveyFigure = ofigures.Item(i) Dim figObjectId = ofigure.GetObjectId Dim figEntity As Autodesk.AECC.Interop.Survey.AeccSurveyFigure = DirectCast(m_trans.GetObject(figObjectId, OpenMode.ForRead), Autodesk.AutoCAD.DatabaseServices.Entity) m_alignment.IntersectWith(figEntity, Intersect.OnBothOperands, intPoint, IntPtr.Zero, IntPtr.Zero) Next
I am using AutoCAD Civil 3D 2011. I am wondering if there is a way to assign an mline to a figure style in the Figure Prefix Database. Ultimately I am trying to create storm drains that have a width automatically (ex. 12" SD would come in at 12"). Right now I have a single center line that comes in and I manually offset the line to create a width or I place an mline over the center line.
I using a data reference/shortcut to properly label an alignment in paperspace. However when I reference the alignment in and apply the labels the aren't the same as the original alignment that I am referencing. Is there a setting where I am supposed to apply a new beginning station.
Also it seems as though the stationing(distance) isn't even matching up 1:1 with the original drawing. For example in the original base drawing my alignment starts at 10+00 with the next PI at 14+76.98, but the stationing on the reference alignment starts at 0+83.33 with the very same PI being labeled as 1+23.08. So the very same distance is 476.98' in the real design and the drawing it's being referenced in, but the stationing of the referenced alignment shows it as 39.75 Units.
I've attached a screen of the beginning of the alignment.
Civil 3D 2012 Windows 7 Service Pack 1 Intel Core i7-2600 CPU 16GB RAM
Using Civil 3d2012, Is it possible to change the alignment label style set after the alignment has been created? For example, for an alignment that was created with alignment label set X - change the label set to alignment label set Y? It seems like this should be pretty easy, I must be missing something obvious.
I’m wondering if there is a way to launch alignment grid view/alignment entities (attached) without the need to first launching “alignment”? This dialogue box is quite essential in editing the values of radius, degree of curvature and deflection angle for the selected curve.
Can I inherit the station from one alignment as the begin station for another alignment?
For example. Alignment 1 is 1000 ft long and starts at sta 0+00.
At sta 8+01, Alignment 2 begins and goes off in another direction.
I manually enter 8+01 for begin station Alignment 2. Life is good. Still in the design stage, and customer needs to modify Alignment 1 to avoid something. Now Alignment 2 intersects Alignment 1 at sta 8+15, but same N/E coordinates.
I manually enter 8+15 for begin station Alignment 2.
It would be better if Alignment 2 could inherit the begin station based on the new stationing from Alignment 1.
I am trying to work on my figure database and have run into an issue I don't understand. Curious as to weather or not it's something I am doing, or just a bug.
I wanted to look at every possible line that could be imported so I created a dummy point file using the Figure prefix data base and imported it into one of my blank templates and ran into to curious issues.
CP is connecting to AA
OC only connects if the point has an identifier behind the OC, for example OC01.
Here is a copy of the figure database and point file I am using. I understand you will not have my layers, but the connectivity should be the same. Let me know if you need anything else.
When bringing in some figures that don't match the figure prefix database in a drawing with a set default style for figures (settings tab>survey>edit feature settings) it is being ignored and the "standard" style is being created and used. Is there another setting?
I have a survey figure in plan view that I want to project to a profile. I have a projection style set, and the command settings use this style. When I project the figure to the profile, nothing shows up.
If I try it again, the command tells me that an object already exists in the profile and will update it. What am I doing wrong? What is the correct procedure to project these lines to a profile?
using CIvil3D to figure volumes. I have a very large aerial topo from a couple years ago to compare against a topographical survey I completed this year. No problem creating surfaces.
Question: In the topo's, I need to get a volume from two different areas....one area being a fill area, the other being the borrow area. Don't want any volume data throughout the rest of the site.
Do I just create one large surface for each topo and designate boundaries somehow? Or do I need to create multiple surfaces for each topo? If this is the case, will I need to make sure any breaklines, etc. don't cross from one area to the other?
Why are figure line styles and feature line styles not shared, or a parent / child relationship? Also, should match properties change the style of a feature line to appear to be the same style as the figure line? The style only exists in as a figure line style.
If we offset a Figure line (feature line stepped offset) we get feature line, then we match properties to a figure line that has the correct style. The prospector says the Feature line has the style of the figure line; however, if we edit the feature line properties the style is set to none.
Recently I upgraded to 2013 and I been having some issues with my survey DB, first of all I created a base data shortcuts project template folder with all my folders and a default Survey DB.
once I create my project, and import points to the default DB, I have no access to the Figure Properties. Is this feature, that worked in 11 & 12 now broken in 13? I have gone into the setting and copied a new files to the folder several times, to no avail, and there are no other versions of C3D on this machine.
So now that I have my points in the drawing, I go to translate them to my survey, generally I will utilize line in the drawing between field data, and platted data to translate and rotate to the platted lot or lots and the work from there on any calcs or changes. However, when my OSNAP toolbar is docked and locked and I go to select a point line the midpoint, I have no access to the OSNAPS. This also, worked in 11 & 12, but seems broken in 13.
I am running Autocad Civil 3D 2012. I created a figure prefix database that our surveyors were familiar when coding in the field. It is a numeric code list. I received a survey last week that had 6 break lines coded in the point file. Only one of the 6 acts as a break line.
All break lines start and stop with the right line work commands but they fail to break crossing triangle legs. I've checked everything I can think of and the setup looks correct . The only difference between the one break line that works and the others is that break line has sequential point numbers while the other break line codes are scattered throughout the point file.
I have Figure prefix of GPNT for painted gas line and GP desciption key for Guy Pole. Imported survey text file, linework for GPNT came in correctly but at each shot the symbol for GP (Guy Pole) came in. Is there a way to fix that without creating a description key for GPNT. Have others with the same situation. Wanted to avoid adding description keys for items that were displayed all the same.
Civil3D 2013 Windows 7, 64 bit Intel i7 2600 @ 3.40Ghz 16 GB RAM Nvidia Quadro 600
Is there a faster way to create figure prefix i.e form excel spreadsheet or access.
I have one tip also. When you modify the figure database "C:ProgramDataAutodeskC3D 2013enuSurvey" by using notepad and you add "*" after each figure it will connect during linework codes that much the prefix code and will exclude the integer, EPN1 and EPN2 will be treated as EPN
I have a client who uses Bently MX Roads for road design and requires that survey data be supplied in GENIO format. I realise that there are many possible options to get Civil3D survey data into MX, but I am trying to explore the use of the Subscription Extension to Import/Export GENIO.
Surfaces - no problem. Points - I see how I can get that to work. But the only linework that can be exported is Feature Lines, and it is also important that the feature lines have a name (likely related to the layer it is on).
I can convert survey figures to feature lines and name them one by one but would be very time consuming for a whole survey. Is there any way of doing all figures at once?
I'm guessing not and that it is probably easier to do the Genio creation from dwg in MX itself.
how I can go about automatic creation of figures and existing alignment (i.e. Centerline and edges) using csv/txt file data format. Currently I have to snap each line to create Centerline, edge, figures etc. a headache of work! I am using Autocad civil 3D 2012.
I normally use a database transaction to create temporary drawing Lines when I need to do any intersections. But I decided to try virtual Geometry Line2d instead. Intersecting Line2d with other Line2d objects. But I do not understand the Tolerance input. I definitely need it - without it all the line2ds are intersecting even when they actually don't.
I just discovered survey figure groups and am playing around with them. Great way to bring certain figures in & out. What seems crazy is that I have to check them on/off one at a time. Am I missing something or is this the only way to add figures to a figure group?
I imported Google earth surface (at eye alt 600m) to civil 3d 2012 and created an alignment of length 181m.
When I exported same alignment to Google earth , it showed the length as 190m ( the difference increases with increase in length of alignment) And also the profile view of the alignment in the Civil D & Google earth varies.