AcSmSheetSetMgr.CreateDatabase Method (SSO)

Creates a new database (DST file) and returns the IAcSmDatabase component for the database.

The method fails if the database file exists. If the templatefileName parameter is null or is an empty ("") string, then a database file is created without a template. If the templatefileName parameter specifies a file that is not found or read, E_FAIL is returned.

The caller must release the interface when the operation is complete.

Syntax

CreateDatabase(
    filename As String,
    templatefilename As String = 0,
    bAlwaysCreate As Boolean = True) As IAcSmDatabase
filename Input file name of the database to be created
templatefilename Input file name of the template for the database
bAlwaysCreate Input Boolean indicating whether to create a new DST file even when there is an existing DST file with the same name