M

Document.Import

Description:
Imports an image (a bitmap) into the document.
[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
)
  • file
    Full path of the file to import. File must exist.
  • options
    Various options applicable to an image. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
  • view
    The view into which the image is going to be imported.
  • element
    The imported instance after a successful import. It could be used for further manipulating of that instance.
Return Value bool True if successful, otherwise False.