- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everybody,
I don't know if what I'm asking is possible through te REVIT API, or it's simply a wish...anyway:
I've got a revit family that crashes whenever I try to change a parameter to some specific values. I can't find out the complete list of values that cause the crash: it happens whenever a void cuts a solid (sweep of a curve profile, something like a sinous profile) in different points along the profile. I can't figure out any geometric problem (it's a cut on an extrusion), the problem may be caused by curve approx or some internal conditions.
That said, I don't figure out a way to apply formulas in the family to avoid the crash-value and I'm inserting instances using an external command...I'm wondering if there's a way to retrieve the exception through the API and then assign a different value to the "wrong" parameter.
I've tryed to use the try/catch block but it doesn't encounter any exception when running, so Revit shows me the error message "can't make type" and than deletes my instance. I would like to stop the instance in the default configuration and simply don't set any parameter.
How can I retrieve the "can't make type" error message and avoid to delete the istance?
Thanks!
Solved! Go to Solution.