GithubHelp home page GithubHelp logo

Comments (3)

DanRumery avatar DanRumery commented on June 2, 2024

@jeremytammik

Hi Jeremy, many thanks for sharing it!

  1. There is a log file that records the consoles output seen in the GUI. (Log files by default are written to the folder %APPDATA%\BatchRvt). It logs stuff like process Revit startup and monitoring, files processed, file actions (open, closing, detach, file type, path, etc). But any custom actions performed by a script would be left up to the script to record action-specific progress. If using a python script there is a utility function Output() for logging to RBP's console. Dynamo scripts would need their own mechanism for logging, however.

  2. The Revit process(es) are monitored to detect process exit and process busy events. This info is logged to the console. If a Revit session crashes, RBP starts up a fresh Revit session for any files that remain to be processed (so only the Revit file that lead to the crash will be skipped). Indeed I found this can happen when processing a large amount of Revit files hence the recovery mechanism. You'll see in the UI there is an option to process the files in the same Revit session (when possible) or process every file in its own session but as far as crash recovery is concerned, the behaviour is the same. Note that Dynamo scripts are always made to run in a separate Revit session per file due to some limitations I encountered when closing an active UI document, but python scripts don't have this limitation and hence will process a lot faster!

  3. See 2) :)

from revitbatchprocessor.

DanRumery avatar DanRumery commented on June 2, 2024

There is also a per-file time-out feature that can be used to terminate processing of a file if the time limit is reached. In that scenario the Revit process is forcibly terminated and a fresh session started up to process the remaining files.

from revitbatchprocessor.

jeremytammik avatar jeremytammik commented on June 2, 2024

Wow, that sounds very professional indeed! Congratulations! Thank you for your kind answers. I added them to the blog post: https://thebuildingcoder.typepad.com/blog/2019/11/the-revit-batch-processor-rbp.html#8

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.