BoundingBox

how to get the min and max values from an element using python code.

element.BoundingBox.

Hi,

it is kind of weird property…it is indexed, but not by integers (0, 1, etc.)
You pass a view object as an index, like so:

import clr

#The inputs to this node will be stored as a list in the IN variables.
e = UnwrapElement(IN[0])
view = UnwrapElement(IN[1])
output = []

bb = e.BoundingBox[view]


#Assign your output to the OUT variable.
OUT = [bb.Min,bb.Max]

I could not pass a None value however - as you could with get_boundingbox(None)

1 Like