CogoPointCollectionAdd(Point3dCollection, String, Boolean, Boolean, Boolean) Method |
Adds new CogoPoints at the given locations with the given description information, optionally using a DescriptionKey.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic ObjectIdCollection Add(
Point3dCollection locations,
string desc,
bool useDescriptionKey,
bool matchOnParams,
bool useNextPointNumSetting
)
Public Function Add (
locations As Point3dCollection,
desc As String,
useDescriptionKey As Boolean,
matchOnParams As Boolean,
useNextPointNumSetting As Boolean
) As ObjectIdCollection
public:
ObjectIdCollection^ Add(
Point3dCollection^ locations,
String^ desc,
bool useDescriptionKey,
bool matchOnParams,
bool useNextPointNumSetting
)
Parameters
- locations Point3dCollection
- A collection of 3d points specifying the locations of the new CogoPoints.
- desc String
- The description of the new CogoPoints.
- useDescriptionKey Boolean
- Specifies whether to use the DescriptionKey.
- matchOnParams Boolean
- Specifies whether parameters are used in description key matching to rotate and scale the point symbol.
- useNextPointNumSetting Boolean
-
Return Value
ObjectIdCollection
Remarks
If useDescriptionKey is set to false, the behavior of this method is equal to Add(locations, desc).
Example 1
2CogoPointCollection cogoPoints = _civildoc.CogoPoints;
3Point3dCollection points = getRandomPoints();
4bool useDescriptionKey = true;
5bool matchOnParameters = true;
6
7cogoPoints.Add(points, "Sample COGO Point", useDescriptionKey, matchOnParameters, false);
8
9
10points = getRandomPoints();
11matchOnParameters = false;
12cogoPoints.Add(points, "Other Sample COGO Point", useDescriptionKey, matchOnParameters, false);
1
2Dim cogoPoints As CogoPointCollection = _civildoc.CogoPoints
3Dim points As Point3dCollection = getRandomPoints()
4
5Dim useDescriptionKey As Boolean = True
6Dim matchOnParameters As Boolean = True
7
8cogoPoints.Add(points, "Sample COGO Point", useDescriptionKey, matchOnParameters, False)
9
10
11points = getRandomPoints()
12matchOnParameters = False
No code example is currently available or this language may not be supported.
See Also