GithubHelp home page GithubHelp logo

Comments (9)

DanRumery avatar DanRumery commented on June 18, 2024 1

@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.

cellophane303 avatar cellophane303 commented on June 18, 2024 1

@winterweken

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.

winterweken avatar winterweken commented on June 18, 2024

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.

winterweken avatar winterweken commented on June 18, 2024

@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.

winterweken avatar winterweken commented on June 18, 2024

@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.

walid-el avatar walid-el commented on June 18, 2024

from revitbatchprocessor.

htlcnn avatar htlcnn commented on June 18, 2024

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.

walid-el avatar walid-el commented on June 18, 2024

from revitbatchprocessor.

htlcnn avatar htlcnn commented on June 18, 2024

from revitbatchprocessor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.