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

How to activate and close the IFC Export dialog #80

Open NicklasOestergaard opened 3 years ago

NicklasOestergaard commented 3 years ago

How can I enable Revits OS IFC exporter so I can use and save IFC export-settings for my Dynamo scripts. I can activate the exporter by using uiapp.PostCommand (RevitCommandId.LookupPostableCommandId ("ID_EXPORT_IFC")), but I can not close the dialog and run the last part om my script.

petersmithfromengland commented 1 year ago

Hi @NicklasOestergaard is this one still a problem for you? At first glance it seems like more of a Revit API question than an issue with RBP so you may get better traction on finding an answer on the Dynamo/Revit API forums.

Postable command only really automates the clicking of the command button on the revit toolbar. In your case there wouldn't be a close dialog method or command. Does the export IFC method on the document class get you any closer to what you're trying to achieve?

https://www.revitapidocs.com/2019/7efa4eb3-8d94-b8e7-f608-3dbae751331d.htm