About Area Reinforcement

About Area Reinforcement
There is a problem- I got a reinforcement area with some rebars inside of it.
But I can’t get the rebars properties from “reinforcement area”.

Example- I got one area with 10 rebars d=16mm. Every rebar has a tag- “Rebar#13”.
How can i get this information about rebars when I select only “reinforcement area”?

Hi @sashka364

Which Parameter your trying to access from snoop parameters list?

It would be better if you can drop dummy rvt file here.

Project1.rvt (2.8 MB)

@Kulkul
I am trying to get the rebar’s mark from the Reinforcement area.
I want to get this mark from rebar and probably set this parameter in to the Comments or Shared Parameters.



Yes. It’s possible to get.

1 Like

@sashka364 Give me sometime i will drop here soon solution.

1 Like

@sashka364 Are you looking for this?

Not exactly!

I want to get the connection between AreanReinforcement and RebarInSystem…What elements (Rebar in Sys) are included in an StructArea…

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
element = UnwrapElement(IN[0])
OUT = [doc.GetElement(id) for id in element.GetRebarInSystemIds()]
1 Like

@Einar_Raknes was faster than me :smile:

You need to loop it. @Einar_Raknes has brilliantly explained how to do that in this topic Dividing parts with dynamo

1 Like
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument

if isinstance(IN[0], list):
	OUT=[]
	elements = UnwrapElement(IN[0])
	for element in elements:
		OUT.append([doc.GetElement(id) for id in element.GetRebarInSystemIds()])
else:
	element = UnwrapElement(IN[0])
	OUT=[doc.GetElement(id) for id in element.GetRebarInSystemIds()]
3 Likes

@Einar_Raknes Thank you very much! It’s works perfecly!
@Kulkul Thanks a lot! :slight_smile: