Jump to content

Change parameter value by shortcut


Recommended Posts

Posted

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!

Posted

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!

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...