- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I have a question about RebarHookOrientation ar rebar hook.
https://www.revitapidocs.com/2024/e8365754-0811-8d4e-864a-55bf34af3a87.htm
This is docs about RebarHookOrientation.
I'm trying to create freeform rebar using this code;
Rebar newRebar = Rebar.CreateFreeForm(doc, rebarType, host, curveList, out var err);
newRebar.SetHookTypeId(0, startHook.Id);
newRebar.SetHookTypeId(1, endHook.Id);
newRebar.SetHookOrientation(0, RebarHookOrientation.Left);
newRebar.SetHookOrientation(1, RebarHookOrientation.Left);
As I understand it, the hook is oriented to the left side relative to the direction of the curve, as shown in the image below.
But if rebar curve is Arc shape or when the lines are connected, It seems that the hook orientation is not determined by the direction of the line, but rather by the convex part of the rebar shape.
Is my understanding of the RebarHookOrientation rule correct?
If there’s a detailed explanation or documentation available, please share the link.
Thank you all!
Solved! Go to Solution.