61 Results for "python"
Hands-on Lab / London 2019
How to Build Graphical User Interface Nodes for Dynamo Using Python
My own experience at Hawkins\Brown has taught me that a significant hurdle in the implementation of computational design workflows into an office is new users getting over the fear factor of interacting in a visual scripting environment. We have had success in overcoming this hurdle by developing custom GUI nodes for Dynamo, that allow complex multistage scripts to be run without the need to interact with Dynamo.This session will provide attendees with a step-by-step guide on how to create a Winform ComboBox dropdown selector UI custom node directly in Dynamo using Python. Once complete, I will also identify how only 20% of the code needs to be adapted to be able to create a number of further UI’s including Select a file, Textbox input, and Warning message.The workshop utilises the Winform GUI library as part of the Microsoft .NET Framework which typically requires an IDE for utilisation. However Dynamo’s use of IronPython, which is integrated with the .NET Framework, IronPython can use the Winform and other such libraries. This opens the door for all skill levels of users to explore GUI development directly in Dynamo. Given that GUI development is typically not supported in Python there is very little literature on the topic which makes it difficult to learn on your own. This is a key reason why I have decided to propose this session in Python with Dynamo and not C# with Visual Studio as it will provide a source of information for an otherwise poorly document field. This is alongside the fact that it will be more assessable to a wider number of delegates. Having said this, the session could more easily be adapted to cover the same topic but in C# within visual studio. The session will be split into 3 clear sections: 1) Presentation: Providing an overview of the topic; 2) Lab/ workshop tutorial: Providing a step-by-step guide for how to code a Winform ComboBox drop down selection GUI; 3) A live demonstration on how only a small amount of the code that everyone has just written needs to be altered in order to create a different type of GUI.
Instructional Demo / London 2018
The Future of Structural Design and Analysis: Conventional or Computational?
BIM plays a crucial role in the conception, modelling, and management of physical infrastructure, allowing architects and engineers to design within a 3D parametric environment. Unusual structural systems (e.g., buildings in seismic areas, tensile structures, reinforced concrete shells, diagrid structures) pose significant geometric, modelling, and analysis challenges. Conventional approaches with Revit and Robot, entail extensive resource allocation, are time-consuming and provide limited flexibility to accommodate significant variations. As a result, this case study investigates the automation of complex parametric structural systems. It explores the Revit/Dynamo/Robot interface and procedures to minimise data contamination, examines the flexibility to accommodate variations at any stage of the design process, and ultimately aims to increase productivity across the Atkins? infrastructure business. Several case studies have been investigated, and algorithms have been developed combining Dynamo's comprehensive set of pre-defined nodes, with the development of advanced Python coding. The case study begins with the development of an algorithm for multi-storey flat-slab buildings with stability to be provided by shear-walls in two orthogonal directions. Buildings in high-seismicity areas require a shearwall/floor plan area ratio of 1.5%, and specific Python code has been developed accordingly. Assuming even column distribution, constant floor-to-ceiling height, and regularity in plan and elevation, the algorithm is governed by six input parameters: Width, Length, Floor-to-ceiling height, Number of storeys and Column grid spacing (X, Y). No difficulties were encountered in the Dynamo/Robot interface. It then directs attention towards a second case study involving high-rise structures, and a third case study comprising complex surfaces.
1 - 20 of 61 results