How extract rebar shapes as image(png) using Revit API

How extract rebar shapes as image(png) using Revit API

veeresh.huvinahalliACK3L
Enthusiast Enthusiast
471 Views
3 Replies
Message 1 of 4

How extract rebar shapes as image(png) using Revit API

veeresh.huvinahalliACK3L
Enthusiast
Enthusiast

Is there a way to extract rebar shapes from the Revit rebar shape browser as PNG files, while keeping the same names for each shape? If so, how can this be automated within Revit? 

Please refer the video shared.

0 Likes
472 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

You could implement an add-in that isolates each individual rebar element in a separate view, and either generate a screen snapshot of the vie or export it using one of the numerous overloads of the Export method:

  

  

The Building Coder discusses numerous approaches to export individual element geometry to various format, and these can easily be adapted to support a PNG format as well:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

veeresh.huvinahalliACK3L
Enthusiast
Enthusiast

Thank for the update @jeremy_tammik sir,

Is there a way where I can decide in which view rebar shape will look complete or any snippet for doing the same, then I can use the above API for getting the snapshot of it

0 Likes
Message 4 of 4

veeresh.huvinahalliACK3L
Enthusiast
Enthusiast

Any other way to get the front view of all the rebar used in the document and capturing the png of it?

0 Likes