/// <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 PrecastUSection Factory(
            Materials.Materials material,
            string uniqueName,
            PrecastUSectionProperties properties = null)
        {
            PrecastUSection frameSection = new PrecastUSection(material, uniqueName)
            {
                _sectionProperties = properties
            };

            return(frameSection);
        }
Example #2
0
 /// <summary>
 /// Adds a frame section to the application.
 /// </summary>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public bool AddPrecastU(string uniqueName, PrecastUSectionProperties properties)
 {
     return(add(uniqueName, properties, PrecastUSection.Add));
 }