• Help Home
  • English (US)
    1. English (US)
    2. 简体中文
    3. 繁體中文
    4. Čeština
    5. Deutsch
    6. English (UK)
    7. Español
    8. Français
    9. Magyar
    10. Italiano
    11. 日本語
    12. 한국어
    13. Polski
    14. Português (Brasil)
    15. Русский
AutoCAD 2025 Developer and ObjectARX
    • Customization and Administration Guides
    • DXF Reference
    • AutoLISP and DCL
    • ActiveX and VBA
    • ObjectARX and Managed .NET
      • ObjectARX: Developer's Guide
        • ObjectARX Introductory Concepts
          • Overview of ObjectARX
          • Database Primer
          • ObjectARX Application Basics
          • Database Operations
            • Initial Database
            • Creating and Populating a Database
            • Saving a Database
            • The wblock Operation
            • Inserting a Database
            • Setting Current Database Values
              • Database Color Value
              • Database Linetype Value
              • Database Linetype Scale Value
              • Database Layer Value
            • Example of Database Operations
            • Long Transactions
            • External References
            • Indexes and Filters
            • Drawing Summary Information
            • Last Saved by Autodesk Software
          • Database Objects
          • Entities
          • Container Objects
        • Basic Interaction with AutoCAD
        • Custom Objects
        • Advanced Topics
        • ObjectARX Graphics, Geometry, and Boundary Representation Libraries
        • Using COM for ObjectARX Development
      • ObjectARX: Reference Guide
      • ObjectARX: Managed .NET Developer's Guide
      • ObjectARX: Managed .NET Reference Guide
      • ObjectARX: Interoperability Guide
      • ObjectARX: Migration Guide
      • ObjectARX: Release Notes
    • JavaScript
    • AutoCAD Core Console
    Share
    • Email
    • Facebook
    • Twitter
    • LinkedIn
     
     

    Database Layer Value

    The following functions set and retrieve the current layer value in the database:

    Acad::ErrorStatus
    AcDbDatabase::setClayer(
        AcDbObjectId objId);
     
    AcDbObjectId AcDbDatabase::clayer() const;
    Parent topic: Setting Current Database Values

    Was this information helpful?

    Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.

    • Privacy Statement
    • Legal Notices & Trademarks
    • Report Noncompliance
    • © 2025 Autodesk Inc. All rights reserved