bvn-architecture / RevitBatchProcessor

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

Wish - Open Specified Worksets #117

Open MagneGanz opened 2 months ago

MagneGanz commented 2 months ago

We use RBP with IFC export and other tasks. For this I believe "Close all worksets" will not work together with "Export only visible elements in View" Option. "Open Last Viewed" seems like having random behavior. "Open all worksets" obviousliy opens too much (especially worksets that includes links), thus taking a long time.

So on the Wishlist (since I do not program my self): Would it be much work to include Worksets to be opened in the Filelist.txt, and then imply that all other worksets should be closed?

onurgoztepe commented 1 month ago

From discussions on the Autodesk Idea Board and due to Revit API limitations, it seems currently not possible to change the default setting for opening worksets via a script. This issue has been recently highlighted here: https://forums.autodesk.com/t5/revit-ideas/allow-change-of-the-default-setting-for-open-worksets-for-an/idi-p/12620059

jchristel commented 2 weeks ago

Hi MagneGanz,

I've got that problem when trying to export to Navis Or IFC and I do not want to load all the links because the export is just meant to include elements in the file I'm opening.

In that case I ran batch processor in two steps: first step detaches the models I want to export, saves then in a temp location, and deletes all the links from the models and sync second step is to open those temp models and export to IFC / navis

@onurgoztepe Not to sure about that. the OP in the link seems to be wanting to change the worksets open settings in the active central file, implying he's got the file open already.

I'm pretty sure there is an an open document argument where you can specify the worksets to be opened. One just need to know them which would require some changes to the current RBP GUI.