Creating Rebar From Curves And Shape

Creating Rebar From Curves And Shape

jmadeley37KVE
Contributor Contributor
1,791 Views
3 Replies
Message 1 of 4

Creating Rebar From Curves And Shape

jmadeley37KVE
Contributor
Contributor

Hi everyone,

 

I'm trying to create Rebar using the Rebar.CreateFromCurvesAndShape() method but running in to some issues.

 

I am creating curves via Line.CreateBound() to form the general shape of the rebar I am looking to draw. Using this I am specifying the dimensions (A,B,C) that I expect the rebar to have. When the rebar is placed however, the dimensions of the bar don't match the lengths of the lines I created. I am trying to create a Shape 21 rebar, so feeding in the three lines that represent A, B and C, but the B (vertical) dimension is usually off regardless of what change I make.

 

Is there any way that I can fix this, or would it be better to use a different method? I need the rebar to have the natural bend so I will need to use the actual Rebar shape rather than drawing FreeForm.

 

Any help would be appreciated

 

Thanks

Jack

0 Likes
Accepted solutions (1)
1,792 Views
3 Replies
Replies (3)
Message 2 of 4

jmadeley37KVE
Contributor
Contributor
Accepted solution

Hi all,

 

Just for future reference if anyone ever has the same issue.

 

The curves that you feed into the CreateFromCurvesAndShape method for the centrelines of the rebar. Because of this, you need to shift your Z co-ordinates down by half the bar diameter. For example with a B16 bar, less 8mm off the height so that you have the centreline rather than the top face.

Message 3 of 4

REDO10
Collaborator
Collaborator

Hi @jmadeley37KVE 

Can you please share your code so we can reference to it for  creating rebar from curve and shape?

 

Thanks.

0 Likes
Message 4 of 4

adr_villena
Community Visitor
Community Visitor

@jmadeley37KVE could you please share your code as reference? Thanks

0 Likes