Message 1 of 2
Help - Deleting Sketch Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a routine in .net that loops through all view in an idw and deletes different things so as to create 'clean drawings' for internal use when required.
One part of that routine deletes sketchviews (exempting breakout view sketches) people may add on top of views for whatever reason. Code is below.
Dim oDV As DrawingView Dim oSV As DrawingSketch For Each oDV In oSht.DrawingViews If oDV.BreakOutOperations.Count < 1 Then For Each oSV In oDV.Sketches oSV.Delete() Next End If Next
The problem is section views - or more aptly, the section lines themselves. Apparently .sketches find the sketch under the section lines and deletes that. You can then no longer move the section arrows, and most importantly if you decide to delete a section view, it crashes Inventor.
Is there a way of skipping sketches used in sections? Or will sketches have to be left on regardless and then manually deleted?