When I try and implement this, it works great, once. Then when I run the macro again, Autocad crashes.
Any tips?
thanks!
Quill
Selection sets!
I copied some code from one of your other examples - the hiding/unhiding code - where you had used a different method for clearing the selection set. Or something. I'm a noob at this, but it worked.
Then it got hung up on the delete the original regions code, so I messed around with that. It gave a code 13 error on the 'if IsObject (varRegs(0)) Then' line - I got it to work by commenting out all the 'if' stuff and just having it run ent2bsliced.delete - it works so far.
good times, learning the hard way. Thanks for posting the code, It's a really useful tool for me ... it's going to save me hours and hours of tedious exploding and deleting, and I'll thank you every time.
Quill
That is performing poorly in AutoCAD 2009. It was orignally written for AutoCAD 2004 - Selection Sets may have been handled differently back then.
How does the rest of the module work if this routine is replaced:
Private Sub SSClearST() Dim colSS As AcadSelectionSet 'ensure that selection set does not currently exist On Error Resume Next Set colSS = ThisDrawing.SelectionSets.Item("TempSSet") colSS.Delete On Error GoTo 0 End Sub