How to get family model image?

How to get family model image?

Anonymous
Not applicable
2,309 Views
3 Replies
Message 1 of 4

How to get family model image?

Anonymous
Not applicable

I was using preview API to get family model, however, the quality is very low.   I am thinking if it is possible to use rendering image.  The family model is lighting fixture. It is must attached to some host face.  But not sure how exactly to do. 

Is there any good way to get good quality image of lighting model?

0 Likes
Accepted solutions (1)
2,310 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Kukuzry,

 

Yes, it is certainly possible to use the rendered image.

 

One option is obviously to render the elements you want in Revit and then simply grab a screen snapshot of that.

 

That obviously has nothing more to do with the Revit API. 

 

There are about a million descriptions on the web on how to grab a screen snapshot.

  

If you would like to use the Revit API, you can use the ExportImage method, as discussed here:

 

http://thebuildingcoder.typepad.com/blog/2013/08/setting-a-default-3d-view-orientation.html

 

Here is another discussion about setting the background colour for that very purpose:

 

http://thebuildingcoder.typepad.com/blog/2013/12/setting-the-view-display-background.html

 

There are lots more examples related to this on The Building Coder.

 

I hope this helps.

 

Cheers,

 

Jeremy



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

Message 3 of 4

Anonymous
Not applicable

Thanks for your reply.

I want to get the lighting fixture family image. The lighting fixture is ceiling based. So it has to attached to a ceiling host. In the family file, there is a ceiling host. How could I just export the lighting fixture image, not including the host in family file or model using API only?

0 Likes