Get coordinates of Rebar distribution path

Get coordinates of Rebar distribution path

htlcnn
Enthusiast Enthusiast
985 Views
4 Replies
Message 1 of 5

Get coordinates of Rebar distribution path

htlcnn
Enthusiast
Enthusiast

I created a stirrup rebar with layout rule of Maximum Spacing. I want to get the absolute coordinates of the distribution path but in the API the GetDistributionPath() (or GetShapeDrivenAccessor().GetDistributionPath() in 2018) method returns a Line beginning at (0,0,0).

How do I get absolute start and end coordinates of rebar distribution path?

Thanks!

0 Likes
Accepted solutions (1)
986 Views
4 Replies
Replies (4)
Message 2 of 5

htlcnn
Enthusiast
Enthusiast
Accepted solution

Rebar set is based on the first rebar. Position of the first rebar is the root of the DistributionPath. The first rebar is positioned by its constraints.

0 Likes
Message 3 of 5

Organon
Advisor
Advisor

@htlcnn,

 

Hi,

 

Colud you please share your solution? Thanks.

 

Regards,


Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube
0 Likes
Message 4 of 5

htlcnn
Enthusiast
Enthusiast

@Organon it's been 4 years and I can't recall exactly what I struggled back then, either details of the solution.

I've had a quick look up at API and can give some hints for shape driven rebars:

Rebar.GetShapeDrivernAccessor() is your friend.

- First, you can use ComputeDrivingCurves to find first rebar's geometry.

- Then, GetBarPositionTransform gives you the transform that represents relative position of the specific rebar in the set, you can use that Transform to find exact position of the rebar.

0 Likes
Message 5 of 5

Organon
Advisor
Advisor

@htlcnn,

 

Thanks for your answer.

 

I actually tried, but the transformation obtained using the GetBarPositionTransform is just a translation along the distribution path, and the distribution path always begins at 0,0,0. I'm trying to get the references shown in the image. Any ideas?

 
Rebar References.gif
 
Regards,

Arquitectura | Análisis CAD & BIM | Diseño Paramétrico | Programación
BIM-METADATA | LinkedIn | YouTube
0 Likes