Message 1 of 5
Exceptions in Document.Import (with parameter ImageImportOptions)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
we use many calls to Document.Import to display image tiles placed in the manner of a grid in a floor view.
This is the API Method we use:
C#
public bool Import( string file, ImageImportOptions options, View view, out Element element ) |
Most of the time it works very well.
However, recently we received a customer report about this method raising an exception.
Even worse, the exception message does not help to understand the cause of the problem:
Error message Un composant externe a levé une exception. Stack trace à FileImportExport.importImage(ADocument* , ImageImportOptions* , ElementId* ) à Autodesk.Revit.DB.Document.Import(String file, ImageImportOptions options, View view, Element& element)
Sorry about the french message, I believe in english the exception message would read like "an external component has raised an exception".
Did anyone experience similar problems? Are there any ideas about the cause or why the exception message is so vaguely phrased? Are there any ideas for a workaround or how we could avoid this?
Thanks,
Armin