Adding functionality to placing duct button.

Adding functionality to placing duct button.

Anonymous
Not applicable
279 Views
1 Reply
Message 1 of 2

Adding functionality to placing duct button.

Anonymous
Not applicable

(I'm still very new to Revit.)

 

After(or before) placing new ducts(with duct fittings) I want to select duct system type and diameter on all new ducts/fittings as easy as possible. I've looked at writing the duct-placing function and just adding the functionality I want, but I can't find how to replicate the visual part(angle ruler++) of the duct placing function you get when clicking the 'Duct' button in the 'Systems' tab.

 

Is there a ducts-and-fittings-have-been-placed event I can listen to?

 

Is there a way to replicate the whole Ducts/fittings-placing function with just the PickPoint() method?

 

Some other way?

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

augusto.goncalves
Alumni
Alumni
I believe would be easier to register for the DocumentChanged event, track new ducts, wait until Revit goes Idle and make the changes you need.

Important: do not make changes inside DocumentChanged event (will enter a loop).
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes