M

ExportPDFSettings.Create

Description:
Returns an new created ExportPDFSettings element in the document with specified settings.
public static ExportPDFSettings Create(
	Document document,
	string name,
	PDFExportOptions options
)
  • document
    Document where the settings will be created.
  • String
    name
    Name to the settings.
  • options
    The options to be set.
Return Value ExportPDFSettings New instance of ExportPDFSettings just created in the document.
  • name is an empty string or contains only whitespace. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- Setting name.
  • A non-optional argument was null
  • 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.