Hi,
Here is a sample VB.NET code snippet :
Dim oSurveyProjects AsAeccSurveyProjects = CType(oAeccSurveyDB.Projects, AeccSurveyProjects)
' get the 1st Project from the Survey Projects collection
Dim oSurveyProject AsAeccSurveyProject = oSurveyProjects.Item(0)
IfNot (oSurveyProject IsNothing) Then
' Get the Project Name
ed.WriteMessage(vbCrLf +
"Projcet Name : " + " " + oSurveyProject.Name.ToString())
' IAeccSurveyProject:: GetPointByNumber
' Gets the Survey Point instance with the input point number.
Dim oSurveyPoint AsAeccSurveyPoint = oSurveyProject.GetPointByNumber(1)
' Check the Point Properties Name, Easting, Northing & Elevation
ed.WriteMessage(vbCrLf +
"Point Name : " + oSurveyPoint.Name.ToString() )
ed.WriteMessage(vbCrLf +
"Easting : " + oSurveyPoint.Easting.ToString() + " " +
"Northing : " + oSurveyPoint.Northing.ToString() + " " +
"Elevation : " + oSurveyPoint.Elevation.ToString())
EndIf
For your benefit, I have published the following blog post with a complete code sample at our IM DevBlog -
http://adndevblog.typepad.com/infrastructure/2013/08/accessing-survey-database-points-using-autocad-...
Hope this helps!
Thanks,
Partha