Comments (9)
@winterweken That's a good question actually. Some of Revit's dialog boxes are not built with the usual windows UI elements (i.e. they're not Win32-style dialog boxes with button controls, etc) so they are tricky to interact with using automation.
The revit_dialog_util.py
module handles Revit dialog boxes that are supported to be handled via the Revit API so it's likely it won't help you interact with the Purged Unused Dialog box.
However, if you study the code in the revit_dialog_detection.py
module, you'll see how Revit Batch Processor is using some helper functions to access the Win32 API to handle some dialog boxes that the Revit API won't handle.
There's no guarantee that this would help handle your dialog box but it's a start. If I find some time I may experiment with handling that dialog box.
from revitbatchprocessor.
I was hoping this was a quick way to a batch purge, but I also see the benefit at this point of just writing a purge script that's able to target the categories that I want. That said, it would be great if we had a repo where we could share scripts. Thanks again!
Here is one I put together a while ago (Dynamo 1.3ish, if you want a 2.0 I can upload it as well):
Manage-SubCategories-Delete.zip
It is a little clunky, but it works by looking at subcategories to keep, and deleting everything else. System subcategories are ignored by the delete module. I'm testing out using a spreadsheet with all of the subcategories and so far it is working well.
And here is one that should purge everything based on a directory input. At least I think - I haven't used it in a while...
Purge Current Document.zip
And I second a dynamo graph / python repository. That would be sweet.
from revitbatchprocessor.
I have a similar issue - not sure if I'm going about it the correct way.
With a postable command I am opening the Purge Unused Dialog, next I want to press 'Ok'
I've failed a-many-a- times trying the revit_dialog_util - I don't know how to capture this dialog, or point this util to the right button. Any insight or help is appreciated.
from revitbatchprocessor.
@DanRumery Interesting.
Thanks, this is great help. I'll dive into that detection module to see if I'm able to path my way to that Ok button.
I was hoping this was a quick way to a batch purge, but I also see the benefit at this point of just writing a purge script that's able to target the categories that I want. That said, it would be great if we had a repo where we could share scripts. Thanks again!
from revitbatchprocessor.
@cellophane303 Thanks for sharing these. They are a great help - trying to avoid the dynamo route and get this done through python. Once I finish, I'll be sure to share my script here too.
Thanks again!
from revitbatchprocessor.
from revitbatchprocessor.
HELLO DAN i am trying to run RBP on a list of file, but i get this error 12:58:01 : - Exception: [Exception] The file-based central model could not be reached, because e.g. the network is down or the file server is down.12:58:01 : - .NET exception: [CentralFileCommunicationException] The file-based central model could not be reached, because e.g. the network is down or the file server is down any ideas how can i fix this
…
On Tue, Apr 30, 2019 at 4:27 PM Carter @.***> wrote: @cellophane303 https://github.com/cellophane303 Thanks for sharing these. They are a great help - trying to avoid the dynamo route and get this done through python. Once I finish, I'll be sure to share my script here too. Thanks again! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#19 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AJV7NUSGHBTZYPZEP33CI2TPTBQOTANCNFSM4FKRH37Q .
Please read exception. It couldn't connect to server.
from revitbatchprocessor.
from revitbatchprocessor.
from revitbatchprocessor.
Related Issues (20)
- Instllation issue HOT 2
- Revit 2023 wouldn't load HOT 1
- 'Elements Lost on Import' dialog box - Could not find suitable button to click HOT 2
- Suggestion to improve pre-processing time 40x HOT 2
- Execute C# dll using RBP HOT 2
- Files in B360 HOT 5
- Could not find suitable button @dialog box: "Some numerical data within the imported file was out of range..." HOT 2
- Revit 2024 support HOT 4
- can run in W11? HOT 2
- IronPython 3.4 support
- Uninstall dynamo 2.13 for Revit 2023 HOT 3
- RBP Configuration HOT 3
- Cannot open the model in Revit 2023. Please help!
- Wish - Open Specified Worksets HOT 2
- Rhino.Inside multi-Rhino version dialog HOT 1
- Feature Request - Run at scheduled interval HOT 4
- Problem with using RBP version 1.7 HOT 1
- Can't import revit_script_util and revit_file_util HOT 3
- Unhandled Failure on Document Opening HOT 4
- Fail to recognize all Revit versions installed in my PC HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from revitbatchprocessor.