예제 #1
0
        private void GetAlignmentInfoAfterChange(String alignmentName)
        {
            ObjectId  alignOid = doc.GetSitelessAlignmentId(alignmentName);
            Alignment align    = ts.GetObject(alignOid, OpenMode.ForRead) as Alignment;

            m_editor.WriteMessage("\n{0, -50} {1} \n", "UseDesignSpeed :", align.UseDesignSpeed);
            m_editor.WriteMessage("{0, -50} {1} \n", "UseDesignCheckSet :", align.UseDesignCheckSet);
            m_editor.WriteMessage("{0, -50} {1} \n", "UseDesignCriteriaFile :", align.UseDesignCriteriaFile);
            m_editor.WriteMessage("{0, -50} {1} \n", "ReferencePoint :", align.ReferencePoint);
            m_editor.WriteMessage("{0, -50} {1} \n", "ReferencePointStation :", align.ReferencePointStation);
            m_editor.WriteMessage("{0, -50} {1} \n", "StationIndexIncrement :", align.StationIndexIncrement);
            m_editor.WriteMessage("{0, -50} {1} \n", "StyleName :", align.StyleName);

            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);

            DesignSpeedCollection DesignSpeedColl = align.DesignSpeeds;

            m_editor.WriteMessage("{0, -50} {1} \n", "DesignSpeed Collection count :", DesignSpeedColl.Count);
        }
예제 #2
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);
        }