IsValid Method


Image Type Options Is Valid Method

If true the ImageTypeOptions can be used to create or reload an ImageType.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool IsValid(
	Document document
)

Parameters

document Document
The document.

Return Value

Boolean
Returns True if the options can be used to create or reload an ImageType. False otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
This method returns true if all the following checks are true:
  • The Path points to a file that is a supported image file type.
  • The Path points to a file that is not encrypted, which can happen for PDF files.
  • The Path points to a file that contains the specified PageNumber.
  • Only imported images are allowed in family documents.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →