예제 #1
0
        /// <summary>
        /// The function returns the constraint type for the specified constraint.
        /// </summary>
        /// <param name="nameConstraint">The name of an existing constraint.</param>
        /// <param name="constraintType">Constraint type assigned to the named cosntraint.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void GetConstraintType(string nameConstraint,
                                      ref eConstraintType constraintType)
        {
            CSiProgram.eConstraintType csiConstraintType = CSiProgram.eConstraintType.Beam;
            _callCode = _sapModel.ConstraintDef.GetConstraintType(nameConstraint, ref csiConstraintType);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            constraintType = (eConstraintType)csiConstraintType;
        }
예제 #2
0
 internal static eConstraintType FromCSi(CSiProgram.eConstraintType enumValue)
 {
     return((eConstraintType)enumValue);
 }