Thomas Schlüssi Posted February 4 Posted February 4 Hello everyone! I'm relatively new to Revit and am now looking for a way to change a parameter using a shortcut. In detail, I want to achieve the following: 1.) Select an object where a certain parameter is to be adjusted. 2.) Use the shortcut V+'NUMPAD+' to increase the value by 1, and use the shortcut V+'NUMPAD-' to decrease the value by 1. Basically, I want to use this help to adjust the offset in the 2D view of sockets that are on top of each other. How can I do this? Would a macro help here? Maybe someone can help me. Thanks! Quote
Alishnas Brown Posted Monday at 10:43 AM Posted Monday at 10:43 AM Hey, It’s great that you’re looking to speed up your workflow with shortcuts. Unfortunately, Revit doesn’t have a built-in way to directly change a parameter using a shortcut, but there are a few ways to achieve what you’re looking for. One option is using Dynamo, which doesn’t require coding. You can create a simple script that selects an element, reads its offset parameter (or any other parameter you need), and increases or decreases the value by 1. Once set up, you can assign a shortcut to run the script, making the process feel seamless. If you’re comfortable with a little coding, a Revit macro in C# or Python is another approach. The macro would select the object, access the offset parameter, and adjust its value by +1 or -1. You could then assign shortcuts like V + NUMPAD+ for increasing and V + NUMPAD- for decreasing the value. If you’d like, I can help guide you through the setup process. Alternatively, if you’d rather not deal with coding or scripting, there are third-party tools like PyRevit that allow you to create custom scripts and map them to shortcuts easily. Hope this helps! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.