Custom Button Functionality

Custom Button Functionality

Anonymous
Not applicable
541 Views
1 Reply
Message 1 of 2

Custom Button Functionality

Anonymous
Not applicable

I’m looking to speed up my work flow in Revit 2017/2018 by making the “Set Work Plane” and then the “Pick A Plane” option all into one button.

 

Basically, when you click the “Set Work Plane” button you then have a prompt that you then need to choose.

 

I use the function so much that I would like to make a single button that goes right to “Pick a Plane” without any prompts.

 

I already know how to code and I already make my own buttons but I’m not sure how to duplicate the functionality that Revit does.

 

Is there a way for me to do this? Is there a way for me to "see" what Revit does so I can utilize that? 

0 Likes
542 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Tmistretta,

 

Thank you for your query.

 

That sounds like a fine idea to me.

 

To 'see' what Revit does, your best bet would be to read the journal file generated.

 

I am not sure exactly what the steps you describe do internally, but I suspect that it is pretty easy to realise, even without any knowledge of the Revit internals.

 

Here is an article by The Building Coder from 2011 demonstrating how to pick a face on an element and then use that to set a new active workplane on which you can pick points in 3D:

 

http://thebuildingcoder.typepad.com/blog/2011/11/pick-a-point-in-3d.html

 

Is that more or less what you are trying to achieve?

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes