Generation of RFA files part of WCF service.

Generation of RFA files part of WCF service.

Anonymous
Not applicable
442 Views
1 Reply
Message 1 of 2

Generation of RFA files part of WCF service.

Anonymous
Not applicable

I want to use Revit as a Service and I need to access the document object for loading family symbols and creating newFamily Instance and saving the Document as a RFA file.

 

I have many families loaded and use these families to create a family instance. For this the Document object is required.

If we use Revit Addin then we get the Document object through External Command Data. If we use External Application the events gives the UIApplication Object and from there we get the Document object. This is how I am creating the RFA files.

 

But I need create RFA files part of WCF service.

 

Is there any possibility to create the Document Object using COM CoCreateInstance method for loading family symbols and creating newFamily Instance and saving the Document as a RFA file.

 

Or else is there any alternative solution to use the revit part of WCF service to generate the RFA files.

 

I am using Autodesk RevitMEP 2014.

 

Thanks in Advance.

 

Regards,

Sandesh Naik

0 Likes
443 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Sandesh Naik,

 

Basically, the answer is no.

 

If you would like to dig further anyway, here is one possible place to start:

 

http://thebuildingcoder.typepad.com/blog/2012/11/drive-revit-through-a-wcf-service.html

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes