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

My scripts only work once I open Dynamo #1378

Closed
cgofer opened this issue Nov 8, 2021 · 1 comment
Closed

My scripts only work once I open Dynamo #1378

cgofer opened this issue Nov 8, 2021 · 1 comment
Labels
Not pyRevit Issue This is not a pyRevit issue. Might be related to environment, host app, or other dependencies.

Comments

@cgofer
Copy link

cgofer commented Nov 8, 2021

Describe the bug
If I use any of the buttons configured thanks to pyRevit without having previously started Dynamo. Even though I close dynamo, the error no longer occurs and the script runs successfully. It happens with all my scripts, although I show the simplest one.

Screenshots
TraceBack
TraceBack

Script
Scrpit

Desktop (please complete the following information):

  • OS: Microsoft Windows 10 [Version 10.0.19043]
  • pyRevit Version 4.8.8
@cgofer cgofer changed the title My scripts only work once I open Dynamo My scripts only works once I open Dynamo Nov 10, 2021
@cgofer cgofer changed the title My scripts only works once I open Dynamo My scripts only work once I open Dynamo Nov 10, 2021
@eirannejad eirannejad added the Not pyRevit Issue This is not a pyRevit issue. Might be related to environment, host app, or other dependencies. label Dec 24, 2021
@eirannejad
Copy link
Collaborator

You are using RevitServices to get the handle to current application and document. This module is part of Dynamo API and is available only when dynamo is loaded. See other pyRevit scripts to see how the doc and uiapp are collected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not pyRevit Issue This is not a pyRevit issue. Might be related to environment, host app, or other dependencies.
Projects
None yet
Development

No branches or pull requests

2 participants