@mlightcad/data-model
Version:
The data-model package provides the core classes for interacting with AutoCAD's database and entities. This package mimics AutoCAD ObjectARX's AcDb (Database) classes and implements the drawing database structure that AutoCAD developers are familiar with.
56 lines • 1.85 kB
TypeScript
import { AcDbBlockTableRecord } from './AcDbBlockTableRecord';
import { AcDbDatabase } from './AcDbDatabase';
import { AcDbSymbolTable } from './AcDbSymbolTable';
/**
* Symbol table for block table records.
*
* This class manages block table records which represent block definitions
* within a drawing database. Blocks are reusable collections of entities
* that can be inserted multiple times into a drawing.
*
* @example
* ```typescript
* const blockTable = new AcDbBlockTable(database);
* const modelSpace = blockTable.modelSpace;
* const block = blockTable.getAt('MyBlock');
* ```
*/
export declare class AcDbBlockTable extends AcDbSymbolTable<AcDbBlockTableRecord> {
/**
* Creates a new AcDbBlockTable instance.
*
* @param db - The database this block table belongs to
*
* @example
* ```typescript
* const blockTable = new AcDbBlockTable(database);
* ```
*/
constructor(db: AcDbDatabase);
/**
* Gets the MODEL_SPACE block table record.
*
* This method returns the model space block table record, creating it
* if it doesn't exist. Model space is the primary drawing area where
* most entities are created and stored.
*
* @returns The MODEL_SPACE block table record
*
* @example
* ```typescript
* const modelSpace = blockTable.modelSpace;
* const entities = modelSpace.entities;
* ```
*/
get modelSpace(): AcDbBlockTableRecord;
/**
* Normalizes the specified block table record name if it is one paper spacce or model space
* block table record.
*
* @override
* @param name - The name of the block table record.
* @returns The normalized block table record name.
*/
protected normalizeName(name: string): string;
}
//# sourceMappingURL=AcDbBlockTable.d.ts.map