[quote user="Andrew Womsley"]Is it possible to convert this to a function that outputs the range?[/quote]
Not sure what you mean by that. MicroStation VBA has a number of methods that work with ranges. For example...
- Range3dContainsPoint3d
- Range3dFromPoint3d
- Range3dIntersect2
- Range3dUnion