- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Correct. It does not leave anything behind when it fails. That is due to the Transaction I am using within that rule. The Transaction bundles all of those little actions into one item in the UNDO list. If that were not there, you would see potentially a ton of lines of stuff that happened in your UNDO list due to what the code tried to do, and it would take a lot of clicking the UNDO button to undo all of it. The way it is right now, if it fails to create the offset geometry, it will abort that transaction, which undoes all those little actions it has done so far. If you want it to leave the sketch and projected geometry behind when it fails, just comment out (or remove) the "oTrans.Abort" line of code within the Catch side of the Try...Catch block.
Wesley Crihfield
(Not an Autodesk Employee)