예제 #1
0
 /// <summary>
 /// Creates a new template model of a 3D Frame.
 /// Do not use this function to add to an existing model.
 /// This function should be used only for creating a new model and typically would be preceded by calls to ApplicationStart or InitializeNewModel.
 /// </summary>
 /// <param name="templateType">Template type.</param>
 /// <param name="numberStories">The number of stories.</param>
 /// <param name="storyHeight">Height of each story. [L]</param>
 /// <param name="numberBaysX">The number bays along the global x-direction.</param>
 /// <param name="numberBaysY">The number bays along the global y-direction.</param>
 /// <param name="bayWidthX">Width of each bay along the global x-direction. [L]</param>
 /// <param name="bayWidthY">Width of each bay along the global y-direction. [L]</param>
 /// <param name="restraint">True: Joint restraints are provided at the base of the frame.</param>
 /// <param name="beam">The frame section property used for all beams in the frame.
 /// This must either be Default or the name of a defined frame section property.</param>
 /// <param name="column">The frame section property used for all columns in the frame.
 /// This must either be Default or the name of a defined frame section property.</param>
 /// <param name="area">The shell section property used for all floor slabs in the frame.
 /// This must either be Default or the name of a defined shell section property.
 /// This item does not apply when <paramref name="templateType" /> = <see cref="e3DFrameType.OpenFrame" /> or <see cref="e3DFrameType.PerimeterFrame" />.</param>
 /// <param name="numberXDivisions">The number of divisions for each floor area object in the global x-direction.
 /// This item does not apply when <paramref name="templateType" /> = <see cref="e3DFrameType.OpenFrame" /> or <see cref="e3DFrameType.PerimeterFrame" />.</param>
 /// <param name="numberYDivisions">The number of divisions for each floor area object in the global y-direction.
 /// This item does not apply when <paramref name="templateType" /> = <see cref="e3DFrameType.OpenFrame" /> or <see cref="e3DFrameType.PerimeterFrame" />.</param>
 /// <exception cref="MPT.CSI.API.Core.Support.CSiException"></exception>
 public void New3DFrame(e3DFrameType templateType,
                        int numberStories,
                        double storyHeight,
                        int numberBaysX, int numberBaysY,
                        double bayWidthX, double bayWidthY,
                        bool restraint       = true,
                        string beam          = "Default",
                        string column        = "Default",
                        string area          = "Default",
                        int numberXDivisions = 4, int numberYDivisions = 4)
 {
     _callCode = _sapModel.File.New3DFrame(EnumLibrary.Convert <e3DFrameType, CSiProgram.e3DFrameType>(templateType),
                                           numberStories,
                                           storyHeight,
                                           numberBaysX, bayWidthX,
                                           numberBaysY, bayWidthY,
                                           restraint,
                                           beam, column, area,
                                           numberXDivisions, numberYDivisions);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
     resetPaths();
 }
예제 #2
0
 public void New3DFrame(e3DFrameType tempType,
                        int numberStories,
                        double storyHeight,
                        int numberBaysX, int numberBaysY,
                        double bayWidthX, double bayWidthY,
                        bool restraint       = true,
                        string beam          = "Default",
                        string column        = "Default",
                        string area          = "Default",
                        int numberXDivisions = 4, int numberYDivisions = 4)
 {
     Assert.IsTrue(false);
 }
예제 #3
0
 // e3DFrameType
 internal static CSiProgram.e3DFrameType ToCSi(e3DFrameType enumValue)
 {
     return((CSiProgram.e3DFrameType)enumValue);
 }