public void New2DFrame(e2DFrameType tempType, int numberStories, double storyHeight, int numberBays, double bayWidth, bool restraint = true, string beam = "Default", string column = "Default", string brace = "Default") { Assert.IsTrue(false); }
/// <summary> /// Creates a new template model of a 2D 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="numberBays">The number of bays.</param> /// <param name="bayWidth">Width of each bay. [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="brace">The frame section property used for all braces in the frame. /// This must either be Default or the name of a defined frame section property. /// This item does not apply when <paramref name="templateType" /> = <see cref="e2DFrameType.PortalFrame" />.</param> /// <exception cref="MPT.CSI.API.Core.Support.CSiException"></exception> public void New2DFrame(e2DFrameType templateType, int numberStories, double storyHeight, int numberBays, double bayWidth, bool restraint = true, string beam = "Default", string column = "Default", string brace = "Default") { _callCode = _sapModel.File.New2DFrame(EnumLibrary.Convert <e2DFrameType, CSiProgram.e2DFrameType>(templateType), numberStories, storyHeight, numberBays, bayWidth, restraint, beam, column, brace); if (throwCurrentApiException(_callCode)) { throw new CSiException(API_DEFAULT_ERROR_CODE); } resetPaths(); }
// e2DFrameType internal static CSiProgram.e2DFrameType ToCSi(e2DFrameType enumValue) { return((CSiProgram.e2DFrameType)enumValue); }