Example #1
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);
        }
        /// <summary>
        /// Factories the specified unique name.
        /// </summary>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <returns>TendonMaterial.</returns>
        public new static TendonMaterial Factory(string uniqueName)
        {
            if (Registry.Materials.Keys.Contains(uniqueName))
            {
                return((TendonMaterial)Registry.Materials[uniqueName]);
            }

            TendonMaterial material = new TendonMaterial(uniqueName);

            if (_materialProperties != null)
            {
                material.FillData();
            }
            Registry.Materials.Add(uniqueName, material);
            return(material);
        }