Adds a new CogoPoint at the given location with the specified description information.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public ObjectId Add(
Point3d location,
string desc,
bool useNextPointNumSetting
) |
Visual Basic |
---|
Public Function Add ( _
location As Point3d, _
desc As String, _
useNextPointNumSetting As Boolean _
) As ObjectId |
Visual C++ |
---|
public:
ObjectId Add(
Point3d location,
String^ desc,
bool useNextPointNumSetting
) |
Parameters
- location
- Type: Point3d
The location of the new CogoPoint.
- desc
- Type: System..::..String
The description of the new CogoPoint.
- useNextPointNumSetting
- Type: System..::..Boolean
Return Value
The ObjectId of the newly-added CogoPoint.
Examples
CopyC#
1
2CogoPointCollection cogoPoints = _civildoc.CogoPoints;
3Point3d location = new Point3d(100.0, 150.0, 50.0);
4cogoPoints.Add(location, "Sample COGO Point");
CopyVB.NET
1
2Dim cogoPoints As CogoPointCollection = _civildoc.CogoPoints
3Dim location As New Point3d(100.0, 150.0, 50.0)
4cogoPoints.Add(location, "Sample COGO Point")
See Also