Method: CreateSchemaDiagram (nKind as SPYSchemaDefKind, strName as String, strFile as String)
The method creates a diagram of the schema type strName of kind nKind and saves the output file into strFile. Note that this functionality is limited to Schema View only. See Document.CurrentViewMode. and SPYViewModes.
The object is no longer valid.
Failed to save diagram.
Invalid schema definition type specified.