Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect PyRevit To Design Automation Revit #2288

Open
chuongmep opened this issue Jun 20, 2024 · 1 comment
Open

Connect PyRevit To Design Automation Revit #2288

chuongmep opened this issue Jun 20, 2024 · 1 comment
Labels
New Feature New feature request [class->Implemented #{number}: {title}]

Comments

@chuongmep
Copy link
Contributor

chuongmep commented Jun 20, 2024

Is your feature request related to a problem? Please describe

Some challange I want to try, don't know whether have any people doing that yet ?
https://stackoverflow.com/questions/77806477/pyrevit-should-be-supported-in-design-automation-for-revit

Describe the solution you'd like

No solution availbale for now

Describe alternatives you've considered

Some of part like engine will run in cloud and execute script.

Additional context

Just see some people ask about that, but it will be good because I also want try something relate to execute process use python script.

@chuongmep chuongmep added the New Feature New feature request [class->Implemented #{number}: {title}] label Jun 20, 2024
@sanzoghenzo
Copy link
Contributor

My suggestion? learn c# and build a plugin with that 😉

The main advantage of using python and pyrevit is the ability to do RAD (Rapid Application/Add-in Prototyping), so that you can change the code of a command without reloading revit. That advantage is completely lost on Design Automation API.

There would be a huge work to extract the python engine part just to run a script;
It's much more easy to create a new plugin with just the IronPython Engine and the instructions to run your script.
But at this point, you'll be better off just writing the script directly in c#, to avoid the IronPython external dependency altogether and stay in the realm of managed, more secure code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New feature request [class->Implemented #{number}: {title}]
Projects
None yet
Development

No branches or pull requests

2 participants