Automating Revit 2 Create More Flexible Scripts to Share for REVIT Productivity: Automating Revit, #2
By Max Drake
()
About this ebook
Extending scripts to generalize for better sharing
In this book I look at extending the work in book 1 from specific to generalise the scripts so that other users can modify them to suit their needs, thus making the scripts more shareable
Keyboard Shortcuts like in Revit for your Script Commands
I introduce how to make Keyboard Shortcuts for triggers similar to Revit Keyboard Shortcuts so that triggering your scripts feels as if they are part of Revit
GUI's & Bubble Notes
We look at GUI's and how to build them so that you can make User Inputs easier and effective as well as Bubble Notes with Schedules.
First Book Specific, this book extends scripts for sharing
In the first book I try and show how you can create your own scripts to do mundane and common tasks in Revit, speed up your productivity & also be able to accurately measure your increased productivity.
I hope this is a useful tool in your arsenal of becoming a better designer.
Max Drake
Max Drake is a registered New Zealand Architect originally from England & trained as a Draftsperson and travelled and worked as a designer in Europe USA, Asia, Australia & New Zealand. Taught at the Royal University of Phnom Penh, Cambodia as an Architecture Lecturer as a NZ Volunteer with VSA. A freelance designer working in Architecture, Building Services & Structures. Worked with the UN in East Timor as UNV and UN staff working on reconstruction & Mission support. VAST Blog on Visual Asset Strategic Tools about BIM, Revit and programming & data capture (https://cr8ive.tk/)
Read more from Max Drake
Automating Revit
Related to Automating Revit 2 Create More Flexible Scripts to Share for REVIT Productivity
Titles in the series (2)
AUTOMATING REVIT 1: Create- Simple Scripts for Beginners to Speed up your REVIT Productivity: Automating Revit, #1 Rating: 0 out of 5 stars0 ratingsAutomating Revit 2 Create More Flexible Scripts to Share for REVIT Productivity: Automating Revit, #2 Rating: 0 out of 5 stars0 ratings
Related ebooks
Autodesk Inventor 2019 For Beginners - Part 1 (Part Modeling) Rating: 0 out of 5 stars0 ratingsAutodesk Revit Complete Self-Assessment Guide Rating: 0 out of 5 stars0 ratingsRevit 2020 for Architecture: No Experience Required Rating: 0 out of 5 stars0 ratingsAutodesk Revit A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsAutodesk Revit 2023 Black Book Rating: 5 out of 5 stars5/5Autodesk Revit 2024 Black Book Rating: 0 out of 5 stars0 ratingsAutodesk Revit A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsAutodesk Revit 2020 Black Book Rating: 0 out of 5 stars0 ratingsBIMKIT: The Practical Guide to BIM construction adoption Rating: 5 out of 5 stars5/5Exploring Autodesk Revit 2018 for MEP, 5th Edition Rating: 1 out of 5 stars1/5Autodesk Revit A Complete Guide - 2019 Edition Rating: 0 out of 5 stars0 ratingsExploring Autodesk Revit 2017 for MEP, 4th Edition Rating: 0 out of 5 stars0 ratingsResidential Roof Design Using Autodesk® Revit®: For Beginning and Experienced Revit® Designers Rating: 0 out of 5 stars0 ratingsAutodesk® Revit Basics Training Manual Rating: 5 out of 5 stars5/5Integrated Building Information Modelling Rating: 1 out of 5 stars1/5Green BIM: Successful Sustainable Design with Building Information Modeling Rating: 1 out of 5 stars1/5Autodesk AutoCAD 2013 Practical 3D Drafting and Design Rating: 0 out of 5 stars0 ratingsAutodesk Revit 2021 Black Book Rating: 5 out of 5 stars5/5ArchiCAD 19 – The Definitive Guide Rating: 3 out of 5 stars3/5Exploring Autodesk Navisworks 2016 Rating: 0 out of 5 stars0 ratingsExploring Autodesk Revit 2017 for Structure , 7th Edition Rating: 1 out of 5 stars1/5Exploring Autodesk Revit 2018 for Structure, 8th Edition Rating: 5 out of 5 stars5/5Exploring Autodesk Revit 2020 for Architecture, 16th Edition Rating: 0 out of 5 stars0 ratingsExploring Autodesk Revit MEP 2016 Rating: 4 out of 5 stars4/5Mastering Autodesk Revit 2020 Rating: 0 out of 5 stars0 ratingsBIG-BIM 4.0: Ecosystems for a Connected World Rating: 4 out of 5 stars4/5Exploring Autodesk Revit 2018 for Architecture, 14th Edition Rating: 5 out of 5 stars5/5AutoCAD LT 2017 for Designers, 12th Edition Rating: 0 out of 5 stars0 ratingsMastering Lumion 3D Rating: 5 out of 5 stars5/5
Architecture For You
Architecture 101: From Frank Gehry to Ziggurats, an Essential Guide to Building Styles and Materials Rating: 4 out of 5 stars4/5House Beautiful: Colors for Your Home: The Ultimate Guide to Choosing Paint Rating: 0 out of 5 stars0 ratingsHow to Fix Absolutely Anything: A Homeowner's Guide Rating: 4 out of 5 stars4/5The Little Book of Living Small Rating: 5 out of 5 stars5/5The 1950s American Home Rating: 5 out of 5 stars5/5Martha Stewart's Organizing: The Manual for Bringing Order to Your Life, Home & Routines Rating: 4 out of 5 stars4/5Architectural Digest at 100: A Century of Style Rating: 5 out of 5 stars5/5My Creative Space: How to Design Your Home to Stimulate Ideas and Spark Innovation Rating: 4 out of 5 stars4/5Feng Shui Modern Rating: 5 out of 5 stars5/5Solar Power Demystified: The Beginners Guide To Solar Power, Energy Independence And Lower Bills Rating: 5 out of 5 stars5/5Shinto the Kami Way Rating: 4 out of 5 stars4/5Become An Exceptional Designer: Effective Colour Selection For You And Your Client Rating: 3 out of 5 stars3/5The New Bohemians Handbook: Come Home to Good Vibes Rating: 4 out of 5 stars4/5How to Build Shipping Container Homes With Plans Rating: 3 out of 5 stars3/5Live Beautiful Rating: 4 out of 5 stars4/5Architecture and How to Sketch it - Illustrated by Sketches of Typical Examples Rating: 2 out of 5 stars2/5The Year-Round Solar Greenhouse: How to Design and Build a Net-Zero Energy Greenhouse Rating: 5 out of 5 stars5/5Building Natural Ponds: Create a Clean, Algae-free Pond without Pumps, Filters, or Chemicals Rating: 4 out of 5 stars4/5Making Midcentury Modern Rating: 4 out of 5 stars4/5Down to Earth: Laid-back Interiors for Modern Living Rating: 4 out of 5 stars4/5Complete Book of Home Inspection 4/E Rating: 0 out of 5 stars0 ratingsWalkable City: How Downtown Can Save America, One Step at a Time Rating: 4 out of 5 stars4/5Welcome Home: A Cozy Minimalist Guide to Decorating and Hosting All Year Round Rating: 0 out of 5 stars0 ratingsMove Your Stuff, Change Your Life: How to Use Feng Shui to Get Love, Money, Respect and Happiness Rating: 4 out of 5 stars4/5Frommer's Athens and the Greek Islands Rating: 0 out of 5 stars0 ratingsThe Nesting Place: It Doesn't Have to Be Perfect to Be Beautiful Rating: 4 out of 5 stars4/5Cozy Minimalist Home: More Style, Less Stuff Rating: 3 out of 5 stars3/5How Paris Became Paris: The Invention of the Modern City Rating: 4 out of 5 stars4/5
Reviews for Automating Revit 2 Create More Flexible Scripts to Share for REVIT Productivity
0 ratings0 reviews
Book preview
Automating Revit 2 Create More Flexible Scripts to Share for REVIT Productivity - Max Drake
INTRODUCTION
This book follows on from AUTOMATING REVIT: Create Simple Scripts for Beginners to Speed up your REVIT Productivity
In the above book I went through the basic script methods that I have found work with Revit. The book is focused on someone who is a beginner at programming and there are workable examples of scripts throughout the book (and can be downloaded) so that the scripts can be used directly so that new users can become familiar with working scripts and then start hacking/adapting them to their own needs.
This book leads on from there, to look at modifying a script for a specific user to look at how to genralise the script for multiple users, allowing individuals to modify them to their own preferences.
Initially it was to be in 2 parts:
Part 1- Generalising the scripts
Part 2- Deploying the scripts
The Deploying the script got a little out for control and I wasn’t sure where to stop. I decided that that could be a separate book and it will be more generalised, not only for people deploying Revit scripts. I have that book mostly developed, I just have to write a prequal to it for general use. So watch this space.
I hope it adds value to the way you work and the way you share your work.
Bonus script from Book 1 Free Download
At the end of book1 I have written a script that I use to manage a lot of my day to day production. It is quite long. I have it in a downloadable form if you follow the link below.
It comes in 4 parts:
Main Script File: eBookRevitProductivity.ahk
Support Ini file: eBookRevitProductivityUserSettings.ini
Count file for Frequency of use Keys: eBookFrequency.ini
Revit Keyboard Shortcut XML file (to merge with your existing Revit Keyboard Shortcuts - KeyboardShortcutsRevitProductivity.xml
Book 1 Bonus Script Link
ACKNOWLEDGEMENTS
This book is published through Draft2Digital. Thank you for your assistance in publishing this book.
DEDICATION
I would like to dedicate this book to my Brother Gavin Drake & his family, his loving wife Lisa & his son George and his family. They are going through a tough time at the moment with Gavin’s illness. I wish them all strength and love.
CHAPTER 1- FOLLOW ON FROM BOOK 1
Previous book contents
The previous book in the series, AUTOMATING REVIT: Create Simple Scripts for Beginners to Speed up your REVIT Productivity began with the premise that you had little or no understanding of scripting, but focused on using AutoHotKey to interact with Revit. It was left for the reader to teach themselves other features of AutoHotKey for its other practical productivity uses.
The book contained a simple introduction to using AutoHotKey with and within Revit and as well as showing the scripts also added links for downloadable script files of all the code in the book. It also contained how to setup your environment to be able to run scripts.
If you are coming to this topic without reading the previous book you will find that this book makes little sense.
In book 1 I wanted to give you the fundamental knowledge for scripting with Revit so you can build your own scripts to overcome a personal issue you have with Revit, it may be a mirror command or an issue with dialogue boxes (mine being Visibility Graphics as a particular item of annoyance for me).
The book outlines strategies I used to make using scripts effective in Revit.
This books objectives
This book proceeds on the understanding that the reader has a basic understanding of scripting and how it can be used with Revit.
The topics will be a little haphazard as we will be dealing with enhancements to procedures that were in book 1.
In this book I want to try and move from the specific to more generalized scripting, so not only for yourself but for others, and allowing them to make some adjustments to suit their needs.
There are also considerations about remapping keys, creating Keyboard Shortcuts , similar to Revit Keyboard Shortcuts instead of using Hotkeys (Key and hold down Modifier keys, eg Ctrl+C)
On this same theme we look at ease of use by adding in GUI’s (Graphical User Interfaces- Or pop-up dialogue boxes) so that we simplify User input into Script commands. These were shown in Book 1 but in this book we build one from scratch.
We also look at using Bubble Notes Based on Revit Pure Plan Notes which have Bubbles and schedules.
In Book 1 I used short Videos as explainers, but these have not been utilized at all so I will not add videos at this point to the book (apart from in the Bubble Notes chapter) but if there is an increased use of them in Book 1 I may add some later.
So first we will take a bit of bespoke code and genralise it.
CHAPTER 2- FROM PERSONAL TO GENERAL-MODIFYING SCRIPT FOR FLEXIBILITY
Visibility Graphics Line & Room Toggle – Our starting point. From Book 1 Chapter 6
Download All Main & Support Files for Chapter 2
Hindsight & 20-20 vision
In a way this is a bit unfair, as I already know the solution after hammering my head against the wall trying to abstract this process from the specific to the general.
The steps and reasoning seem logical and obvious, but while I was grappling to make this a workable solution I went along a lot of wrong paths, and had to start from square one a number of times and try different solutions.
If I were to try and do this again from the beginning, I may even take a different path.
I would do more reading on blogs and forums looking for specific and general issues that were similar to ones I found myself with and see if their methods could help me.
After finding a solution to a number of similar issues, several of the notes methods started specific and I tried to generalize, and I’m trying to apply them to other issues as they arise. I’ve abstracted, in my opinion, the steps I took to reach the goal.
So although the text below flows, that wasn’t how the script was created. This is just shown as 1. Specific solution. 2/ Steps I think I took to take an idea from Specific to general solution & 3/ The solution.
A lot of blood sweat & tears and very bad scripting in between.
Information for setup
In the Appendix I have brought across Chapter 6 from Book 1.
You should read this before proceeding further otherwise the following won’t make sense.
There are links to videos showing:
Demonstration of the script working
Use of TootltipCoordinates.ahk
Use of CrossHairOnScreen.ahk
There is also a download file of the scripts for:
Line & Room Toggle
TootltipCoordinates.ahk
CrossHairOnScreen.ahk
This script, from Book 1 Chapter 6.
It is very specific & targeted.
It only goes to Line &