Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MaterialByTemperature{T}"/> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="name">The name.</param>
 /// <param name="temperature">The temperature.</param>
 protected MaterialByTemperature(ApiCSiApplication app,
                                 string name,
                                 double temperature = 0)
     : base(app, name, temperature)
 {
     _materialProperties = new T();
 }
 protected RectangleSection(
     ApiCSiApplication app,
     Materials.Materials material,
     string name,
     eFrameSectionType type = eFrameSectionType.BuiltUpUHybrid) : base(app, material, name, type)
 {
 }
        /// <summary>
        /// Adds a new load case.
        /// If the name is not unique, the existing load case will be returned.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">The unique name.</param>
        /// <returns>StaticLinear.</returns>
        /// <exception cref="T:MPT.CSI.API.Core.Support.CSiException">API_DEFAULT_ERROR_CODE</exception>
        internal static TimeHistoryModalNonlinear Add(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            ApiTimeHistory apiTimeHistoryModalNonlinear = getApiLoadCase(app).TimeHistoryModalNonlinear;

            apiTimeHistoryModalNonlinear?.SetCase(uniqueName);
            return(Factory(app, analyzer, uniqueName));
        }
Пример #4
0
 protected ColdHatSection(
     ApiCSiApplication app,
     Materials.Materials material,
     string name,
     eFrameSectionType type = eFrameSectionType.ColdHat) : base(app, material, name, type)
 {
 }
Пример #5
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="results">The results.</param>
        /// <param name="storyName">Name of the story.</param>
        /// <param name="storyElevation">The story elevation. [L]</param>
        /// <param name="storyHeight">The story height. [L]</param>
        /// <param name="isMasterStory">True: Story is a master story.</param>
        /// <param name="similarToStory">If the story is not a master story, which master story the story is similar to .</param>
        /// <param name="spliceAbove">True: Story has a splice height.</param>
        /// <param name="spliceHeight">The story splice height. [L]</param>
        /// <param name="color">The display color for the story specified as an Integer.</param>
        /// <returns>Diaphragm.</returns>
        internal static Story Factory(ApiCSiApplication app, StoryResults results,
                                      string storyName,
                                      double storyElevation,
                                      double storyHeight,
                                      bool isMasterStory,
                                      string similarToStory,
                                      bool spliceAbove,
                                      double spliceHeight,
                                      int color)
        {
            Story item = new Story(app, results, storyName)
            {
                Elevation      = storyElevation,
                Height         = storyHeight,
                IsMasterStory  = isMasterStory,
                SimilarToStory = similarToStory,
                SpliceAbove    = spliceAbove,
                SpliceHeight   = spliceHeight,
                Color          = color
            };

            item.FillGUID();

            return(item);
        }
Пример #6
0
        /// <summary>
        /// Returns a frame object of the specified name.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="results">The results.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Frame.</returns>
        internal static SectionCut Factory(ApiCSiApplication app, SectionCutResults results, string uniqueName)
        {
            SectionCut item = new SectionCut(app, results, uniqueName);

            item.FillData();
            return(item);
        }
Пример #7
0
        /// <summary>
        /// Adds a new load case.
        /// If the name is not unique, the existing load case will be returned.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">The unique name.</param>
        /// <returns>StaticLinear.</returns>
        /// <exception cref="T:MPT.CSI.API.Core.Support.CSiException">API_DEFAULT_ERROR_CODE</exception>
        internal static ModalRitz Add(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            ApiStaticLinear apiModalRitz = getApiLoadCase(app).ModalRitz;

            apiModalRitz?.SetCase(uniqueName);
            return(Factory(app, analyzer, uniqueName));
        }
