Is this COGO Point a Survey Point or Project Point?

By Partha Sarkar

When you select a COGO Point in Civil 3D Model space and look into the Properties dialog, under "Data" node, there is "Survey Point" property and with a value True or False. If the COGO Point is part of Survey Database, it will be shown as 'True' –

 

COGO_02

 

Similarly, if the COGO Point is from Vault Project Points, You would see associated 'Project version' in OPM window –

COGO_03

We can use the following CogoPoint properties to find out if it is Survey Point, project point or normal COGO point object created in the Civil 3D drawing file. 

CogoPoint.IsSurveyPoint property indicates whether this Cogo Point is a Survey Point.

CogoPoint.IsProjectPoint property indicates whether the CogoPoint is a project point.

 

Here is the relevant C# code snippet : 

//open the COGO Point 
  CogoPoint cogoPoint = trans.GetObject(per.ObjectId, OpenMode.ForRead) as CogoPoint;
 
  // Access COGO Point Properties
  // CogoPoint.IsSurveyPoint property indicates whether this Cogo Point is a Survey Point
  if (cogoPoint.IsSurveyPoint)
  {
    // DO your stuff
    ed.WriteMessage("nSelected COGO Point is a Survey Point");
  }
 
  //  CogoPoint.IsProjectPoint property indicates whether the CogoPoint is a project point
  //  i.e. if the COGO point is from Vault Project Points
  else if (cogoPoint.IsProjectPoint)
  {
    // DO your stuff
    ed.WriteMessage("nSelected COGO Point is a Project Point");
  }
  // normal COGO point object created in the Civil 3D drawing file
  else            
  {
    // DO your stuff
    ed.WriteMessage("nSelected COGO Point is neither Survey nor Project Point");
  }

Hope this is useful to you!


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading