/// <summary>
        /// Returns a new cross-section.
        /// </summary>
        /// <param name="material">The material.</param>
        /// <param name="uniqueName">Unique name.</param>
        /// <param name="properties">The properties.</param>
        /// <returns>TubeSection.</returns>
        internal static PrecastISection Factory(
            Materials.Materials material,
            string uniqueName,
            PrecastISectionProperties properties = null)
        {
            PrecastISection frameSection = new PrecastISection(material, uniqueName)
            {
                _sectionProperties = properties
            };

            return(frameSection);
        }
Пример #2
0
 /// <summary>
 /// Adds a frame section to the application.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public bool AddPrecastI(string uniqueName, PrecastISectionProperties properties)
 {
     return(add(uniqueName, properties, PrecastISection.Add));
 }