ImageView.Create
Description:
Create an ImageView containing an image imported from disk.
Create an ImageView containing an image imported from disk.
Overloads (2):
Create(Document,String)
[ObsoleteAttribute("This method is deprecated in Revit 2020 and will be removed in the next version of Revit. We suggest you instead use the Create method that takes ImageTypeOptions as input.")]
public static ImageView Create(
Document document,
string imageFileName
)
-
documentThe document in which to create the view.
-
imageFileNameThe full path to the image file.
-
document is not a project document.
-
A non-optional argument was NULL
-
The given imageFileName does not exist.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.