Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Export images of all my doors

BenoitE&A
Collaborator
Collaborator

Export images of all my doors

BenoitE&A
Collaborator
Collaborator

Hi all, 

I would like to be able to create automatically an image of all my doors and export it somewhere.

The UI does not support this (the Export\Images and Animations\Images tools do not provide the possibility to choose the range of the export properly).

But the question is rather simple, isn't it? 

I know how to define the geometry (the view, the range that I want to export, etc...). But the problem is to export this range with a simple tool (not the capture tool, though... maybe I could do this 😉

Any simple idea?

Benoit


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Reply
Accepted solutions (1)
579 Views
2 Replies
Replies (2)

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Benoit,

 

Thank you for your query.

 

I think similar things have been discussed in the past by The Building Coder, and easy solutions are available.

 

You could implement an add-in to run either in the family editor and family definition environment or in the project environment, with the family definition loaded into it.

 

Basically, flip through all the defined types and export an image of each.

 

I would do it in the project environment myself.

 

Set up a 3D view, if that suits your needs.

 

Ensure that the view displays nothing but the desired family instance.

 

Zoom to extents.

 

Export the image, either using the built-in Revit functionality or some .NET library to capture the appropriate part of the screen.

 

Here are some samples:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.37

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.47

 

I hope this helps.

 

Best regards,

 

Jeremy

 



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

0 Likes

BenoitE&A
Collaborator
Collaborator

hi Jeremy,

Thank you for the answer.

Your solution is similar to what we decided : find every door (we are looking for instances not types, because doors are chiral) ; adapt the cropbox of the view to the door ; export an image of the view.

Benoit


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes