How to set the ViewSection BoundaryBox?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am making a plugin that will create a ViewSection from an ElevationMarker that shows a specified wall. I would like the plugin to automatically crop the ViewSection so that only the given wall is visible.
I have attempted this by getting the BoundingBox of the wall from the newly created ViewSection, and modifying the .Max & .Min slightly before setting the ViewSection's cropbox to it. However, whenever I do this, I get an "The CropBox is empty" error. I disable the cropping of the view before before getting the wall's BoundingBox, so the wall should be visible.
Creating a BoundingBox from scratch also gives me a "The CropBox is empty" error.
Also, how does the BoundingBox of the ViewSection relate to the BuiltInParameter.VIEWER_BOUND_OFFSET_FAR parameter? It looks like both should be able to set the depth of the view, but does one take precedent over the other?