Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Create rebar image, save and insert to schedule

Anonymous

Create rebar image, save and insert to schedule

Anonymous
Not applicable

Hi all,

I have a big problem with my work. I want to create the rebar image from rebar instance (shape and length), save them to the folder and insert them into the rebar schedule.

I am doing like this:

1. Get all rebar instance from the project

2. Get curve of the rebar by getting the center line.

3. Create graphics and paint object to redraw all curve on a bitmap image.

My problems are:

1. How to create the bitmap that has size fit all the shape of rebar 

2. How to draw the curve of rebar on bitmap image because the coordinate of curves have negative value.

3. How the shape of rebar on bitmap image at the center of an image

 

Thanks all.

 

0 Likes
Reply
1,137 Views
2 Replies
Replies (2)

jeremytammik
Autodesk
Autodesk

I would suggest creating a Revit view of the rebar element you wish to export and then exporting an image of it.

 

Then there is no need to deal with the rebar curve or the graphics and paint objects.

 

Here is an example:

 

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

 

Cheers,

 

Jeremy

 



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

0 Likes

Anonymous
Not applicable

Thanks, Jeremy Tammik so much. But I would like to assign the value of the length of the curve on the image. So can your answer help me to solve this problem? 

0 Likes