示例#1
0
        /// <summary>
        /// Retrieves an existing named point spring property.
        /// </summary>
        /// <param name="name">The name of the point spring property.</param>
        /// <param name="stiffnessSource">The source of the spring stiffness derivation.</param>
        /// <param name="effectiveStiffness">The effective stiffness.</param>
        /// <param name="coordinateSystem">The name of the coordinate system in which the property is defined.</param>
        /// <param name="soilProfile">The name of an existing Soil Profile.</param>
        /// <param name="footing">The name of an existing Isolated Column Footing.</param>
        /// <param name="period">The first-mode time period. [sec].</param>
        /// <param name="color">The display color for the property specified as an integer.</param>
        /// <param name="notes">The notes, if any, assigned to the property.</param>
        /// <param name="GUID">The GUID (global unique identifier), if any, assigned to the property.</param>
        public void GetPointSpringProperties(string name,
                                             ref eSpringStiffnessDerivation stiffnessSource,
                                             ref Stiffness effectiveStiffness,
                                             ref string coordinateSystem,
                                             ref string soilProfile,
                                             ref string footing,
                                             ref double period,
                                             ref int color,
                                             ref string notes,
                                             ref string GUID)
        {
            double[] k = new double[0];
            int      csiStiffnessSource = 0;

            _callCode = _sapModel.PropPointSpring.GetPointSpringProp(name,
                                                                     ref csiStiffnessSource,
                                                                     ref k,
                                                                     ref coordinateSystem,
                                                                     ref soilProfile, ref footing, ref period,
                                                                     ref color, ref notes, ref GUID);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            stiffnessSource = (eSpringStiffnessDerivation)csiStiffnessSource;
            effectiveStiffness.FromArray(k);
        }
示例#2
0
 public void SetPointSpringProperties(string name,
                                      eSpringStiffnessDerivation stiffnessSource,
                                      Stiffness effectiveStiffness,
                                      string coordinateSystem = CoordinateSystems.Global,
                                      string soilProfile      = "",
                                      string footing          = "",
                                      double period           = 0,
                                      int color    = 0,
                                      string notes = "",
                                      string GUID  = "")
 {
 }
示例#3
0
 public void GetPointSpringProperties(string name,
                                      ref eSpringStiffnessDerivation stiffnessSource,
                                      ref Stiffness effectiveStiffness,
                                      ref string coordinateSystem,
                                      ref string soilProfile,
                                      ref string footing,
                                      ref double period,
                                      ref int color,
                                      ref string notes,
                                      ref string GUID)
 {
 }
示例#4
0
        /// <summary>
        /// Creates a new named point spring property, or modifies an existing named point spring property.
        /// </summary>
        /// <param name="name">The name of the point spring property.</param>
        /// <param name="stiffnessSource">The source of the spring stiffness derivation.</param>
        /// <param name="effectiveStiffness">The effective stiffness.</param>
        /// <param name="coordinateSystem">The name of the coordinate system in which the property is defined.</param>
        /// <param name="soilProfile">The name of an existing Soil Profile.</param>
        /// <param name="footing">The name of an existing Isolated Column Footing.</param>
        /// <param name="period">The first-mode time period. [sec].</param>
        /// <param name="color">The display color for the property specified as an integer.</param>
        /// <param name="notes">The notes, if any, assigned to the property.</param>
        /// <param name="GUID">The GUID (global unique identifier), if any, assigned to the property.</param>
        public void SetPointSpringProperties(string name,
                                             eSpringStiffnessDerivation stiffnessSource,
                                             Stiffness effectiveStiffness,
                                             string coordinateSystem = CoordinateSystems.Global,
                                             string soilProfile      = "",
                                             string footing          = "",
                                             double period           = 0,
                                             int color    = 0,
                                             string notes = "",
                                             string GUID  = "")
        {
            double[] k = effectiveStiffness.ToArray();

            _callCode = _sapModel.PropPointSpring.SetPointSpringProp(name,
                                                                     (int)stiffnessSource,
                                                                     ref k,
                                                                     coordinateSystem,
                                                                     soilProfile, footing, period,
                                                                     color, notes, GUID);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }
        }