ShapeImporter.Convert
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.
public IList<GeometryObject> Convert(
Document document,
string filename
)
-
documentThe 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.
-
StringfilenameThe full path to the input file.
Return Value
IList<GeometryObject>
A collection of Revit geometry objects created from the incoming data.
-
A non-optional argument was null
-
The given filename does not exist.
-
Data conversion service is not available, or the Material Library is missing.