/// <summary> /// This function defines a Beam constraint. /// If the specified name is not used for a constraint, a new constraint is defined using the specified name. /// If the specified name is already used for another Beam constraint, the definition of that constraint is modified. /// If the specified name is already used for some constraint that is not a Beam constraint, an error is returned. /// </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 SetBeam(string nameConstraint, eConstraintAxis axis, string nameCoordinateSystem) { // TODO: Handle this: If the specified name is already used for some constraint that is not a [xxxx] constraint, an error is returned. _callCode = _sapModel.ConstraintDef.SetBeam(nameConstraint, (CSiProgram.eConstraintAxis)axis, nameCoordinateSystem); if (throwCurrentApiException(_callCode)) { throw new CSiException(API_DEFAULT_ERROR_CODE); } }
/// <summary> /// This function defines a Rod constraint. /// If the specified name is not used for a constraint, a new constraint is defined using the specified name. /// If the specified name is already used for another Rod constraint, the definition of that constraint is modified. /// If the specified name is already used for some constraint that is not a Rod constraint, an error is returned. /// TODO: Handle this. /// </summary> /// <param name="nameConstraint">The name of a 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"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void SetRod(string nameConstraint, eConstraintAxis axis = eConstraintAxis.AutoAxis, string nameCoordinateSystem = CoordinateSystems.Global) { _callCode = _sapModel.ConstraintDef.SetRod(nameConstraint, EnumLibrary.Convert <eConstraintAxis, CSiProgram.eConstraintAxis>(axis), nameCoordinateSystem); if (throwCurrentApiException(_callCode)) { throw new CSiException(API_DEFAULT_ERROR_CODE); } }
GetDiaphragm(this cConstraint obj, string Name) { eConstraintAxis Axis; Axis = default(eConstraintAxis); string CSys; CSys = default(string); var res = obj.GetDiaphragm(Name, ref Axis, ref CSys); return(Axis, CSys); }
// === #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; }
// === /// <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); }
public void SetDiaphragm(string nameConstraint, eConstraintAxis axis = eConstraintAxis.AutoAxis, string nameCoordinateSystem = CoordinateSystems.Global) { }
public void GetRod(string nameConstraint, ref eConstraintAxis axis, ref string nameCoordinateSystem) { }
public void GetDiaphragm(string nameConstraint, ref eConstraintAxis axis, ref string nameCoordinateSystem) { }
public void SetBeam(string nameConstraint, eConstraintAxis axis, string nameCoordinateSystem) { }
// eConstraintAxis internal static CSiProgram.eConstraintAxis ToCSi(eConstraintAxis enumValue) { return((CSiProgram.eConstraintAxis)enumValue); }