Exemplo n.º 1
0
        /// <summary>
        /// Adds a new mass source to the model or reinitializes an existing mass source.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void SetMassSource()
        {
#if BUILD_ETABS2015 || BUILD_ETABS2016 || BUILD_ETABS2017
            _materialProperties.SetMassSource(
                IsFromElements,
                IsFromMasses,
                IsFromLoads,
                NamesLoadPatterns,
                ScaleFactors);
#else
            _materialProperties.SetMassSource(
                Name,
                IsFromElements,
                IsFromMasses,
                IsFromLoads,
                IsDefault,
                NamesLoadPatterns,
                ScaleFactors);
#endif
        }