Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
Quick question - is there a way to check for a disconnected model in an Inventor IDW
I want to scan through all sheets and if the model is disconnected (meaning that I have deleted it from the project) then delete that sheet.
Have my usual code snippet here - I may be using the wrong call by looking at the drawing view
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oView As DrawingView
On Error Resume Next
For Each oActiveSheet In oDoc.Sheets
oActiveSheet.Activate
Set oView = oDoc.ActiveSheet.DrawingViews(1)
*****Code here to check if the model is disconnected and delete the sheet if it is ********
Next
Any help, much appreciated
Regards
Mark
Solved! Go to Solution.