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

            m_editor.WriteMessage("\n----------------Alignment Complex properties - begin----------------\n");

            DesignSpeedCollection DesignSpeedColl = align.DesignSpeeds;

            m_editor.WriteMessage("{0, -50} {1} \n", "DesignSpeed Collection count :", DesignSpeedColl.Count);

            ObjectIdCollection LabelGroupColl = align.GetLabelGroupIds();

            m_editor.WriteMessage("{0, -50} {1} \n", "LabelGroup Collection count :", LabelGroupColl.Count);

            ObjectIdCollection LabelColl = align.GetLabelIds();

            m_editor.WriteMessage("{0, -50} {1} \n", "Label Collection count :", LabelColl.Count);

            ObjectIdCollection ProfileIdColl = align.GetProfileIds();

            m_editor.WriteMessage("{0, -50} {1} \n", "ProfileId Collection count :", ProfileIdColl.Count);

            ObjectIdCollection ProfileViewIdColl = align.GetProfileViewIds();

            m_editor.WriteMessage("{0, -50} {1} \n", "ProfileViewId Collection count :", ProfileViewIdColl.Count);

            ObjectIdCollection SampleLineGroupIdColl = align.GetSampleLineGroupIds();

            m_editor.WriteMessage("{0, -50} {1} \n", "SampleLineGroupId Collection count :", SampleLineGroupIdColl.Count);

            StationEquationCollection StationEquationColl = align.StationEquations;

            m_editor.WriteMessage("{0, -50} {1} \n", "StationEquation Collection count :", StationEquationColl.Count);

            SuperelevationCriticalStationCollection SuperEleData = align.SuperelevationCriticalStations;

            m_editor.WriteMessage("{0, -50} {1} \n", "Superelevation Critical Stations count :", SuperEleData.Count);
        }