コード例 #1
0
 public void GetSuperstructureCutLocation(string name,
                                          int cutIndex,
                                          ref eStation location,
                                          ref double station,
                                          ref Coordinate2DCartesian referencePointCoordinate,
                                          ref double skew,
                                          ref double grade,
                                          ref double superstructureElevation)
 {
 }
コード例 #2
0
ファイル: Superstructure.cs プロジェクト: uzbekdev1/MPT.Tools
        /// <summary>
        /// This function returns location and orientation information about a single superstructure section cut in a bridge object. <para/>
        /// If the bridge object is not currently linked to existing objects in the model, an error is returned.
        /// TODO: Handle this
        /// </summary>
        /// <param name="name">The name of an existing bridge object.</param>
        /// <param name="cutIndex">The index number of section cut in this bridge object.
        /// This must be from 0 to Count-1, where Count is the value returned by function <see cref="CountSuperstructureCut"/>.
        /// Section cuts will be in order of increasing <paramref name="station"/> and increasing <paramref name="location"/>.</param>
        /// <param name="location">Indicates whether the <paramref name="cutIndex"/> section cut occurs before or after the associated station</param>
        /// <param name="station">The station ordinate of the <paramref name="cutIndex"/> section cut at the reference line of the superstructure. [L]</param>
        /// <param name="referencePointCoordinate">The transverse and vertical coordinates in the section of the reference point that corresponds to the layout line in the bridge object. <para/>
        /// X is positive to the right when looking upstation, Y is positive upward.  <para/>
        /// Coordinates are measured from the lower-left corner of the section bounding-box before skew, grade, and superelevation are applied.  <para/>
        /// The rotations of the section due to skew, grade, and superelevation occur about the reference point. [L]</param>
        /// <param name="skew">The skew angle, in degrees, of the section cut, measured from the horizontal normal to the superstructure reference line, with positive being about the upward vertical axis.</param>
        /// <param name="grade">The grade, as a slope (abs(Grade) &lt; 1.0), giving the vertical rise per distance along the superstructure reference line.</param>
        /// <param name="superstructureElevation">The superelevation, as a slope (abs(SuperElev) &lt; 1.0), giving the vertical rise per distance along the transverse normal to the superstructure reference line.</param>
        public void GetSuperstructureCutLocation(string name,
                                                 int cutIndex,
                                                 ref eStation location,
                                                 ref double station,
                                                 ref Coordinate2DCartesian referencePointCoordinate,
                                                 ref double skew,
                                                 ref double grade,
                                                 ref double superstructureElevation)
        {
            double x           = 0;
            double y           = 0;
            int    csiLocation = 0;

            _callCode = _sapModel.BridgeAdvancedSuper.GetSuperCutLocation(name, cutIndex, ref csiLocation, ref station, ref x, ref y, ref skew, ref grade, ref superstructureElevation);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            location = (eStation)csiLocation;
            referencePointCoordinate.X = x;
            referencePointCoordinate.Y = y;
        }