Fairly simple question I hope. I am very new to Python but know a bit of Design Script.
I am trying to get the Min/Max points of a viewport as described in this post: Get height and widht for door/window in linked ifc
I am just getting started with python in dynamo and have followed the setup guidelines in the Dynamo Python Primer & have used their (quite long) boiler plate code - so am only showing the body of the code. When I try access the API CropBox property of the view I am being told the object does not have this attribute.
Here is the code.
views = UnwrapElement(IN)
bbox = views.CropBox()
OUT = bbox
I understand that this error can occur if you do not unwrap the dyanmo elements, or if you call an API property/method that is not associated with the objects class. However, I’m not sure if this is the cause of the issue or not.
Thanks for your help!