scieee AI-readable full text Open interactive document viewer

Design and fabrication of farming greenhouses

Miljic, Tijana

Abstract

Esta dissertação de mestrado explora a automatização de tarefas repetitivas no projeto de estruturas modulares de estufas e o trabalho é desenvolvido com base na utilização do Autodesk Inventor e do iLogic. As estufas são construções essenciais ao cultivo agrícola, permitindo que este se desenvolva durante todo o ano. Normalmente, apresentam uma gama de variações geométricas, tais como estruturas de um ou vários vãos, juntamente com diferentes configurações de túneis. A modularidade destas estruturas possibilita a automatização do seu projeto através da geração automática de elementos ou partes da estrutura. De modo a compreender a estrutura da estufa, os elementos constituintes e as sua variações foram sistematicamente analisados e organizados em diagramas. Estes diagramas serviram de base ao desenvolvimento subsequente de uma regra externa no iLogic e no Inventor. O principal veículo para esta automatização foi o iLogic, que facilitou o acesso à API do Inventor, permitindo assim a incorporação das funcionalidades do Inventor no código desenvolvido. O resultado deste estudo é uma regra externa, que com base nos inputs do utilizador, gera uma estrutura de estufa em segundos, proporcionando uma maior eficiência no processo de desenho. Este trabalho contribui para expandir o conhecimento associado à geração automática de estruturas modulares complexas com múltiplos parâmetros, como é o caso das estufas agrícolas.

Full text

