As it says, can you tell the difference between a cropped view and a sketched view? I've got a bit that loops through all drawing views searching for sketched views and removes them. This creates a problem with Cropped views being sketches. I'd like to be able to tell the difference between the two so I can remove one and not the other.
This is the snippet i've got:
Dim oDV As DrawingView Dim oSV As DrawingSketch If SkVBox.CheckState = Windows.Forms.CheckState.Checked Then For Each oDV In oSht.DrawingViews For Each oSV In oDV.Sketches oSV.Delete() Next Next End If
Thanks
Solved! Go to Solution.
Solved by mslosar. Go to Solution.
Turns out they are separate things.
Turns out the problem we've run into is we have people who make a breakout view, then put a crop on top of it.
A breakout view uses a sketched view, so when the program runs it sees the sketched view for the breakout and deletes it - then the crop view, which 'was' based on the breakout view apparently does not know what to do any long and displays the whole view once again.
So, now the question is there a way to tell if a sketch is used by a breakout view....
Did anyone ever find a way to do this via API without using the breakout view? only other post I found said cropped views aren't supported in the API however that post was from 2010.
Any thoughts would be appreciated as we are currently trying to come up with some code to do this.