Example #1
0
        /***************************************************/

        private IFAttribute CreateSurfraceProfile(ConstantThickness thickness, string lusasName)
        {
            IFGeometricSurface lusasGeometricSurface = d_LusasData.createGeometricSurface(lusasName);

            lusasGeometricSurface.setValue("t", thickness.Thickness);
            return(lusasGeometricSurface);
        }
Example #2
0
        /***************************************************/
        /**** Private Methods                           ****/
        /***************************************************/

        private IFAttribute CreateGeometricSurface(ISurfaceProperty surfaceProperty)
        {
            IFAttribute lusasAttribute;

            if (d_LusasData.existsAttribute("Surface Geometric", surfaceProperty.DescriptionOrName()))
            {
                lusasAttribute = d_LusasData.getAttribute("Surface Geometric", surfaceProperty.DescriptionOrName());
            }
            else
            {
                IFGeometricSurface lusasGeometricSurface = CreateSurfraceProfile(surfaceProperty as dynamic, surfaceProperty.DescriptionOrName());
                lusasAttribute = lusasGeometricSurface;
            }

            if (lusasAttribute != null)
            {
                int adapterIdName = lusasAttribute.getID();
                surfaceProperty.SetAdapterId(typeof(LusasId), adapterIdName);

                return(lusasAttribute);
            }

            return(null);
        }