- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @Aririmo. I tried your code on a single, simple block model in a part document, and it failed, so I played around with it a bit to get it to work. There are several reasons why this might fail, but one of the reasons it failed for me was the size of the offset. Another reason for failure is if not all faces in the input face collection are connected. The offset distance you specify can either be a raw numerical value, or a String. If you supply a raw numerical value, it will be interpreted as 'database units' for length (centimeters). If you supply a String, it can still be a numerical value within the quotes, but you can also specify units. If you use the string, but don't specify units, it will default to 'document units' for length. This messes some folks up, due to units conversions. If the size is too much it will either not be able to compute it, or it may create a feature with the little information symbol beside it, because the feature had no physical effect on the model.
PS. If you want it to continue trying to create more features, even if it fails to create one, or encounters an error, you can put the line that creates the feature after the 'On Error Resume Next' phrase.
Wesley Crihfield
(Not an Autodesk Employee)