How to get dimensions of RebarContainerItem?

How to get dimensions of RebarContainerItem?

dawid.deptula
Contributor Contributor
189 Views
1 Reply
Message 1 of 2

How to get dimensions of RebarContainerItem?

dawid.deptula
Contributor
Contributor

Where are parameters with dimensions in RebarContainerItem? I would like to use sth like this:

rebar.LookupParameter("A").AsDouble()

but RebarContainerItem does not have such parameters. So how to get dimensions of each rebar from RebarContainer?

0 Likes
190 Views
1 Reply
Reply (1)
Message 2 of 2

shevyakov.a
Contributor
Contributor

Have you already tried to use RebarContainerItem properties?

They include TotalLength, Quantity and Volume. I believe other possible dimensions can be derived from these ones.

https://www.revitapidocs.com/2016/9c3cc4f9-47b9-994c-a8b6-a06524558daf.htm 

Best wishes

0 Likes