I'm looking for a way to get the dimensions of a drawing in 2D Model sheet in VB.NET. I imagine that it would be possible to get the start points and end points of the elements from element properties and then find maximum and minimum x and y coordinates. But I can't quite figure out how to write it and I can't find a good example online either. Should it be done with something like Lines2d collection and GetStartPoint and GetEndPoint methods?
Sounds like you are on the right track (max X - min X, max Y - min Y). Not sure if scale would come into play. If it does, you could place a dimension and read the value. That would take care of the scale for you. Or perhaps you could read the scale from the drawing view object.