Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This I would think would be so easy. I don't need a for loop as the sketch I am trying to delete in VBA is not tied to any view, but rather just a general sketch on the drawing. The name of the sketch is "Sketch1". Why doesn't the below code work?
Dim oApp As Inventor.Application
Set oApp = ThisApplication
Set odoc = oApp.ActiveDocument
Dim oSheet As Sheet
Dim oSketch As DrawingSketch
Set DrawingSketch = "Sketch1"
oSketch.Delete
Solved! Go to Solution.