Ejemplo n.º 1
0
        //Get complex aligment properties.
        private void GetStationLocationPoint(String alignmentName)
        {
            ObjectId  alignOid = doc.GetSitelessAlignmentId(alignmentName);
            Alignment align    = ts.GetObject(alignOid, OpenMode.ForRead) as Alignment;

            m_editor.WriteMessage("\n------User Story 1 :Station should return location as Point2d ----------------\n");
            int stationIndex = 0;

            Station[] stationSet = align.GetStationSet(StationTypes.Major, 100);

            m_editor.WriteMessage("Alignment Station Location Type: {0} \n\n", stationSet[0].Location.GetType());
            foreach (Station MajorStation in stationSet)
            {
                m_editor.WriteMessage("Alignment station:{0}   Location: {1} \n", stationIndex, stationSet[stationIndex++].Location);
            }

            m_editor.WriteMessage("\n\n");
        }