Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

'Export GBXml - Settings' dialog, can I load this via the API

3 REPLIES 3
Reply
Message 1 of 4
RobinDB
331 Views, 3 Replies

'Export GBXml - Settings' dialog, can I load this via the API

I'm using Revit Architecture 2011 and have created an external command addin to export building data to gbxml format and pass it on to another process. I'd also like to include the 'Export GBXml - Settings' dialog  (in the same way as you can do from Revit File command) as part of the addin so users can resolve any issues before exporting. Is there any way I can get access to this dialog via the API?

 

Thanks in advance

3 REPLIES 3
Message 2 of 4
saikat
in reply to: RobinDB

Hi

 

With the Revit API, we will not be able to use the dialog as it is. But we can always create our own dialog which can handle user inputs for the Export settings (similar to what we have in the Revit product UI). This custom dialog that you create in your add-in can use the GBXMLExportOptions API to handle the export settings.

 

The ImportExport SDK sample contains code which shows the usage for GBXMLExportOptions. Please review the SDK sample and see if it helps.

 

cheers



Saikat Bhattacharya
Senior Manager - Technology Consulting
Message 3 of 4
RobinDB
in reply to: saikat

Thanks for the reply Saikat, it's as I suspected.

 

I assume by Export settings you mean the General tab of the Revit dialog. I was also interested in giving the users a chance to view the warnings is it possible to get hold of these via the API? Also, is there any way I could display and manipulate the building as in your dialog, left hand pane, do you have a Windows forms control for example?

 

Thanks again

 

 

Message 4 of 4
saikat
in reply to: RobinDB

Regarding your additional query on GBXml settings, I see that the GBXMLExportOptions is actually not used currently and is a placeholder for future enhancements - when this can be used to set the settings during the export to GBXml.

 

Regarding failure API, the following links should be of help

http://thebuildingcoder.typepad.com/blog/2010/04/failure-api.html

http://thebuildingcoder.typepad.com/blog/2010/11/failure-api-take-two.html

 

Regarding viewer query, you can take a look at the Preview Control (new in Revit 2013 api) and that should help with what you are looking for.

http://thebuildingcoder.typepad.com/blog/2012/03/revit-2013-and-its-api.html

http://thebuildingcoder.typepad.com/blog/user_interface/#23

 

Hope this helps

cheers

Saikat



Saikat Bhattacharya
Senior Manager - Technology Consulting

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community