ShapeImporter.Convert
Method
Description:
Converts the geometry stored in the external format into a collection of Revit geometry objects.
Converts the geometry stored in the external format into a collection of Revit geometry objects.
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The Revit document where the resulting Revit geometry objects will be used. This document may need to be modified to store dependent elements such as graphics styles and/or materials. |
filename | String | The full path to the input file. |
Return Value
Type | Description |
---|---|
IList | A collection of Revit geometry objects created from the incoming data. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
FileArgumentNotFoundException | The given filename does not exist. |
InvalidOperationException | Data conversion service is not available. |