Autodesk.AutoCAD.DatabaseServices Namespace > Entity Class > Entity Methods > SetDatabaseDefaults Method > SetDatabaseDefaults(Database) Method
Entity.SetDatabaseDefaults(Database) Method
Description

 

This function sets the entity's: 

  • Color
  • Layer
  • Linetype
  • Linetype scale
  • Visibility
  • Plot style name
  • Line weight
 

to the default values of the database indicated by sourceDatabase: If sourceDatabase == NULL, then the current database in the AutoCAD editor is used.

Visual Basic
Public Function SetDatabaseDefaults(
    sourceDatabase As Database
) As void
C#
public void SetDatabaseDefaults(
    Database sourceDatabase
);
Parameters
Parameters 
Description 
Database sourceDatabase 
Input database whose defaults will be used to set the values of the entity 
Links
   Comments?