Message 1 of 6
check multiple instances same place
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Within one transaction, i am placing multiple familyinstances.
After each placement i want to check if there might be a double instance in the same place, and if so, undo that last placement.
It is possible to watch for the exception warning, but this will only prompt on Transaction.Commit, so thats already too late.
I dont want to use a separate transaction for each placement either, because it can result in too many seperate transactions (and so too many undo steps).
1 workaround would be to get all familyinstances of the one that is getting placed, and each time check the location from the once getting placed with the ones already there, but i assume this will be dramatic for performance.
any other ideas ?