Universidade do Minho Escola de Engenharia Tijana Miljic Design and fabrication of farming greenhouses Master Dissertation European Master in Building Information Modelling Work conducted under supervision of: Prof. Isabel Valente Eng. Vitor Cruz (tutor in the company) October, 2023 Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ ii AUTHORSHIP RIGHTS AND CONDITIONS OF USE OF THE WORK BY THIRD PARTIES This is an academic work that can be used by third parties, as long as internationally accepted rules and good practices are respected, particularly in what concerts to author rights and related matters. Therefore, the present work may be used according to the terms of the license shown below. If the user needs permission to make use of this work in conditions that are not part of the licensing mentioned below, he/she should contact the author through the RepositóriUM platform of the University of Minho. License granted to the users of this work Attribution CC BY https://creativecommons.org/licenses/by/4.0/ Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ iii ACKNOWLEDGMENTS I would like to express my gratitude to the Erasmus Joint Master Degree committee for awarding me with a full scholarship that allowed me to be part of this invaluable experience, which has been a crucial step in my career. I want to extend my thanks to the professors and staff at BIM A+ for tailoring and making this master program possible and providing all the valuable lessons that have inspired me to continue learning and enhancing my knowledge. Thank you, to my mentor Prof. Isabel Valente, and engineers from the company Estufasminho Eng Vitor Cruz and Luís Oliveira for providing me with information and tailoring this interesting and upto-date topic. Thank you, Nikola Petkovic, for showing genuine interest in my work, for the interesting and informative discussions, support, and insightful suggestions throughout this journey. Thank you, my family, for your constant emotional support motivation, and inspiration. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ iv STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ v RESUMO Esta dissertação de mestrado explora a automatização de tarefas repetitivas no projeto de estruturas modulares de estufas e o trabalho é desenvolvido com base na utilização do Autodesk Inventor e do iLogic. As estufas são construções essenciais ao cultivo agrícola, permitindo que este se desenvolva durante todo o ano. Normalmente, apresentam uma gama de variações geométricas, tais como estruturas de um ou vários vãos, juntamente com diferentes configurações de túneis. A modularidade destas estruturas possibilita a automatização do seu projeto através da geração automática de elementos ou partes da estrutura. De modo a compreender a estrutura da estufa, os elementos constituintes e as sua variações foram sistematicamente analisados e organizados em diagramas. Estes diagramas serviram de base ao desenvolvimento subsequente de uma regra externa no iLogic e no Inventor. O principal veículo para esta automatização foi o iLogic, que facilitou o acesso à API do Inventor, permitindo assim a incorporação das funcionalidades do Inventor no código desenvolvido. O resultado deste estudo é uma regra externa, que com base nos inputs do utilizador, gera uma estrutura de estufa em segundos, proporcionando uma maior eficiência no processo de desenho. Este trabalho contribui para expandir o conhecimento associado à geração automática de estruturas modulares complexas com múltiplos parâmetros, como é o caso das estufas agrícolas. Palavras chave: (Geração automatizada de montagens, iLogic, Inventor, Estrutura modular, VB.NET) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ vi ABSTRACT This master's dissertation explores the automation of repetitive tasks in the design of modular greenhouse structures, with a focus on utilizing Autodesk Inventor and iLogic. Greenhouses, essential for year-round crop cultivation, exhibit a range of geometrical variations, such as single-span and multi-span structures, along with differing tunnel configurations. The modularity of these structures opens the possibilities for automation of the design process through automation of assembly generation. To understand greenhouse structure, constituent elements, and element variations were systematically analyzed and organized into diagrams. These diagrams served as the foundation for the subsequent development of the external rule within iLogic and Inventor. The primary vehicle for this automation was iLogic, which facilitated access to the Inventor API, thereby enabling the incorporation of Inventor's functionalities into the code. The outcome of this study is an external rule, that based on user inputs, generates a greenhouse structure within seconds providing better efficiency in the design process. This work aims to contribute to the knowledge about automated assembly generations of complex modular structures with multiple parameters such as greenhouses. Keywords: (Automated assembly generation, iLogic, Invenotr, Modular structure, VB.NET) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ vii TABLE OF CONTENTS 1. INTRODUCTION ............................................................................................................... 1 2. STATE OF THE ART ........................................................................................................ 5 2.1. GREENHOUSE TYPOLOGY ................................................................................................ 5 2.2. AUTOMATION OF DESIGN PROCESS .............................................................................. 9 2.2.1. The current state of productivity in the Construction industry ........................................ 9 2.2.2. Modularization .............................................................................................................. 11 2.2.3. Configuration of a product ............................................................................................ 12 2.2.4. KBE - Knowledge-based engineering ........................................................................... 15 2.2.5. Parametric design .......................................................................................................... 18 3. METHODOLOGY ............................................................................................................ 21 3.1. NEEDS ANALYSIS ............................................................................................................. 21 3.1.1. Review of existing process AS-IS ................................................................................. 21 3.1.2. Defining TO BE process ............................................................................................... 24 3.2. CHOICE OF TOOLS ............................................................................................................ 25 3.2.1. Inventor ......................................................................................................................... 26 3.2.2. Inventor API and iLogic ................................................................................................ 27 3.3. DOMAIN KNOWLEDGE SYSTEMATIZATION .............................................................. 30 3.3.1. Functionalities and product configuration ..................................................................... 30 3.3.2. Greenhouse elements ..................................................................................................... 33 3.3.3. Modular elements of greenhouse structure and its variations ....................................... 35 4. SOFTWARE DESIGN ...................................................................................................... 41 4.1. SOFTWARE STRUCTURE ................................................................................................. 41 4.2. INPUT VALIDATION ......................................................................................................... 43 4.3. NAMING CONVENTION ................................................................................................... 44 4.4. RECTANGULAR PATTERN .............................................................................................. 44 4.5. CODE .................................................................................................................................... 45 4.6. STEPS FOR IMPORTING NEW GREENHOUSE ELEMENTS ........................................ 52 4.7. USE CASE ............................................................................................................................ 53 4.8. IMPLEMENTATION OF MULTIPLE TUNNEL WIDTHS ............................................... 55 5. DISCUSSION ................................................................................................................... 63 5.1. GENERAL OVERVIEW ...................................................................................................... 63 5.2. CODE OUTPUTS ................................................................................................................. 63 5.3. INTERPRETATIONS AND IMPLEMENTATION OF RESULTS .................................... 64 5.4. RESEARCH LIMITATIONS AND DIFFICULTIES .......................................................... 65 6. CONCLUSION ................................................................................................................. 67 REFERENCES ......................................................................................................................... 68 Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 2 2. Automated design processes will result in a decrease in human error, leading to enhanced accuracy and consistency in greenhouse design; 3. The exploration of greenhouse parametrization through the utilization of Inventor API and iLogic for greenhouse design will allow designers to focus more on critical decision-making aspects, ultimately contributing to higher value-added tasks. The specific objectives guiding this research are as follows: 1. To analyze the greenhouse structure, its elements, and its variations. 2. To explore how user inputs influence the choice of elements and how parameters influence each other. 3. To explore the applicability of parametric design in the context of modular greenhouse structures and how to support element variations and different greenhouse configurations for greenhouse structures, using parametric design. 4. To analyze the process of manual creation of assembly and explore capabilities of Inventor API and iLogic in automating repetitive tasks within the design. 5. With the utilization of Inventor API and iLogic, to develop a system that automates the assembly generation of greenhouse structures. This thesis aims to give answers on how Inventor API and iLogic can be used as tools for the automatization of greenhouse model generation. By giving answers to this question study aims to contribute to more sustainable practices in greenhouse design. The structure of the thesis is divided into six chapters. Chapter 2 State of the art presents a literature review organized around key themes crucial to this work. It is divided into subchapters. The first subchapter (Greenhouse typology) explains greenhouse structure, the main influences on its design, classifications, and structure with elements included in the case study. The second subchapter (Automation of the design process) presents ideas from the manufacturing industry that can be implemented in modular construction. These terms are modularization and modules, the configuration of the product, and how functionalities chosen by the customer define the product. The following subchapter explains methodologies used to capture and organize domain knowledge that will be used in the creation of the software solution for product configuration. At the end of this chapter basic principles of parametric design are explained. Chapter 3 Methodology is divided into 3 subchapters. The first one (Needs analysis) elaborates on the need for the tool development. The process of the design phase is analyzed through the AS IS diagram and improvements to that process are suggested. The second subchapter (Choice of tools) closely introduces used tools, Autodesk Inventor, authoring software used at company Estufasminho. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 3 The last subchapter (Domain knowledge systematization) collects and structures domain knowledge for easier implementation into the code. Chapter 4 Software design is organized into seven subchapters. The first subchapter, (Software Structure), elaborates on the components and relationships within software structure. Subsequent subchapters, such as "Input Validation," provide insights into inputs and data types to ensure task success. "Naming Conventions" in the next section details the establishment of consistent naming conventions throughout the development process. Furthermore, the "Rectangular Pattern Command," is explored as a crucial element used extensively throughout the process. Moving forward, the following subchapter explains the code and its design, highlighting the commands employed and the underlying logic. After that, it is explored how to incorporate new elements into the greenhouse design. This chapter is followed by a use-case scenario. The final subchapter explains the code responsible for generating structures with multiple tunnel widths. Chapter 5 Discussion elaborates on findings and solutions that are the answers to the objectives, set for this research. The subchapter “Code outputs” shows the geometry that is generated as the output of the code. In the following subchapters, the Implementations, and Limitations of the research are elaborated. Chapter 6 Conclusion concludes this work with concise findings and suggestions for future work. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 4 This page is intentionally left blank Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 5 2. STATE OF THE ART 2.1. GREENHOUSE TYPOLOGY Greenhouses are constructions that provide optimal conditions for crop growth by controlling climate elements and providing protection. They are required to allow high light transmittance, low heat consumption, sufficient ventilation efficiency, adequate structural strength and good overall mechanical behavior, low construction, and operating costs. (B Von Elsner et al., 2000). These structures range in size from small sheds to industrial-sized buildings and usually present modular configurations. Each farm is implanted in a land with a specific area and topography, making it essential to adjust the dimensions and disposition of the greenhouses to the type of plantations and plots. They are also filled with equipment, including screening installations, heating, cooling, and lighting, and may be controlled by a computer to optimize conditions for plant growth. Factors that influence the design of greenhouse structures are diverse, however, according to the literature dominant ones are: 1. Climate and latitude of the location, 2. Load requirements depending on the climatic conditions, 3. Local building regulations, 4. Cultivated crops, 5. Availability of building materials. Greenhouses can be classified concerning different criteria, including structure, purpose, technology, control systems used, covering materials (glass, rigid plastics, plastic, or combinations of these), and construction materials (steel, aluminium, wood, or combinations of these). etc. The one with more interest for this work is a classification according to construction characteristics (width, single or multi-span, sidewall height, roof shape, and slope), (B Von Elsner et al., 2000). Greenhouse structures should be designed according to climate conditions, and general design criteria as well as locally available and cost-effective materials. As per (Christian von Zabeltitz, 2011), the following factors are important in a successful greenhouse design: shape, orientation, structure, cladding material, foundation, ventilation, and technical equipment for climate control. Figure 1 presents the most frequent greenhouse shapes according to Zabelitz. Saddle roof (a), saw tooth or shed roof (b), round-arched tunnel (c), round arch with a vertical side wall (d), pointed arch with a sloping side wall (e), and pointed arch with a vertical side wall (f). Preferable shapes for covering with plastic film are (e) and (f). Each one of the recognized types has different characteristics and benefits. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 6 Figure 1 – Most frequent shapes of greenhouses (Christian von Zabeltitz, 2011) In developing countries with mild climates, the most utilized structure is the round-arched tunnel greenhouse. If the construction is dimensioned properly the advantages of this structure are its simplicity and high wind resistance. However, some disadvantages are not to be ignored. In terms of area utilization, the presence of a zone with insufficient height next to the greenhouse sides leads to a decrease in floor usability. Moreover, the rounded roof design results in the creation of a condensation zone, which may potentially harm the crops when dripping occurs. This structure can be improved by introducing vertical walls into a round tunnel greenhouse, resulting in better plot usability that is favorable for plant growth. Additionally, pointed-arched construction offers the advantage of directing drops down the covering film, preventing the formation of a dripping zone. They also reduce the snow load because snow can slide more easily down the roof to the ground or the gutter. However, the mechanical resistance of the Gothic arch is lower than one with a normal arch due to curvature discontinuity, (B. Von Elsner et al., 2000). Figure 2 shows the mentioned types of greenhouse structures. Figure 2 – Round-arched greenhouses, Round-arched greenhouses with vertical walls, and Pointed-arched greenhouses (Gothic arch) (Christian von Zabeltitz, 2011) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 7 Click or tap here to enter text. Figure 3 – Multispan and single-span greenhouse construction (Estufasminho, no date) According to the number of tunnels, greenhouse construction can be single-span and multi-span (Figure 3). Multi-span greenhouses have numerous advantages. They offer larger volumes and improved climatic conditions. It is beneficial to have sidewalls as high as possible, preferably around 3m, while also ensuring wind resistance. Efficient ventilation is achieved through a combination of sidewall and gable ventilators, with the possibility of using mechanical ventilators. The usage of the plot under these structures is maximized due to vertical sidewalls, (Christian von Zabeltitz, 2011). Greenhouse structure consists of numerous elements. The European standard for greenhouses EN 13031-1 (2001) specifies design and construction requirements for the mechanical resistance, stability, serviceability, and durability of commercial greenhouse structures. Metallic components are connected using clamps or screws (Figure 4), with notice that welding should be avoided after galvanization. Column capitals support the roof structure and gutters. Gutters guarantee efficient drainage of rainwater. Moreover, preventing water penetration from the side walls, gable, and roof into the greenhouse is vital. Ventilation can be achieved either through the ridge or on the side walls. Other important elements are the foundations, where instructions and possible tolerances are closely defined. Steel profiles (negativo) are utilized to link the foundation with columns that are fastened on it. Estufasminho, the collaborative partner for this case study, produces two types of greenhouses: the Round Arch with a vertical sidewall, and the Pointed Arch with a vertical sidewall. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 8 Figure 4 – Clamps for steel components, Connectors for gutters and roof pipes (capitel) (Christian von Zabeltitz, 2011) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 9 2.2. AUTOMATION OF DESIGN PROCESS 2.2.1. The current state of productivity in the Construction industry By employing seven percent of the world’s working population, the construction industry holds a significant position in the global economy. Despite its substantial workforce, the productivity of the sector is among the lowest, with labor-productivity growth of only 1 percent, compared with the growth of 2.8 percent for the total world economy (Agarwal, Chandrasekaran and Sridhar, 2016). Consequently, low productivity in the sector leads to deadline extensions and significant budget overruns. According to McKinsey research, 98 percent of megaprojects suffer cost overruns of more than 30 percent, while 77 percent are at least 40 percent late. Figure 5 – Index of digitalization among industries (Agarwal, Chandrasekaran and Sridhar, 2016) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 10 As per McKinsey's research (Figure 5), the construction industry is among the least digitized across various segments. Examples from previously mentioned research show that investment in Research and Development is less than 1% of revenues compared to 3.5% to 4.5% in the auto and aerospace sectors. Similarly, spending on information technology (IT) is also minimal in construction, despite the availability of new software solutions designed for the industry. Low Digitalisation is one of the segments which if improved could significantly impact productivity up to 14 to 15 percent and cost reduction of 4 to 6 percent. (Agarwal, Chandrasekaran and Sridhar, 2016) For a better understanding of digital construction, two terms can be distinguished. The first one is called Digitisation, where information is converted into digital form, and the Second one is Digitalisation - where business is optimized with digital information (from sensors, drones, photos, and construction drawings). (ING, 2022) Digital collaboration and mobility, 5D building information modeling, the Internet of Things, and advanced analytics are among many ideas and trends that are emerging and helping in the digitalization of the construction industry. However Parametric design and Configure to order platforms are the ones that are of importance for this study among many other efficient applications. The parametric design will be elaborated in a separate chapter. Configure-to-order platforms offer clients the possibility to tailor products according to their own needs and to submit an order without the intervention of an architect. (ING, 2022) An example of this production process is IKEA Kitchen Planner where clients, online, can customize their kitchen with real-time visualization, pricing, and order placement. The interface of this platform, presented in Figure 6, is intuitive and user-friendly with all necessary information visible. These platforms, whether designed for direct customer use or utilized by engineers, offer solutions to automate repetitive tasks, during the design phase when construction is made of modular elements. Figure 6 – Example of configure-to-order platform (Source:https://kitchen.planner.ikea.com/) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 11 IBM defines automation as the ”use of technology to perform tasks where human input is minimized.” (IBM, no date). In his work “Design automation in construction,” Sandberg recognizes factors that improve automation. Among others, the important concepts that are implemented in this case study are Knowledge–based engineering, and Modules and Modularizations. (Sandberg et al., 2016) Having in mind that the construction industry has to adapt to given conditions, automation will never be complete. However, the construction industry could take knowledge of modularity and process customization from the manufacturing industries (Barbosa Filipe et al., 2017). Additionally, automation in the design process can help in reusing successful solutions, generation of multiple options, tracking and correcting modifications, and increasing responsiveness toward the client, which is an important service, in a fast fast-paced business environment. 2.2.2. Modularization Modularization is defined as the decomposition of a product into modules (Ericsson and Erixon, 1999). In the Oxford dictionary, the module is defined as a standardized part or independent unit that can be used to construct a more complex structure. Greenhouse structures, fabricated by the company Estufasminho, include standardized parts that are further used to develop different variants, capable of adapting to different terrains and plots. Three types of modules can be recognized: the Standardized module is present in all designs, the Variant module has to be configured to fit the project, and the Design module needs to be uniquely designed to fit a specific project, (Jensen et al., 2014). In the construction industry, modularity was successfully integrated through the idea of “Cut to fit” modularity. This concept involves parametrization, as the module’s interface remains consistent while allowing a change of dimensions. Essentially, the module can be adapted and adjusted as needed without altering its fundamental structure, offering flexibility and efficiency in the construction process, (Jensen, Hamon, and Olofsson, 2009). According to Jørgensen, the main advantage of modularization is that the end product can vary in shape and dimensions, but the design and production of components and modules within a product family are the same. The design phase is replaced by a configuration phase where the product is customized by selecting functionalities that define which module variants will become part of the product. (Jørgensen K. A., 2001) According to Smiding a methodology for developing modular platforms within construction includes the following phases. 1. The process starts with analyzing various project blueprints to capture and evaluate marcet needs, and requirements and identifying variations in technical solutions. 2. Generic product architecture refers to a fundamental, high-level design structure that is common to all products within a certain category or domain. In this step it is decomposed into modules and parts, categorizing the suggested technical solutions accordingly. For example in the case of a greenhouse structure can be decomposed into an arc structure, foundation options, covering material, ventilation structure, etc. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 18 3. Chapter 4 will resemble the Packaging phase where the application will be presented and explained. Figure 13 – Case study through MOKA methodology 2.2.5. Parametric design The construction industry has witnessed significant transformations due to advancements in technology. With the development of hardware, computational power became a powerful support in addressing increasingly complex demands faced by engineers. Furthermore, it serves as a tool in the automation of the design process that provides greater operational efficiency. Computer Aided Engineering (CAE) has emerged as a crucial factor in providing reduced design time, producing prototypes faster, and achieving higher product quality (Randy Shih, 2014) Throughout history, several milestones have played important roles in shaping Computer–Aided Design (CAD) technology. The foundation was set by Sutherland in 1963 with 3D wireframe methods. Subsequently, advancements in surface modeling and solid modeling took place in the late 1970s. Two dominant Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 19 methods for representing solid models are constructive solid geometry (CSG) representation and boundary representation (B-rep). In the late 1980s, a feature–based parametric solid modeling approach was introduced. (Monedero, 2000) Parametric modeling is a widely used term in recent years, throughout the literature. It is suggested as one of the solutions that can provide greater design efficiency, faster iterations of the model variants, and better responsiveness towards the client. Oxam defines parametric modeling as the activity where the designer writes the code for the parametric schema in order to design the object. “Parametric schema” is defined as a unique mathematical model that supports the algorithmic process of shape generation (Oxman, 2017). Woodbry puts the accent on establishing relations between parts of the design, so that changes are coordinated, (Woodbury, 2010). In other words, parametric design is a computational approach to creating and modifying design objects by using parameters and rules to define relationships between elements. Parameters(variables) can define different aspects of a design such as size, shapes, position, etc. These parameters are interconnected through rules or equations that dictate how changes to one parameter affect others. Figure 14 shows how parametric design works. It begins with input data like shapes, points, and surfaces, combined with set parameters that can be different types, like Boolean, list, etc. These inputs go through a process where they're transformed based on parameter changes. The result of this process is a new design geometry that's created by adjusting those parameters. This approach, as explained earlier, lets designers easily change the design by modifying the parameters, which then influences how the final design looks and functions. Figure 14 – Operating principle of a parametric file (Girardet and Boton, 2021) Automatic change propagation and geometry re-use are among the major benefits of using parametric design in opposite to rigid geometry (Shah, 2001) . Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 20 This page is intentionally left blank Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 21 3. METHODOLOGY The first part of the chapter will elaborate upon the need for the development of a tool that automates the design phase. This will be followed by an examination of the existing process, commonly referred to as “AS IS” state. Subsequently, recommendations will be presented for the “TO BE” process. In the second part knowledge collected through interviews, drawing analysis, and literature review will be organized and systematized for implementation in code during the later phase. Firstly tools that are being used for code development are being explained. Secondly, information about greenhouse structures is systematically collected and organized based on established principles derived from the manufacturing industry. These principles revolve around the comprehensive depiction of a product through its distinct attributes, modules, and components. This encompassing approach includes the creation of a product hierarchy, establishing the interrelationships between elements, and explaining the functional influences guiding the selection of particular modules and components. 3.1. NEEDS ANALYSIS Estufasminho, a Portuguese company, has been devoted to manufacturing and installing agricultural greenhouses for numerous years. While possessing substantial experience in the industry, the company recognizes the strategic significance of incorporating new methodologies into their design and fabrication processes as they aspires to expand into the European marcet. The subject of this thesis will be the design phase, which is currently done manually. Therefore, the present work intends to implement parametric design and introduce new methodologies and workflows into the design process of greenhouses. With clearly defined modules and components structured as parametric library, workflows, and methodologies company could benefit from the automation of repetitive manual work, reduction of mistakes, faster responsivnes towards the client, and higher amount of projects done. Values of developing automated assembly generation files are time efficiency, achieved by reduction of manual effort, precision, and consistency ensured through a consistent approach to assembly generation and elimination of human mistakes in the design process. This tool will generate 3D model for standardized inputs, and limit manual work to specific customization requests. 3.1.1. Review of existing process AS-IS Figure 15a shows the typical project methodology employed in the company. It consists of the following phases: Client Requirements Gathering Phase: The design process starts with acquiring comprehensive requirements from the client. This includes specifications, dimensions, materials, plot particulars, desired features, and any distinct prerequisites. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 22 Preliminary Design Conceptualization: Subsequently, the design phase is initiated with the conceptualization of preliminary ideas. This involves the creation of hand-drawn sketches or digital concepts, aimed at facilitating the visualization of potential design options. Foundation and Understanding Establishment: Following this, revisions are incorporated to ultimately establish a solid foundation and mutual comprehension with the client. This step paves the way for the phase of the design process. Creation of Assembly File and Engineering Analysis: The development of an assembly file starts, wherein modeled components are meticulously assembled to form a comprehensive greenhouse structure within the Inventor assembly environment. Concurrently, engineering analyses are conducted to ascertain structural integrity, stability, and resilience against environmental loads. Client Revision and Refinement: In this phase, the client is accorded the opportunity for revision. Leveraging the revision document and feedback from the client, the design process progresses toward the crafting of detailed design elements. Adjustments and customizations are implemented based on the client's input. Detailed Design Presentation and Approval: Upon the creation of the detailed design, a presentation is orchestrated for client review and final approval. This presentation accommodates any last-minute alterations or adjustments as per the client's preferences. The finalized detailed design serves as the foundation for the subsequent steps. Comprehensive Bill of Materials (BOM) Generation: A comprehensive Bill of Materials (BOM) is generated, defining all components, materials, quantities, and part numbers for the manufacturing process. The BOM serves as a pivotal instrument for material selection, budgetary considerations, and procurement of selected materials and components. Technical Drawing Creation: Technical drawings are generated, following orthographic views, sectional perspectives, and exploded views. Step-by-step assembly instructions and installation guidelines, thereby offering invaluable guidance for both the manufacturing and assembly processes. Moreover, essential vector files tailored for the manufacturing process are produced. Manufacturing Coordination and Field Assistance: Throughout the manufacturing process, seamless coordination is maintained, and the field team is supported during the construction phase. Documentation Archival: As a final step, documentation archival is undertaken, ensuring the systematic preservation of all design files, documents, and drawings. This repository serves as an invaluable resource for future reference and potential enhancements to the design. Lessons learned are important steps that refer to insights, knowledge, and experiences gained from the project. By capturing and implementing them every following project will be improved. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 23 Figure 15a Diagram of existing process "AS-IS" Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 24 Figure 15 shows a diagram that illustrates Inputs, Mechanisms for process facilitation, and Controls including different standards that influence the design phase. Additionally, the diagram shows the resulting outputs of the process. Figure 15 – "AS-IS" Diagram 3.1.2. Defining TO BE process The main value in the defined TO BE process is the reduction of manual work by utilizing iLogic in Autodesk Inventor and automating the design phase. The suggested implementation is the use of the tool, that will facilitate automated assembly generation (see Figure 16). Creating a parametric model consisting of essential structural elements of the greenhouse enables the quick generation of design variations and reduces the time and effort required to manually recreate designs from scratch. The possibility to fast simulate different options gives opportunities for better analysis of different design variations and for easier corrections of design. The main difference between the AS IS and the TO BE processes is the reduction of manual work leading to less time used for model generation. A parametric library of reusable components and modules is used as input, and Inventor API and iLogic External rule that make automation possible are introduced as mechanisms. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 25 After the iterative process, code should be optimized and improved based on experience and lessons learned. Values achieved in this suggested TO BE phase are faster model generation, reduction of manual work, and the capability to create more iterations in less time. Figure 16 – "TO-BE" Diagram 3.2. CHOICE OF TOOLS The selection of the program used for developing the case study was determined by the company and aligned with their established practices. Autodesk Inventor is the program for which the company holds a valid license and is currently being utilized for model development. The use of Inventor was adopted due to already pre-modeled parts and sub-assemblies that are being utilized in the greenhouses design. Up to now, Inventor has not been supported by any visual programming plugin like Dynamo, which imposes the use of the programming language VB.NET to access Inventor API and to achieve an automatization process. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 26 3.2.1. Inventor Autodesk Inventor provides tools for the creation of a 3D mechanical design, the generation of manufacturing documentation, and the simulation of product behavior. It also includes features for stress analysis, frame design, and sheet metal design. It is a program that is detail-oriented and currently implemented in many industries among which are automotive, aerospace, construction, etc. Inventor is classified as a history-based and feature–based parametric modelling program (Janssen and Stouffs, 2015). The history-based approach that is also referred to as the procedural approach is based on a sequence of operations used to generate a model. Those operations are visible in the Model browser (Figure 17). The model browser provides a clear overview on how the model is constructed, and it allows users to: - Edit features or sketches at any point in the history and to modify the design, - Suppress or unsuppress features to see the impact of their inclusion on the design, and - Edit Parameters to adjust dimensions and other variables in a controlled manner. This history-based approach enhances design flexibility and iteration, making it easier to adapt to changes and explore design alternatives. Figure 17 – Model browser Inventor is classified as feature-based parametric modelling software(Janssen and Stouffs, 2015). The feature is a predefined part or construction tool for which the user defines the key parameter, (Randy Shih, 2014). Examples of features are extrusion, holes, fillets and chamfers, patterns, etc. The main building blocks of Inventor are parts (.ipt), which are modelled from 2D sketches. In Autodesk Inventor, sketching is a fundamental step in creating 3D models. Sketches are 2D profiles Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 27 that define the shape and geometry of features in a part. These profiles can include lines, arcs, circles, rectangles, and more. Sketch Constraints maintain the relationships between sketch elements. Constraints ensure that certain geometric properties are upheld as the sketch is being edited and manipulated. Some common sketch constraints are Parallel, Perpendicular, Tangent, etc. Inventor's assembly environment (.iam) allows the creation of complex structures by assembling multiple parts. When the part is imported into the assembly file, the link is created with the part location, meaning that the name or part location should not be changed, otherwise, an error occurs and the part needs to be located manually. This process involves applying various constraints to define the interactions between parts. Some common assembly constraints include “Mate”, which aligns faces or edges together while maintaining their relative position, “Flush”, which ensures that two surfaces or axes share the same center point, “Insert”, which places one part into another, such as inserting a pin into a hole, “Angle”, which defines an angular relationship between two parts. An important part of every file is the Origin folder. Origin folder consists of origin planes, origin axes and single origin point. (Waguespack Curtis, 2013). It establishes a coordinate system and represents a stable foundation to anchor design, whether the sketch or the part, within the assembly file. A good practice is to build parts around the origin geometry whenever it is possible, and later when importing it into assembly to constrain the origin geometry of parts together. In that way, changes in part features will not affect constraints. 3.2.2. Inventor API and iLogic The API (Application Programming Interface) presents a set of mechanisms, such as objects, functions, links, etc, that allow communication between two software components, providing an addition of functionalities that are specific to the users’ needs (AWS, no date). Inventor API and Ilogic are two essential elements for automation of the design process in Autodesk Inventor. The Inventor API is a set of pre-built code components, resources, functions, and documentation provided by Autodesk for users to interact programmatically with Autodesk Inventor. Inventor API exposes the application’s functionality in an object-oriented manner that represents the components and features of Autodesk Inventor's design environment(Autodesk, no date). These objects correspond to elements such as parts, assemblies, sketches, features, and more. Developers use these objects to manipulate and automate tasks within Inventor. Inventor API is organized through object model. Object model is a hierarchical diagram that illustrates relationships between objects. Objects are supported by properties (attributes) that closely define them and methods (e.g., move, delete, etc.) that represent instructions that the object understands. Various methods and properties of objects can be used through API. The object that should be utilized in code is accessed by navigating through the structure hierarchically from the top object to one that is specifically needed. The application object represents the Inventor application and is the top-most object in the hierarchy. Figure 18 shows how a segment of the object model helps to call a particular pattern from the Assembly file. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 34 5. Roof Structure: These modules can be determined when both the Type of greenhouse and Width of the tunnel are determined. The roof structure contributes to the overall architectural design. Roof Structure starts from the 3rd outer column in the Y direction and goes with every odd column number. 6. Simple Roof: This module is determined in the same manner as the roof structure and is positioned after the frontal portal as every even roof, while in between is the roof structure. 7. Frontal Portal: Dictated by the Width of the tunnel, Type of greenhouse, and presence of a Door, the frontal portal shapes the entrance. It is aligned with the first and last columns. 8. Gutter: These elements are defined by the Greenhouse length 9. Clamps: Defined by the Column section, the number of clamps is determined by the Column Height. 10. Horizontal profiles: Defined by Greenhouse length, these elements are connected to clamps and their number is influenced by Column Height. Figure 23 – Grid of elements in greenhouse Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 35 3.3.3. Modular elements of greenhouse structure and its variations The greenhouse structure is made of modular elements. An important step is to organize, describe, and understand how module variants are achieved. Each variant module and component is solved with one of three approaches, depending on its geometry and complexity. The first approach deals with a case of complex geometry that cannot be influenced by parameters. For example, a curvature of the roof arc is achieved through many polygons that cannot be easily controlled by parameters. In this case, the sub-assembly defined by choice of functionality is directly imported into the main assembly. Elements imported in this way into the main assembly are double capitel, single capitel, roof structure, simple roof, and frontal part. The second approach is used in elements that directly satisfy functionality (Height and Column Section), the columns. Variations of these elements are regulated by triggering a rule inside the part file that changes the geometry of the element. These elements are simple enough in geometry and can be easily manipulated by updating parameters. The first snippet of code, lines (4), shows a method to run the rule inside the part file, with defined variables and its data type. The second snippet, line (5), shows how the code is implemented in the case study. “BaseNameColumnOutter” is a variable that holds the name of the column part while “ColumnDimensions” represents the name of the rule that is being triggered. Function RunRule ( componentOrDocName As Object, ruleName As String ) As Integer (4) iLogicVb.RunRule(baseNameColumnOutter, "ColumnDimensions") (5) The third approach is applied on a case of sub-assemblies that consist of simple parts whose dimensions can be manipulated through parameters. The element of this category is a clamp. Variation of this element is solved with model state. Model state is a functionality introduced inside of Inventor 2022 that allows the creation of different states of one part. For example, model state can help define the level of details, manufacturing state variations of one element, etc. Each model state can contain different dimensions, features, components, parameters, etc. Some component variations are solved by combining two of the mentioned approaches, like in the case of columns. Within the column part file, column section and column height are defined with the rule, while column thickness is defined with model states. Later, in the main assembly, the right model state is imported to the right position within the structure. Using model state, instead of uploading two different components, is generally more memory-efficient and reduces the need to duplicate geometry. Importing separate parts for each configuration can lead to larger file sizes and increased storage requirements. Figure 24 presents Column model states, with thickness variation, the first model state Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 36 is named “Outer” and is used for outer columns, while the second one is “Inner”, used for inner columns. Elements like gutter and horizontal profile are imported as elements with fixed dimensions. Figure 24 – Column model states - Outter and Inner Line (6) is from Inventor API documentation. It explains the method to add components with specific model states. Line (7), shows code adjusted to the case study, where the variables used are component name, file location, and position where the column is placed in the main-assembly file. Function AddWithModelState ( occName As String, file As String, modelStateName As String, Optional position As PointOrMatrix = Nothing, Optional grounded As Nullable(Of Boolean) = Nothing, Optional visible As Nullable(Of Boolean) = Nothing, Optional appearance As StringOrAsset = Nothing ) As ManagedComponentOccurrence (6) Components.AddWithModelState( "ColumnInner", PartsFolder & "\PG808024700 - Pilar Galvanizado Quadrado 80x2.0mm.ipt", (7) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 37 "Inner", pos) Table 1 and Table 2 present elements of the greenhouse and their properties. For better systematization, each element has an ID card where all possible properties are written and clearly explained. Each element is described with the properties, that show what variations of certain parts or subassemblies are possible. To better define properties, the next categories are used: property name, data type of the property, values, and how that value is chosen within a certain domain. Functionality defines whether that property is possible to be directly chosen by the customer. “Influenced by” is information in the table that says what functionality is defining and influencing certain parts or subassemblies to be chosen. For better overview and control, the last information about parts or assemblies is the Name for import, meaning how and with what name that assembly and part is imported in script. Having all these elements in one place helps to have better control over the database of the elements used in the software. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 38 Table 1 – Table of elements Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 39 Table 2 – Table of elements Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 40 This page is intentionally left blank Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 41 4. SOFTWARE DESIGN 4.1. SOFTWARE STRUCTURE Figure 25 illustrates the software components and their relations within the system. The software system consists of four components: Inventor and Inventor API, iLogic, and the components folder. The design engineer opens Inventor, which in this case is used to start iLogic. iLogic is an Add-in that runs in the same process as Inventor and is used to access functionalities of Inventor through Inventor API. Through iLogic, the design engineer runs the rule that starts the process of assembly generation. The components folder, placed on the local machine, works as the parametric database. It contains all part files and sub-assemblies used for main-assembly generation. iLogic establishes communication with the components folder, retrieving necessary components and integrating them into the modelling environment. To ensure the successful execution of the code, it is imperative to specify the location of this components folder. Within the primary folder, distinct subfolders contain the specified subassemblies. Since exact folder names, parts file names, and sub-folders names are used for software to communicate with components folder, the naming of the folders and all the other elements should be consistent, as exemplified in Figure 26. Figure 25 – Software system Figure 26 – Example of folder organization Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 42 To make code more reliable, the use of constraints in the code should be minimized. Positioning of the parts and sub-assemblies should be defined as precisely as possible inside the files of parts and subassemblies. If the part geometry is changed or faces that are being constrained are named differently of removed from the part or sub-assembly, the code will submit an error. Due to that reason, part files and sub-assemblies should be prepared and modelled in the right way. Coordinates of elements preferably should be made to be aligned with elements that are in relation with (see Figure 27). Columns, capitels, and clamps should be cantered with origin planes. XZ plane should be symmetrically constrained within the sub-assemblies of roof structures and frontal sub-assemblies. These recommendations are important, so the generated model results as precise as possible. Figure 27 – Centering parts and Sub - Assemblies according to Origin planes In Figure 28, software is analyzed with the aid of a UML sequence diagram. This diagram analyses communication between components over time and the sequence in which these interactions occur. Vertical rectangles of the diagram represent the time during which that certain component is active. The first step is input generation by the engineer throughout the input forms. Inputs are sent into variables in iLogic, after which iLogic communicates with the component folder to get the right parts and sub-assemblies for greenhouse generation. From the folder, components are placed in model space and pattern is made. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 43 Figure 28 – Code Structure presented with UML diagram 4.2. INPUT VALIDATION To optimize the program's effectiveness, inputs should be specified in the following manner: - Component Folder – presents the input that establishes a connection with the code and content folder from where code will take all necessary parts and sub-assemblies to configure the greenhouse. It should be in the form of the link like in example D:\01 Academia BIM\BIM A+7\Parametrizacija - Width of the tunnel – The user is choosing one value from a multi-value list with values 8000mm, 9000mm, 10000mm, and 12000mm presented as an input list box. Widths are presented as values in mm. The default option is 10000 mm. In case the user proceeds without making a selection, the program will automatically assign the default width of 10000 mm to the variable. - Number of Tunnels – The user is required to input an integer value representing the desired number of tunnels. The minimum permissible value is 2. - Greenhouse Length – Valid input is a number in the value of an integer, without space, presented in mm. In the current stage for optimal outcomes, the value should be divisible by 2500. However, if this rule is not met, manual adjustments are necessary. - Column Height – The user is choosing one value from the multi-value list that includes 2500mm, 3000mm, 3500mm, 4000mm, 4500mm, and 5000mm. The default choice is 3000 mm. - Column Section – The user has the option to choose between two column section sizes: 6060 and 8080. If no selection is made, the program will proceed with the default choice of 6060. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 50 8. Pattern Creation: Patterns are created for various components like outer columns, inner columns, capitel, roof, etc. Within the documentation, this method is described as Adds or modifies a rectangular pattern in an assembly. Figure 41 presents API explanation of this method. The second snippet (Figure 42) explains how outer columns are copied into the pattern, in the X direction it is NumberofTunnels + 1 times with the distance of WidthofTunnel while in the Y direction, 2 columns are made with the distance of GreenhouseLength. Figure 41 – API documentation for AddRectangular method Figure 42 – AddRectangular method implemented in case study code Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 51 9. Condition-Based Component Adding: Different versions of sub-assemblies (e.g., roof, frontal) are selected and added, based on the chosen width of the greenhouse. Figure 43 shows how roof subassembly is imported based on the chosen width of tunnel. Figure 43 – Selection of roof based on the chosen width of the tunnel functionality The sequence in which components are being added and patterns are being created is represented in Figure 44 and described in the following lines: 1. The creation of geometry starts by importing the model state for the outer column and setting its parameters (column section and height). After defining the outer column, pattern is created. 2. The script then moves on to work with inner columns, by taking the proper model state of the column that is used for the inner column (Thickness=2), after which a pattern is created. 3. The next steps are importing double capitel and creating patterns. 4. The right component for the roof structure is added, based on the user's input Width of the tunnel, and creates patterns for the roof structure for every odd number, starting from the 3rd column. 5. Every even column starting from second, is filled with a simplified version of the roof. 6. A similar process is done for the frontal and end side of the greenhouse, the right subassembly is imported, and a pattern is created. 7. The following element that is added is Single capitel positioned on the top of the column and for the first line of columns capitels are created. 8. Following element is gutter that is constrained to capitel after wich pattern is created. 9. First and last line of columns in Y direction is created, but before that column is imported in right position. 10. The next elements added are clamps. They are adjusted according to the ColumnSection and fixed to the column in the right position. The number of clamps is defined according to the Height of the column and a pattern is created. 11. The following components are horizontal profiles. They are fixed with clamps and made into a pattern that is defined by the Column Height. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 52 Figure 44 – Sequence of patterns creation 4.6. STEPS FOR IMPORTING NEW GREENHOUSE ELEMENTS For implementation of new elements these are following steps that are suggested to simplify and systematize the process. Step 1: Analyze Needs and Requirements: Analyze needs and requirements and define functionality that will satisfy them. For this example, functionality that can be implemented is ventilation. Step 2: Capture Technical Solutions: Explore different technical solutions for providing ventilation in greenhouses. This could involve options like roof ventilation, ridge ventilation, and side ventilation. Step 3: Decompose Technical Solution into Modules: Break down the ventilation solution into modular components. What will be considered a module or component depends on the model's complexity and if it has to support variation. Step 4: Analyze Module Variants: Examine variations within each module. Document these variants. Step 5: Define Influencing Functionalities: Identify the functionalities that influence each ventilation module. For example, the functionality greenhouse length will influence the length of ventilation, etc. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 53 Step 6: Systematize Component Knowledge: Compile detailed information about each module, including properties, dimensions, etc. Step 7: Analyze Geometry and define the way it will be Imported: Determine how the geometry of each ventilation module will be imported into a main-assambly. Decide whether it will be imported as a sub-assembly, individual part, or model state. Step 8: Positioning and Placement: Analyze where each ventilation module should be placed within the original file, how it should be related to the origin planes, and how should be related to other elements in the main assembly file. Step 9: Define Pattern: If multiple instances of a ventilation module are required, define a pattern for their placement. Specify variables that determine the distance between instances and their number. Step 10: Incorporate in Code: Translate the design and placement specifications into code.. 4.7. USE CASE The program will be used by engineers to generate a greenhouse model. To run code, it is necessary to run the iLogic add-in and in the section External Rules “Add External Rule” from the location where it is saved. To use the Rule, it is necessary to run it inside the .iam template, the file template should be in millimetres (Figure 45). Figure 45 – External Rules window inside Inventor The width can be selected from the available options: 8000 mm, 9000 mm, 10000 mm, and 12000 mm. The resulting greenhouse structure is composed of 8 elements, with the possibility of adjustments, according to the company's needs. For a program to work, it has to make a connection to a database. That connection is established by filling the input box with a link towards the folder location (Figure 46). Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 54 Figure 46 – Input window for link towards the components folder To initiate the process, the user defines inputs through dedicated input forms. These inputs are the tunnel width, the number of tunnels, greenhouse length, column height, and column section (Figure 47 The user's selections shapes the greenhouse's configuration. Upon completing the input stage, the program employs the defined parameters to generate a detailed model of the greenhouse. This model provides insights into the greenhouse's layout, design, and specifications. Furthermore, the program's interface ensures a seamless and intuitive input process. Figure 47 – Input windows Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 55 4.8. IMPLEMENTATION OF MULTIPLE TUNNEL WIDTHS The logic of the manually created model was implemented in the code, and the idea is to replicate the process. After establishing code that works for one tunnel width, the idea is to incorporate a combination of two, three, and more widths in one greenhouse structure, and therefore, one greenhouse can have different width combinations. As in the previous case, rectangular pattern command is also used here. Due to limited time this code will be elaborated only with columns. In the first step, the user inputs the width of the tunnels and the number of tunnels. These values are stored within the list that will be later used for pattern naming, pattern creation, etc (Figure 48). The first index of the list is 0. The list is structured in a way that even indexes of the list present the width of the tunnel and odd indexes represent the number of tunnels. After values with indexes 0 and 1 are used to create patterns of inner and outer columns, values are deleted, and these indexes are assigned with the next 2 values from the list. The code will iterate as long as there are items in the list. Values that are stored in the list and needed in the code are always referred to with the index 0 and 1. List (0) is equal to the width of the tunnel and List (1) is equal to the number of tunnels. Figure 48 – List of stored values of greenhouse width and number of tunnels Depending on how many inputs are in the list, code will be executing different code groups. 1. If there are 2 inputs in the list (list.Count=2), meaning that there is only one width in the greenhouse structure, the following code groups are called: • First pattern group (code will make inner and outer columns) • Y columns (code will make 1st and last group of columns in Y direction) 2. If there are 4 inputs in the list (list.Count=4), the greenhouse consists of 2 groups of tunnel widths, and following code is called: • First pattern group (code will make inner and outer columns) • Suppress columns (in overlapping zone code will suppress duplicated columns) Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 56 • The second pattern group (code will make inner and outer columns with second widths from inputs • Y columns 3. If there are 6 or more inputs in the list (list.count>=6), it means that the greenhouse consists of a combination of 3 or more tunnel widths, and the following code is executed: • First Pattern group • Suppress columns • Second Pattern group • Suppress columns • Third Pattern group • Y columns The following steps are taken to create the Second and Third groups of patterns: 1) When there is only one width in the greenhouse, the creation of the model is straightforward. Firstly, an outer column is imported in coordinate (0,0,0) then a pattern is created. Secondly, the inner column is imported in coordinate (WidthofTunnel,5000,0) and a pattern is created, thirdly, the column is imported on position (0,2500,0) pattern for 1st and last line of columns in Y direction is created. Figure 49 shows this process. Figure 49 – Column patterns for greenhouse with one width 2) The second case is a greenhouse with a combination of 2 different tunnel widths. The logic will be demonstrated in the example from Figure 50.The inner and outer patterns with the first width will be executed as previously described. The previous outer pattern (Pattern 1) is called and column number 7 is made independent. The column is called with the use of the formula CurrentIndexColumn = 1 + (list(1) * 2). When the column is independent, it is used for the next outer column pattern (Pattern 3). The same is done for the previous pattern inner, column number 15 (CurrentIndexColumnInner = CurrentIndexColumn +1 + CentralColumns Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 57 * (list(1)-1) + 1) is called and pattern number 4 is created. From Pattern number 3 number 19 is made independent and used for the creation of a pattern of outer columns in the Y direction. The zone between these two width groups has columns from both pattern widths, so columns are duplicated. To avoid duplicated elements, columns are suppressed. Table 3 – Pattern creation for two-width combination greenhouse the sequence of pattern creation, formulas that are calling the right columns within the pattern, conditions for pattern creation, and the name of the code that is being called. Figure 50 – Column patterns for greenhouse with two widths Table 3 – Pattern creation for two-width combination greenhouse The diagram presented in Figure 51 shows the sequence of actions that are needed to generate groups of patterns that will be made with a second width. The first step is to define the column using an index from the previous tunnel width, in this case, it is value 3. Secondly, the variable name is defined and Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 58 that will be used to store column and to make a pattern. The following step is calling the pattern with a previously defined name using index 0 that has a value of 8000, so the pattern name is in this case RecPattenOutter8000 from where the column will be made independant. In the following step values 8000 and 3 are deleted and new values for list(0)=10000 and list(1)=2. With these values, it is defined pattern name that is created in the next step. MessageBox.Show("Message", "Title") is a function that is used as one of the debugging strategies to follow variables and their values throughout the code. Code that resembles these actions is presented in Figure 52 Figure 51 – Sequence of actions in code to create the pattern with the right name assigned Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 59 Figure 52 – Code for creation of outer column pattern 3) The third pattern group that represents a 3rd width, which is done the same way as the second. Columns that are used for pattern creation are called, just this time, with different column indexes (column numbers in this case are 19 and 26). For every iteration after the 3rd, formulas will be the same as in the 3rd. This code will continue to iterate until there are no elements on the list anymore. Figure 53 shows patterns when there are three tunnel widths within the greenhouse structure. Table 4 shows the sequence of pattern creation, formulas that are used for calling the right column and conditions that need to be satisfied. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 66 This page is intentionally left blank Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 67 6. CONCLUSION In this master thesis, the primary objective was to explore the potential of automation of design phase in the context of greenhouse design, using Autodesk Inventor. The study successfully demonstrated the application of parametric design principles using Inventor API and iLogic for greenhouse assembly generation. The developed framework and code provide a foundation for further research and development in automating other aspects of greenhouse design and even extend to different modular typologies. Automation of the design phase through parametrization and automated assembly generation can bring many benefits to companies whose main interest is modular structures developed inside of Inventor. This master thesis has successfully explored and implemented parametrization in the context of greenhouse design using Autodesk Inventor. It has provided a practical solution and a customized tool to enhance efficiency and productivity in the design phase of greenhouse construction through the development of an external rule that automatically generates greenhouse assembly based on the user’s inputs. The research findings contribute to the advancement of automation of the design phase of modular construction such as greenhouse structures. While this research represents a significant step forward in automating greenhouse design, several additional topics could be addressed in future studies: − To expand on this research, future studies could investigate ways to improve the modularity and scalability of the code, making it more adaptable to various greenhouse configurations. It would also be beneficial to explore alternative approaches to rectangular patterns. Furthermore, additional research should focus on implementing object-oriented programming in this case study, which has the potential to enhance modularity, simplify code complexity, facilitate easier code maintenance, and enable seamless integration of new features. − Enriching the code with support for Gothic roof types and different frontal types would broaden its applicability to a wider range of greenhouse configurations. − Investigating how to generate a model within a predefined plot and automate the connection between greenhouse structures and plots. − Automation of Drawing Generation: Exploring methods to automate the generation of technical drawings and documentation for greenhouse structures. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 68 REFERENCES Agarwal, R., Chandrasekaran, S. and Sridhar, M. (2016) Imagining construction’s digital future. Ali Demir (2021) ‘Modular Design, Design Standards, and Function Automation Using Inventor and iLogic’. Autodesk University. Autodesk (no date) Getting Started with Inventor’s API, Autodesk Inventor Professional 2024. Available at: https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID4939ABD1-A15E-473E-9376-D8208EC029EB (Accessed: 4 September 2023). AWS (no date) What Is An API (Application Programming Interface)? [Online]. Available at: https://aws.amazon.com// (Accessed: 05 September 2023) Barbosa Filipe et al. (2017) Reinventing construction: A route to higher productivity. Changali, S., Mohammad, A. and Van Nieuwland, M. (2015) The construction productivity imperative. Christian von Zabeltitz (2011) Integrated Greenhouse Systems for Mild Climates. Vajna, S., Weber, C., Bley, H. and Zeman, K., 2009. CAx für Ingenieure: eine praxisbezogene Einführung. Springer-Verlag. Von Elsner, B. et al. (2000) ‘Review of structural and functional characteristics of greenhouses in European Union countries, part II: Typical designs’, Journal of Agricultural and Engineering Research. Academic Press, pp. 111–126. Available at: https://doi.org/10.1006/jaer.1999.0512. Von Elsner, B et al. (2000) REVIEW PAPER: Review of Structural and Functional Characteristics of Greenhouses in European Union Countries: Part I, Design Requirements, J. agric. Engng Res. Available at: http://www.idealibrary.com. Ericsson, A. and Erixon, G. (1999) Controlling design variants: modular product platforms. Society of Manufacturing Engineers. Estufasminho (no date) MANUAL DE MONTAGEM DE ESTUFAS. Gembarski, P.C., Li, H. and Lachmayer, R. (2017) ‘KBE-Modeling Techniques in Standard CADSystems: Case Study Autodesk Inventor Professional’, in Managing Complexity – Proceedings of the 8th World Conference on Mass Customization, Personalization and CoCreation (MCPC 2015). Berlin: Springer, pp. 215–233. Girardet, A. and Boton, C. (2021) ‘A parametric BIM approach to foster bridge project design and analysis’, Automation in Construction, 126. Available at: https://doi.org/10.1016/j.autcon.2021.103679. Hirz, M. et al. (2013) ‘Knowledge-Based Design’, in Integrated Computer-Aided Design in Automotive Development. Springer, Berlin, Heidelberg, pp. 309–330. Available at: https://doi.org/https://doi.org/10.1007/978-3-642-11940-8_1. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 69 IBM (no date) What is automation? [Online]. Available at: https://www.ibm.com/topics/automation/ (Accessed: 05 September 2023) Janssen, P. and Stouffs, R. (2015) ‘Types of parametric modelling’, in CAADRIA 2015 - 20th International Conference on Computer-Aided Architectural Design Research in Asia: Emerging Experiences in the Past, Present and Future of Digital Architecture. The Association for Computer-Aided Architectural Design Research in Asia (CAADRIA), pp. 157–166. Available at: https://doi.org/10.52842/conf.caadria.2015.157. Jensen, P. et al. (2014) ‘Developing products in product platforms in the AEC industry’, in Computing in Civil and Building Engineering - Proceedings of the 2014 International Conference on Computing in Civil and Building Engineering. American Society of Civil Engineers (ASCE), pp. 1062–1069. Available at: https://doi.org/10.1061/9780784413616.132. Jensen, P., Hamon, E. and Olofsson, T. (2009) PRODUCT DEVELOPMENT THROUGH LEAN DESIGN AND MODULARIZATION PRINCIPLES. Jørgensen K. A. (2001) ‘Product Configuration – Concepts and Methodology’, in MANUFACTURING INFORMATION SYSTEMS. Aalborg: Department of Production Aalborg University, pp. 314–322. Maurice van Sante (2022) Digitalisation must be top priority for construction companies [Online]. Available at: https://think.ing.com/ (Accessed: July 2023) Monedero, J. (2000) Parametric design: a review and some experiences, Automation in Construction. Available at: www.elsevier.comrlocaterautcon. Oxman, R. (2017) ‘Thinking difference: Theories and models of parametric design thinking’, Design Studies, 52, pp. 4–39. Available at: https://doi.org/10.1016/j.destud.2017.06.001. Randy Shih (2014) Parametric Modeling with Autodesk Inventor 2014. SDC Publications. Sandberg, M. et al. (2016) Design automation in construction-an overview. Shah, J.J. (2001) ‘Designing with Parametric CAD: Classification and comparison of construction techniques’, in Geometric Modelling, pp. 53–68. Available at: https://doi.org/https://doi.org/10.1007/978-0-387-35490-3_4. Sriram, D. et al. (1989) Knowledge-Based System Applications in Engineering Design: Research at MIT. Stokes, M. (2001) Managing engineering knowledge: MOKA: methodology for knowledge based engineering applications. Waguespack Curtis (2013) Mastering Autodesk Inventor 2014 and Autodesk Inventor LT 2014 . Wiley. Woodbury, R. (Robert F. (2010) Elements of parametric design. Wurzinger, A. (2016) Definitions to the Configuration Problem. Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 70 Design and fabrication of farming greenhouses Erasmus Mundus Joint Master Degree Programme – ERASMUS+ European Master in Building Information Modelling BIM A+ 71 LIST OF ACRONYMS AND ABBREVIATIONS API BIM CAD CAE Application Programming Interface Building Information Modelling Computer-Aided Design Computer Aided Engineering CAM Computer Aided Manufacturing CP Configured Product GUI Graphical User Interface IDF0 Icam Definition for Function Modeling ICAM Integrated Computer Aided Manufacturing IT Information Technology KBE Knowledge-Based Engineering PP Physical Product PF Product Family UML Unified Modeling Language