abraxus Posted October 16, 2013 Share Posted October 16, 2013 Fist of all, i'm really sorry for creating all these topics, but you guys are so helpful, it's hard not to use you as a valuable resource is there a faster way to delete an array of entities that you have written code to collect than this? For nStart = 0 To UBound(remItem) remItem(nStart).Delete Next maybe I should use a named selection set instead of an array to iterate? because based on what ive read online, one still has to iterate the selection set and delete them one by one.... there are typically about 5 thousand items that need to be deleted, it takes less than a minute to do, but i want it to take less than a second Quote Link to comment Share on other sites More sharing options...
abraxus Posted October 17, 2013 Author Share Posted October 17, 2013 in short, i am processing a selection set, using if/then logic, and building an array of entities, should i be creating a new selection set instead? and then just "Erasing" the selection set? i'm so used to doing things with arrays as it is faster in most cases Quote Link to comment Share on other sites More sharing options...
SEANT Posted October 17, 2013 Share Posted October 17, 2013 My guess, your current method is faster. But guesses are dubious. It might be worth setting up a test routine, especially if this is a recurring task. A near minute delay would become tiresome, and that knowledge would likely be useful for subsequent projects. Quote Link to comment Share on other sites More sharing options...
RICVBA Posted October 17, 2013 Share Posted October 17, 2013 My guess, your current method is faster. But guesses are dubious. It might be worth setting up a test routine, especially if this is a recurring task. A near minute delay would become tiresome, and that knowledge would likely be useful for subsequent projects. could be very useful indeed. pleas Abraxus let us know consider testing the "erase" method of the selectionset object also. this way you don't need to iterate through items. but at the end remember to delete the selectionset object itself Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.