I'm writing a macro to extract the bounding box of a detail callout. I used the "Named Boundary from Drawing Boundary" tool to place a named boundary and create a drawing. I'm using the stock DrawingSeed.dgnlib metric file:
Then I open the reference dialog in the sheet model and see two rectangles:
1. The callout clipping region (inner rectangle) which aligns with the original named boundary placed in the design model.
2. The "photo corner" box (outer rectangle) which is offset from the callout rectangle and is the associated saved view boundary.
The reference boundary (dashed purple) in the sheet model aligns with the "photo corner" rectangle rather than the actual clip rectangle. If I programatically try and access the reference clip I get the outer rectangle coordinates and not the clip element (inner rectangle) coordinates.
Hi Benzi,
Can you open the references dialog and post an image showing the location of the reference boundary in your sheet model?
The reference boundary is the purple dash-dot-dash rectangle. I also selected the drawing boundary. Notice that the reference boundary doesn't conincide with the drawing boundary:
Apparently the reference clip is controlled by a saved view. Here is the saved view location in the design model:
I can edit the saved view by snapping the "photo corners" to the callout:
After I update the saved view the reference boundary in the sheet model coincides with the drawing boundary:
So whats the purpose of the "photo corner" rectangle? Maybe it's a visual margin similar to ones used in photographs. But shouldn't the reference clip region conincide with the callout boundary from the start?
I manually created a general Saved View and a new sheet model. As you can see my saved view (on the right) appears correctly with the "photo corners" coninciding with the saved view clip region. So there is something inconsistent here:
Hello Benzi,
It appears that the "photo corners" are a feature that are similar to that of a picture frame as you stated above. Please guide me through your workflow that enables you to edit the photo corner by snapping them to the callout. Are you directly editing the saved view while in the saved view dialog when editing the photo corners? Thanks!
I'm directly editing the saved view. This requires me to toggle the "show" property in the saved view dialogue. Then I click on the "photo corner" rectangle. Both the inner and outer rectangles get hilited. It is then a matter of snapping the photo corner vertex to the inner rectangle vertex so both rectangles coincide.
I checked some of the saved views in the "Plan Metric" drawing model of the stock DrawingSeed.dgnlib file. In some of the saved views the "photo corner" rectangle is offset and in some it coincides. I don't see any rule of thumb there.