bvn-architecture / RevitBatchProcessor

Fully automated batch processing of Revit files with your own Python or Dynamo task scripts!
GNU General Public License v3.0
288 stars 76 forks source link

'Use same Revit session for Revit files of same Revit Version' is greyed-out #87

Closed paulmst closed 1 year ago

petersmithfromengland commented 2 years ago

Hi @paulmst is this still a problem? Can you provide a snip of your GUI or abit of information about the environment you're trying to run RBP in/from?

ShinK360 commented 1 year ago

Hi. Thank you for this great app. This is an awesome tool indeed! I installed the latest (1.9 Beta). Thanks again for upgrade. I am currently having the same issue. The option is greyed out.

2022-12-13 12 44 45

petersmithfromengland commented 1 year ago

Thanks @ShinK360

Can you provide a snip of the full GUI so I can see the other settings?

Are you trying to load a dynamo graph? Because that has to use a separate Revit session for each file

Cheers, Pete

ShinK360 commented 1 year ago

Hi Peter

Thank you for coming back to me. Here is the screen shot. I run a Dynamo script that QA and export data to Excel file on multiple Revit models in different Revit Versions from both Local and BIM360. It actually doesn’t matter if the models are from cloud or local, the option is always greyed out since the previous version. I hope I was not doing anything wrong.

@.***

Ngā Mihi

Shin Kameyama | BIM Manager

architectus™ | @.*** https://www.instagram.com/architectus.nz/ | +64 9 307 5970 | Auckland - Christchurch - Wellington | www.architectus.co.nzhttp://www.architectus.co.nz/

From: punderscoresmithuk @.> Sent: Tuesday, 13 December 2022 1:07 pm To: bvn-architecture/RevitBatchProcessor @.> Cc: Shin Kameyama @.>; Mention @.> Subject: Re: [bvn-architecture/RevitBatchProcessor] 'Use same Revit session for Revit files of same Revit Version' is greyed-out (Issue #87)

Thanks @ShinK360https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FShinK360&data=05%7C01%7Cshin.kameyama%40architectus.co.nz%7Ceaee3abf3b8145de9d1d08dadc9dfdb0%7C7d6696fcd7534de3a0634576b5b5358e%7C0%7C0%7C638064868379404032%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bJhokTY5JitQPrx8yvZgxrySPg1%2F4BdrElkmtA2aLWo%3D&reserved=0

Can you provide a snip of the full GUI so I can see the other settings?

Are you trying to load a dynamo graph? Because that has to use a separate Revit session for each file

Cheers, Pete

— Reply to this email directly, view it on GitHubhttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbvn-architecture%2FRevitBatchProcessor%2Fissues%2F87%23issuecomment-1347553397&data=05%7C01%7Cshin.kameyama%40architectus.co.nz%7Ceaee3abf3b8145de9d1d08dadc9dfdb0%7C7d6696fcd7534de3a0634576b5b5358e%7C0%7C0%7C638064868379404032%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qprf0r3eTZ2q9uDw%2FNI7MkcC8zI%2FPNyOZ8Uk7M8YrZ4%3D&reserved=0, or unsubscribehttps://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAY23IRDFAYNVCG7LUMWWDVTWM643BANCNFSM5JZL6BKA&data=05%7C01%7Cshin.kameyama%40architectus.co.nz%7Ceaee3abf3b8145de9d1d08dadc9dfdb0%7C7d6696fcd7534de3a0634576b5b5358e%7C0%7C0%7C638064868379404032%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ymSlQUM66itdBc9LzTXHq2t65LBwIk0jegzZouBBRvI%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>

petersmithfromengland commented 1 year ago

Hi @ShinK360

The screenshot didn't come through for me unfortunately but I think I can see the problem here. Whenever you are using a dynamo file for your task script RBP can only execute them in separate Revit sessions.

See the below excerpt from the Known limitations/issues section of the repository:

Dynamo scripts will always be executed using the 'Use separate Revit session for each Revit file' option. This restriction is due to the context in which Revit Batch Processor operates with the Revit API, which prevents the active UI document from being closed or switched during the Revit session. (NOTE: When executing a Dynamo task script, the Revit Batch Processor opens the document in the UI and is therefore subject to this Revit API limitation. For Python task scripts, the Revit Batch Processor only opens the document in memory, so Python scripts do not suffer this restriction!)

I'll close this issue because it is a known limitation when working with the Revit API. Please do log any bugs in the future though

Cheers, Pete