// ===
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
        /// <summary>
        /// The function returns the definition for the specified Beam constraint.
        /// </summary>
        /// <param name="nameConstraint">The name of an existing constraint.</param>
        /// <param name="axis">Specifies the axis in the specified coordinate system that is parallel to the axis of the constraint.
        /// If AutoAxis is specified, the axis of the constraint is automatically determined from the joints assigned to the constraint.</param>
        /// <param name="nameCoordinateSystem">The name of the coordinate system in which the constraint is defined.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void GetBeam(string nameConstraint,
                            ref eConstraintAxis axis,
                            ref string nameCoordinateSystem)
        {
            CSiProgram.eConstraintAxis csiAxis = CSiProgram.eConstraintAxis.AutoAxis;
            _callCode = _sapModel.ConstraintDef.GetBeam(nameConstraint, ref csiAxis, ref nameCoordinateSystem);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            axis = (eConstraintAxis)csiAxis;
        }
示例#2
0
        // ===

        /// <summary>
        /// The function returns the definition for the specified Rod constraint.
        /// </summary>
        /// <param name="nameConstraint">The name of an existing constraint.</param>
        /// <param name="axis">Specifies the axis in the specified coordinate system that is perpendicular to the plane of the constraint.</param>
        /// <param name="nameCoordinateSystem">The name of the coordinate system in which the constraint is defined.</param>
        /// <exception cref="CSiException"></exception>
        public void GetRod(string nameConstraint,
                           ref eConstraintAxis axis,
                           ref string nameCoordinateSystem)
        {
            CSiProgram.eConstraintAxis csiAxis = CSiProgram.eConstraintAxis.AutoAxis;

            _callCode = _sapModel.ConstraintDef.GetRod(nameConstraint, ref csiAxis, ref nameCoordinateSystem);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            axis = EnumLibrary.Convert(csiAxis, axis);
        }
示例#3
0
 internal static eConstraintAxis FromCSi(CSiProgram.eConstraintAxis enumValue)
 {
     return((eConstraintAxis)enumValue);
 }