Gets the ObjectIdCollection of all profiles belonging to this Alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public ObjectIdCollection GetProfileIds()
Visual Basic
Public Function GetProfileIds As ObjectIdCollection
Visual C++
public:
ObjectIdCollection^ GetProfileIds()

Examples

CopyC#
1Profile oProfile = ts.GetObject(oAlignment.GetProfileIds()[0], OpenMode.ForWrite) as Profile;
2
3// check to make sure we have a profile:
4if (oProfile == null)
5{
6    ed.WriteMessage("Must have at least one alignment with one profile");
7    return;
8}

See Also