Is it possible to make a tool run on startup? Example a tool to prevent the use of model in place families. I was able to get it to work but you have to manually run it, which defeats the purpose
This is currently not possible, but in a rather near future we’ll introduce hooks and docked panel tools , for tools that can run live in a panel as you model, and tools that start with Revit or a Revit project. I’ll be in touch if you’re interested in beta testing ![]()
Hi @HWReedWeinstock,
I am Emrullah, Growth Product Manager at Orkestra Online! Thanks for sharing your feedback with us.
I would like to update that with Orkestra Online 2.7 version that has been released last week, this is now possible!
Feel free to download the latest version from orkestra.online website and give it a try! We would be happy to get your feedback.
Also, to give an idea about how you can use panels with OkPy Agent, you can check out these two examples:
1- Real Time Render
2- Real Time Model Health Checker
Looking forward to hearing your feedback!
Ive been trying to figure out how to make the “event” tools inside of Okpy. Is there a specific button or setting im missing. I tried looking for the documentation but couldnt find any
Hi @HWReedWeinstock,
You can just prompt it. There is no specific button. An example prompt template would be:
“Make an event driven panel tool that will do X when Y happens.”
Make sure of that you have the Orkestra 2.7 version, as well.
I hope this helps!
I have the latest installed and i have tried 3x and it wont work.
Would it be possible for you to share what you are experiencing? Is agent completing the step and showing you the test button? If yes, when you click on the test, do you see a panel is opening up in Revit? You need to minimize the OkPy Agent window to be able to see it in case you are working with a full-size window. It won’t automatically bring the panel like a window.
In addition, it is possible that Windows Smart App Control is blocking it. If you have permissions, can you search for “Smart App Settings” on Windows Search bar and turn it off and try it again?
If you are still facing with issues after all these steps, can you send your log file located at %APPDATA%\orkestra\logs to e.yildiz@orkestra.online?
Thanks for your collaboration!
I guess what i was hoping for was for it to run in the background without a panel or window.
I’m trying to intercept a command specifically model-in place and have it pop up with a warning
Thanks for sharing more details about your workflow. This helps clarify the issue.
I reviewed your logs, and based on what you want to achieve, there is an important technical limitation to consider.
Due to the nature of OkPy Event Tools, they cannot be triggered directly by clicking Revit commands. Instead, they respond to supported events such as opening a model, modifying elements, saving, starting Revit or syncing.
If you are interested in, here is a little bit deep diving for technical reasons behind this limitation:
Why is command interception restricted?
In the Revit API, developers can subscribe to events using the += operator. For example, a command handler can be attached through AddInCommandBinding.BeforeExecuted to detect when a user executes a supported Revit command.
However, these subscriptions can remain active in Revit’s memory even after the script that registered them has finished executing.
If an Event Tool is disabled, updated, or removed without properly unsubscribing from these events using -=, its handlers could continue running in the background. This could lead to duplicate event handlers, unexpected warnings, conflicts with other add-ins, or unpredictable behavior.
To prevent these lifecycle and stability issues, OkPy restricts direct event subscriptions and command interception within Event Tools.
In your logs, I noticed that the system attempted to create a panel tool but switched back to a regular tool after the generated code failed validation. This appears to be related to these restrictions.
There are two alternative approaches worth considering:
1. Model monitoring through a Panel Tool
A Panel Tool could scan the active model for in-place families and display them in a structured list, including their names, categories, and element IDs.
This would help your team identify existing in-place families and implement specific rules according to your BIM standards that you cannot do with Revit scheduling. It could be refreshed every time an element is created or manually clicking on a refresh button.
2. Automated detection through an Event Tool
An Event Tool using the Elements Changed trigger could inspect model changes and identify newly created in-place families.
When an in-place family is detected, the tool could display a warning that the element may violate your project’s modeling standards.
This would provide automated feedback without requiring a panel to remain open. However, the warning would appear after the family is created rather than when the Model In-Place command is clicked.
For your workflow, I would recommend the second approach, as it is closer to your original goal of providing automated warnings in the background.
If the warning must appear before users start modeling, a custom Revit add-in using AddInCommandBinding would be the appropriate direction to investigate, provided the Model In-Place command supports binding. This is outside the supported scope of OkPy Event Tools to give the safest workflows to protect your models.
Hey @HWReedWeinstock !
There’s no setting for it in the UI indded, because events are defined entirely in the tool’s code. To create an event tool, just ask the agent, for example: “Create an event tool that does X whenever Y happens.”
In your case that would be “whenever a user tried to launch in place model tool, block it and show a popup”.
The UI then shows you clearly which events trigger which tools, so reviewing is all done from there.
If you already have a working tool you’d like triggered by events, open it (or make a copy if you want to keep the original) and ask the agent to make it run on the events you want. That should work very well! ![]()
@emrullah.yildiz I do not think the issue is related to app settings.
Though in this case it’s trying to listen to button pressing so any of his suggestions could work, or you can ask to listen to the moment someone finishes the creation of the in place model.
