Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Number of segments

MiguelGT17
Advocate

Number of segments

MiguelGT17
Advocate
Advocate

This set of rebars has been sketched as a free form.

MiguelGT17_1-1651725624198.png

 

The wear fact is that revit lookup shows a single segment for this bar, which is not true

MiguelGT17_0-1651725500376.png

MiguelGT17_2-1651725669880.png

More over, the IsRebarInSection(view) command always return false regardless of the view. So am not going to have the appropriate data when I sketch rebars as freeform?

0 Likes
Reply
361 Views
4 Replies
Replies (4)

jeremy_tammik
Autodesk
Autodesk

And again: This sounds like a request for some in-depth rebar API expertise beyond my limited ken, so I asked the devteam for you.

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

MiguelGT17
Advocate
Advocate

Thanks for your support Jeremy, I'll be more than glad to hear from you

0 Likes

StefanDobre
Autodesk
Autodesk

As I can see in your images you have a free form rebar that has the Workshop Instructions parameter set to Keep Straight. This means that no matter what curves the free form has, it will always be matched with a straight shape (M_00).

If you want the bar to be matched with other shapes, you should set the workshop parameter to Bend. One you set this option, each bar in the set will be matched with the existing rebar shapes from the project. If it doesn't match with any existing shapes, it will try to create new Rebar Shapes. If it can’t create new Rebar Shapes and error message will be posted and will continue to consider the bar as a straight one.

For more details on how the shape matching is working  you can have a look on this: https://knowledge.autodesk.com/support/revit/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Revit-M...

 

Rebar.IsRebarInSection(View view) returns true only if the view is a section or elevation and the view plane is cutting at least one of the rebar curves, false otherwise. This API function is the correspondent of this UI option:

IsRebarInSection.png

 

0 Likes

MiguelGT17
Advocate
Advocate

Thanks for your prompt reply, My bad I was not aware of those parameters. I will double check them and perform another test this weekend. Cheers!

0 Likes