Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have attached an assembly consisting out of parts and a subassembly.
All the parts that are used have an unused sketch that I want to delete.
Preferably I want to run an ilogic code from the toplevel assembly.
I managed to create this ilogic code from some examples in this forum that works when started on a part level.
Hope you can help.
Thanks,
Bas
Sub Main() Dim oDoc As Document = ThisApplication.ActiveDocument Dim oCD As ComponentDefinition= oDoc.ComponentDefinition Dim oSketch As PlanarSketch For Each oSketch In oCD.Sketches oSketch.Delete Next End Sub
Solved! Go to Solution.