Is it possible to replace a RFA preview image with a custom image?

Is it possible to replace a RFA preview image with a custom image?

dantartaglia8696
Advocate Advocate
1,009 Views
4 Replies
Message 1 of 5

Is it possible to replace a RFA preview image with a custom image?

dantartaglia8696
Advocate
Advocate

Hi,

We have the need to set RFA preview images so that they contain a marker signifying the family is approved (see the attached image). It's fairly easy to extract the image from an RFA, is it possible to replace the preview image using a Bitmap or other method?

Thanks,

Dan

 

0 Likes
1,010 Views
4 Replies
Replies (4)
Message 2 of 5

aignatovich
Advisor
Advisor

There is no good way to achieve this. But you can do something like this:

 

1) create plan view in family

2) crop view and move crop region away to hide all elements

3) generate and place an image on this plan view

4) set this view as default. Unfortunately, there is no appropriate method in API or UI, but there is a way how to achieve this: https://forums.autodesk.com/t5/revit-architecture-forum/default-view-for-family-when-opened/td-p/235... I didn't try to do this programmatically, but I think it should work. The problem will arise when user edit this family in family editor in some way

0 Likes
Message 3 of 5

jeremytammik
Autodesk
Autodesk

Dear Dan,

Thank you for your query, and many thanks to Alexander for his valuable input.

 

Another approach that has nothing whatsoever to do with Revit and its API would be to try using the Windows structured storage and the Windows IExtractImage interface, cf. the discussion on RVT and RFA Thumbnail Images by The Building Coder :

 

 

The same caveats that Alexander already mentioned apply here as well, of course.

I hope this helps.

Best regards,

Jeremy

 

 



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

0 Likes
Message 4 of 5

dantartaglia8696
Advocate
Advocate

Thanks aignatovich, I thought about that solution, doesn't really work for this issue.

0 Likes
Message 5 of 5

dantartaglia8696
Advocate
Advocate

Hi Jeremy, thanks for your answer, I've investigated this already and will again. I have my doubts it will work though.

0 Likes