Message 1 of 7

Not applicable
11-25-2015
10:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I am trying to create a rebar schedule in Dynamo but it seems to be not so easy to me... 😞
Can I get a help on accessing rebar elements from rebar containers?
Followings are what I have tried in Python...
bars = FilteredElementCollector(doc).OfClass(Autodesk.Revit.DB.Structure.RebarContainer).ToElements()
(I can get rebar container list from this line)
bars = FilteredElementCollector(doc).OfClass(Autodesk.Revit.DB.Structure.Rebar).ToElements()
(but this line returns nothing)
I have also tried this one... but I couldn't understand what exactly the RebarContainerItem means..
foreach(RebarContainerItem item in con.GetRebarContainerIterator())
{
}
Any help would be appreciated!!
Thanks
Solved! Go to Solution.