PDA

View Full Version : How do you find the viewport location on a sheet?



jvedio
2008-04-05, 04:05 AM
I need to find the coordinates for viewports that are placed onto sheets. I want to create a utility that will take a sheet with views on it and create a new sheet with a different view in the same location as the old view. I work in the MEP field and it is a pain to create drawings for every trade one by one. Any ideas would be appreciated.

mmason.65315
2008-04-05, 02:02 PM
I've looked, and I suspect that you can't get there...
After you identify the Viewport element, there doesn't appear to be a valid Location assigned. And no parameter seems to indicate the location.

I haven't tried looking at the BoundingBox on the viewport - which might give you a chance at an acceptable answer (depending on any other annotations).

Andre Carvalho
2008-04-05, 04:03 PM
I need to find the coordinates for viewports that are placed onto sheets. I want to create a utility that will take a sheet with views on it and create a new sheet with a different view in the same location as the old view. I work in the MEP field and it is a pain to create drawings for every trade one by one. Any ideas would be appreciated.

Viewports are defined by the crop region size on each view. If you turn on crop region and select it, you can define a size to it. However, when inserting it on a sheet, viewports will try to align themselves with the center of the geometry (model) of the closest viewport already placed on the sheet. That being said, I don't think you can do what you are trying to achieve.

However, why don't you create a template file with views predefined, with crop region On and with the size you want. You can then create sheets and add the empty views to the sheets. Each new drawing you start, will have the sheets pre created. You just have to draw on each view with in the crop region extents.

Andre Carvalho

jvedio
2008-04-08, 06:20 PM
I'm not really following your advice. Wouldn't I have to create a new project for each trade?