Пример #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TimeHistoryDirectNonlinear" /> class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="name">The name.</param>
        /// <inheritdoc />
        protected TimeHistoryDirectNonlinear(ApiCSiApplication app, Analyzer analyzer, string name) : base(app, analyzer, name)
        {
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            _apiInitialLoadCase = _apiTimeHistoryDirectNonlinear;
            _apiDampingProportional = _apiTimeHistoryDirectNonlinear;
#endif
        }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wall" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="material">The material.</param>
 /// <param name="name">The name.</param>
 protected Wall(
     ApiCSiApplication app,
     Materials.Materials material,
     string name)
     : base(app, material, name)
 {
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="TimeHistoryModalNonlinear" /> class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="name">The name.</param>
        /// <inheritdoc />
        protected TimeHistoryModalNonlinear(ApiCSiApplication app, Analyzer analyzer, string name) : base(app, analyzer, name)
        {
#if !BUILD_ETABS2015 && !BUILD_ETABS2016 && !BUILD_ETABS2017
            _apiModal        = _apiTimeHistoryModalNonlinear;
            _apiDampingModal = _apiTimeHistoryModalNonlinear;
#endif
        }
Пример #11
0
        /// <summary>
        /// Returns a new load case class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="uniqueName">Unique load case name.</param>
        /// <returns>Steel.</returns>
        internal static TimeHistoryDirectNonlinear Factory(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            TimeHistoryDirectNonlinear loadCase = new TimeHistoryDirectNonlinear(app, analyzer, uniqueName);
            loadCase.FillData();

            return loadCase;
        }
Пример #12
0
        /// <summary>
        /// Sets group properties, such as display color and usages.
        /// A new group is created if the name is of a nonexisting group.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="name">The name.</param>
        /// <param name="properties">The properties.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        protected static void setGroup(ApiCSiApplication app, string name, GroupProperties properties)
        {
            ApiGroups apiGroups = getApiGroups(app);

#if BUILD_ETABS2015 || BUILD_ETABS2016 || BUILD_ETABS2017
            apiGroups.SetGroup(name,
                               properties.Color,
                               properties.SpecifiedForSelection,
                               properties.SpecifiedForSectionCutDefinition,
                               properties.SpecifiedForSteelDesign,
                               properties.SpecifiedForConcreteDesign,
                               properties.SpecifiedForStaticNLActiveStage,
                               properties.SpecifiedForAutoSeismicOutput,
                               properties.SpecifiedForAutoWindOutput,
                               properties.SpecifiedForMassAndWeight,
                               properties.SpecifiedForSteelJoistDesign,
                               properties.SpecifiedForWallDesign,
                               properties.SpecifiedForBasePlateDesign,
                               properties.SpecifiedForConnectionDesign);
#else
            apiGroups.SetGroup(name,
                               properties.Color,
                               properties.SpecifiedForSelection,
                               properties.SpecifiedForSectionCutDefinition,
                               properties.SpecifiedForSteelDesign,
                               properties.SpecifiedForConcreteDesign,
                               properties.SpecifiedForAluminumDesign,
                               properties.SpecifiedForColdFormedDesign,
                               properties.SpecifiedForStaticNLActiveStage,
                               properties.SpecifiedForBridgeResponseOutput,
                               properties.SpecifiedForAutoSeismicOutput,
                               properties.SpecifiedForAutoWindOutput,
                               properties.SpecifiedForMassAndWeight);
#endif
        }
Пример #13
0
        /// <summary>
        /// Returns an object of the specified name.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique object.</param>
        /// <returns>Tendon.</returns>
        internal static Link Factory(ApiCSiApplication app, string uniqueName)
        {
            Link item = new Link(app, uniqueName);

            item.FillData();
            return(item);
        }
Пример #14
0
 protected RectangleSection(
     ApiCSiApplication app,
     Materials.Materials material,
     string name,
     eFrameSectionType type = eFrameSectionType.PreCastConcreteGirderU) : base(app, material, name, type)
 {
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Shell{T}" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="material">The material.</param>
 /// <param name="name">The name.</param>
 protected Shell(
     ApiCSiApplication app,
     Materials.Materials material,
     string name) : base(app, material, name)
 {
     _sectionProperties = new T();
 }
Пример #16
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Aluminum.</returns>
        internal new static Aluminum Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            Aluminum material = new Aluminum(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
Пример #17
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>Diaphragm.</returns>
        internal static Diaphragm Factory(ApiCSiApplication app, string uniqueName)
        {
            Diaphragm diaphragm = new Diaphragm(app, uniqueName);

            diaphragm.FillData();

            return(diaphragm);
        }
Пример #18
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>ColdFormed.</returns>
        internal new static ColdFormed Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            ColdFormed material = new ColdFormed(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
Пример #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:MPT.CSI.OOAPI.Core.Program.Model.Loads.Cases.ResponseSpectrum" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="loadCases">The load cases.</param>
 /// <param name="analyzer">The analyzer.</param>
 /// <param name="name">The name.</param>
 /// <inheritdoc />
 private ResponseSpectrum(
     ApiCSiApplication app,
     Analyzer analyzer,
     LoadCases loadCases,
     string name) : base(app, analyzer, name)
 {
     _loadCases = loadCases;
 }
Пример #20
0
        /// <summary>
        /// Factories the specified unique name.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="temperature">The temperature.</param>
        /// <returns>TendonMaterial.</returns>
        internal new static TendonMaterial Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            TendonMaterial material = new TendonMaterial(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
Пример #21
0
        /// <summary>
        /// Returns a new load pattern class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Unique load pattern name.</param>
        /// <returns>Steel.</returns>
        internal static LoadPattern Factory(ApiCSiApplication app, string uniqueName)
        {
            LoadPattern loadPattern = new LoadPattern(app, uniqueName);

            loadPattern.FillData();

            return(loadPattern);
        }
Пример #22
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="temperature">The temperature.</param>
        /// <returns>Concrete.</returns>
        internal new static NoDesign Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            NoDesign material = new NoDesign(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
Пример #23
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="temperature">The temperature.</param>
        /// <returns>Rebar.</returns>
        internal new static Rebar Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            Rebar material = new Rebar(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
Пример #24
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="temperature">The temperature.</param>
        /// <returns>Masonry.</returns>
        internal new static Masonry Factory(ApiCSiApplication app, string uniqueName, double temperature = 0)
        {
            Masonry material = new Masonry(app, uniqueName, temperature);

            material.FillData();

            return(material);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="LoadCombinations" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="analyzer">The analyzer.</param>
 /// <param name="loadCases">The load cases.</param>
 internal LoadCombinations(
     ApiCSiApplication app,
     Analyzer analyzer,
     LoadCases loadCases) : base(app)
 {
     _analyzer  = analyzer;
     _loadCases = loadCases;
 }
Пример #26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Group" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="objects">The objects.</param>
 /// <param name="name">The name.</param>
 protected Group(
     ApiCSiApplication app,
     StructureObjects objects,
     string name) : base(app)
 {
     Name     = name;
     _objects = objects;
 }
Пример #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrameSection" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="material">The material.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 protected FrameSection(ApiCSiApplication app,
                        Materials.Materials material,
                        string name,
                        eFrameSectionType type = eFrameSectionType.All)
     : base(app, material, name, type)
 {
     _sectionProperties = new T();
 }
Пример #28
0
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="results">The results.</param>
        /// <param name="storyName">Name of the unique.</param>
        /// <returns>Diaphragm.</returns>
        internal static Story Factory(ApiCSiApplication app, StoryResults results, string storyName)
        {
            Story item = new Story(app, results, storyName);

            item.FillData();

            return(item);
        }
Пример #29
0
        /// <summary>
        /// Returns a new load case class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="uniqueName">Unique load case name.</param>
        /// <returns>Steel.</returns>
        internal static ModalRitz Factory(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            ModalRitz loadCase = new ModalRitz(app, analyzer, uniqueName);

            loadCase.FillData();

            return(loadCase);
        }
 /// <summary>
 /// Adds the specified application.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="material">The material.</param>
 /// <param name="uniqueName">Name of the unique.</param>
 /// <param name="properties">The properties.</param>
 /// <returns>TeeSection.</returns>
 internal static SteelTeeSection Add(
     ApiCSiApplication app,
     Materials.Materials material,
     string uniqueName,
     SteelTeeSectionProperties properties)
 {
     setApi(getApiFrameSection(app), uniqueName, properties);
     return(Factory(app, material, uniqueName, properties));
 }