Message 1 of 5
Catch errors

Not applicable
10-24-2014
02:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm trying to switch a profile in a sweep. When the profile is not correctly drawn (like none closed loop or overlapping lines) Revit will throw a messagebox telling the sweep can't be made, with the options Delete or Cancel.
I receive this message when I am doing a transaction.Commit. I have put a try catch around it, but it never comes in the catch.
Does anybody know how you can intercept this error message of revit so I can do a transaction.rollback in case of an incorrectly drawn profile.
Kind regards,