Create rebar image, save and insert to schedule

Not applicable
05-26-2018
08:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.