ValidateExportOptions Method


Determines if the inputs are valid, and returns an error message if not.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2014

Syntax

C#
bool ValidateExportOptions(
	Document document,
	string folder,
	string name,
	NavisworksExportOptions options,
	out string exceptionMessage
)
Visual Basic
Function ValidateExportOptions ( _
	document As Document, _
	folder As String, _
	name As String, _
	options As NavisworksExportOptions, _
	<OutAttribute> ByRef exceptionMessage As String _
) As Boolean
Visual C++
bool ValidateExportOptions(
	Document^ document, 
	String^ folder, 
	String^ name, 
	NavisworksExportOptions^ options, 
	[OutAttribute] String^% exceptionMessage
)

Parameters

document
Type: Autodesk.Revit.DBDocument
The document to export.
folder
Type: SystemString
The folder path.
name
Type: SystemString
The file name.
options
Type: Autodesk.Revit.DBNavisworksExportOptions
The export options.
exceptionMessage
Type: SystemString%
The message to show in the exception thrown. This is not an end-user visible message, it is a developer message, and does not have to be localized. Ignored if the function returns true.

Return Value

True if the options are valid, false otherwise.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →