Hi Glenn
Your routine works brilliantly...I'm not sure what the difference is yet between yours and mine - I'm going to have to look closely. Thanks!
Just out of interest as to why I'm doing this....I'm an ACA user - part of ACA is the ability to isolate / hide / show entities (some of my most common day to day commands).
It works great but I am trying to make a utility to save visibility states (for instance I might have one state where Pumps are isolated so I can call this 'Pumps Only' and quickly get them in view for working on).
Using Hide & Isolate in ACA is great but we can't save 'states' i.e. to get only the pumps visible I would have to isolate them each time.
Visual Studio - 2005 Pro (have 2008 but not using yet)
.Net Framework (sorry, never look at this! using windows XP 64 Pro with all updates)
ACA 2009 / (ACAD 2009 for other users in my company)