MLightCAD
    Preparing search index...
    • Reports whether the given database's current space is model space.

      Compares database.currentSpaceId against the object id of the block table's model-space record. Used when reacting to sysvar changes or reading layout background colours so the correct sysvar (MODELBKCOLOR vs. PAPERBKCOLOR) is consulted.

      Parameters

      • database: AcDbDatabase

        Active drawing database whose current space is inspected.

      Returns boolean

      true when the database is in model space; false when it is in a paper-space layout.

      layoutBackgroundSysVar — picks the background sysvar name from this result