Revit API

Reply
Active Member
corey.schiller
Posts: 8
Registered: ‎09-08-2011
Message 1 of 7 (394 Views)

Automate exporting NWC files?

394 Views, 6 Replies
05-10-2012 09:12 PM

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?

 

Thank you!

Contributor
m.p.diker
Posts: 12
Registered: ‎01-13-2011
Message 2 of 7 (347 Views)

Re: Automate exporting NWC files?

05-25-2012 12:53 AM in reply to: corey.schiller

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!

Active Member
corey.schiller
Posts: 8
Registered: ‎09-08-2011
Message 3 of 7 (344 Views)

Re: Automate exporting NWC files?

05-25-2012 05:40 AM in reply to: corey.schiller

Yes, if you can find that info it would be much appreciated!

Contributor
m.p.diker
Posts: 12
Registered: ‎01-13-2011
Message 4 of 7 (338 Views)

Re: Automate exporting NWC files?

05-26-2012 08:24 AM in reply to: corey.schiller

Here you go..

 

http://au.autodesk.com/?nd=class&session_id=9039

 

CR3220 Automating Autodesk® Navisworks® Clash Reports

Distinguished Contributor
bthatcher
Posts: 749
Registered: ‎12-12-2003
Message 5 of 7 (254 Views)

Re: Automate exporting NWC files?

09-04-2012 06:17 AM in reply to: m.p.diker

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.

Active Member
corey.schiller
Posts: 8
Registered: ‎09-08-2011
Message 6 of 7 (248 Views)

Re: Automate exporting NWC files?

09-04-2012 06:42 AM in reply to: corey.schiller

Thanks for the reply, unfortunately I don't have an AU subscription..

ADN Support Specialist
mikako.harada
Posts: 52
Registered: ‎08-26-2007
Message 7 of 7 (234 Views)

Re: Automate exporting NWC files?

09-06-2012 08:09 AM in reply to: corey.schiller

Hi Corey,

 

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.

 


Mikako Harada
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.