Document.Import
Description:
Imports an image (a bitmap) into the document.
Imports an image (a bitmap) into the document.
Overloads (6):
Import(String,ImageImportOptions,View,Element)
[ObsoleteAttribute("This method is deprecated in Revit 2020 and will be removed in the next version of Revit. Use the ImageInstance::Create() method instead")]
public bool Import(
string file,
ImageImportOptions options,
View view,
out Element element
)
-
fileFull path of the file to import. File must exist.
-
optionsVarious options applicable to an image. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
-
viewThe view into which the image is going to be imported.
-
elementThe imported instance after a successful import. It could be used for further manipulating of that instance.
Return Value
bool
True if successful, otherwise False.
-
Thrown if view isnullNothingnullptra null reference (Nothingin Visual Basic).