About Area Reinforcement


#1

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”?


#4

Hi @sashka364

Which Parameter your trying to access from snoop parameters list?

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


#5

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.




#6

Yes. It’s possible to get.


#7

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


#8

@sashka364 Are you looking for this?


#9

Not exactly!

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


#10

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()]

#11

@Einar_Raknes was faster than me :smile:


#13

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


#14
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()]

Get Reinforcement Layer from RebarInSystem
#15

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