Closed moethu closed 9 years ago
@bhowes-tt this might be a serious issue... there aren't many elements suitable for rebar. I'll try to change the element category.
What I got so far are Nodes for creating the Rebar Lines and one Node Rebar from Curve.
The hosting issue is interesting... Are you working with Revit 2016 yet?
A couple of things come to mind. As I recall, everything we need to support is face-based, not volume-based. Also, we need to create rebar container elements or something - basically one revit element that contains a bunch of bars. Maybe these types aren't hosted on faces?
Hi Ben,
had a look into this. RebarDBAPI.dll: there is a RebarDBApi. but its not providing any classes/types... or anything unser .NET 4.0, 4.5 nor 4.5.1
Using the Revit API provided Rebar Class we don't have too many options. There is no constructor, you can only use the create methods. Those require a host element. Revit accepts only a certain set of elements as hosts like Structural Framing, S. Column and S. Connections. But, you can set an adaptive component to StructuralConnections Category and use it as a host. This would be one workaround. The easiest because from there we won't have much to do.
In Scope of Services (p1, II) it says "Recognize the following object types as hosts for rebar model." Generic Objects , in-place or imported from SAT/ACIS solid objects and Adaptive Generic Objects. Setting the Adaptive to Structural Connections isn't maybe quite what they had in mind.
So workaround 2 would be: Trying to create Rebar as simple family instances within Revit without making use of the Rebar Class. Not sure how those elements will turn out in the Model but it might be worth trying. We could write our own Rebar class allowing you to create a set of rebar family instances using a mass as a host.
The Containers are fine, they also require a host element similar to a single rebar.
eg. Rebar 1 at the top is hosted by the adaptive family at the bottom because its of category structural connections
nicer proof of concept
Using Adaptive Components as Structural Connections works out fine. Also using Mass Elements as Structural Foundations:
Wrapping in Structural Families seems fine.
Beams are working fine as rebar hosts, but Volumes don't.