- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
New to C3D .net, long time C3D user. Guess I thought I would take matters into my own hands and really pop the hood. So I've managed to create a Survey Project, Network, Points, Figures, Alignment, and a Profile with a view; all from a couple of xml files of survey data. All right that's all going well enough.
I need to project some of the points and figures to the profile view and I'm not making any progress. I found the ProfileProjection class in the object browser, but I'm not sure how to handle the first argument (ByVal unmanagedPointer AsSystem.IntPtr,) or even if I'm on the right path. I'm guessing that it should work similar to other Create() methods by referencing an ID, then later calling a projObject.Draw() or something similar. An example would be great.
Below is a snippet of the survey point section. I'm iterating through each survey point in the xml data. I hope to create the projObj for each CL shot as a starting place. I think the figures would be similar if I can get a point to work.
Using C3D 2012
'Survey Points ================================================================ 'Create Non-Control Points for network Dim oNonControlPt As AeccSurveyNonControlPoint 'Dim xNumber As Integer = 0 For Each xPoint In pFile...<Point> Dim xNumber As Integer = xPoint.<Number>.Value Dim xName As String = xPoint.<Name>.Value Dim xDescription As String = xPoint.<Code>.Value Dim xEast As Double = xPoint.<Grid>.<East>.Value / 3.28083333333333 Dim xNorth As Double = xPoint.<Grid>.<North>.Value / 3.28083333333333 Dim xElevation As Double = xPoint.<Grid>.<Elevation>.Value / 3.2808333333333 oNonControlPt = oSurveyNetwork.NonControlPoints.Create( _ xNumber, xName, _ xDescription, _ xEast, _ xNorth, _ xElevation) Dim projPointID As System.IntPtr = oNonControlPt.ID 'Fatal Error Here!!!! If oNonControlPt.Description.Contains("CL") Then 'project each CL point to profile Dim projObject As ProfileProjection = ProfileProjection.Create(projPointID, False) End If Next '?oSurveyNetwork.UpdateNetwork() 'Survey Figures ================================================================
Any help or direction will be appreaciated.
Thanks,
Eric
Solved! Go to Solution.