As my first forray into the Revit API, I want to be able to automate the process of saving out NWC files from various views in a project. If possible I'd like to script this, so that it can be done on a schedule, say daily at a certain time.
Is this possible without too much time and effort?
What would be the best approach to tackle something like this?
Where can I find sample code to get me going?
Yes that can be done. I've seen a class in AU about it.
It's a little bit messy as it involves using journal files and windows task scheduling. If I can find the link (when at home) I'll pass it to you!
Messy isn't the word for it. If I remember correctly they were using DWF files because of a dialog that kept coming up. And their report may have been a text file or something, no images in any case.
Anybody can sign up for the AU site to access to the class materials from the AU in the past. Feel free to register for it.
As to the original question about API for exporting NWC, that feature is an addin coming from Navisworks product. No API within the Revit for that. We have a wish to make it accessible through API, however.
Technically speaking, it is possible to write your own using Revit API and Navisworks NWcreate API. But it will involve quite a lot of coding, I'm sure.
Access a broad range of knowledge to help get the most out of your products and services.