MLightCAD
    Preparing search index...

    Centralizes entity mutations for modify commands and non-command callers.

    Provides geometric transforms, cloning, erasure, layer reassignment, and undo-wrapped edit helpers against a single AcDbDatabase.

    Index

    Constructors

    Methods

    • Rotates entities around a base point.

      Parameters

      • entities: AcDbEntity[]

        Entities to rotate.

      • basePoint: AcGeVector3dLike

        Rotation origin in WCS.

      • angleRad: number

        Rotation angle in radians.

      Returns number

      Number of entities successfully rotated.

    • Applies a transform matrix to entities opened for write.

      Parameters

      • entities: AcDbEntity[]

        Entities to transform.

      • matrix: AcGeMatrix3d

        Transform to apply via AcDbEntity.transformBy.

      Returns number

      Number of entities successfully transformed.

    • Translates entities by a displacement vector.

      Parameters

      • entities: AcDbEntity[]

        Entities to move.

      • displacement: AcGeVector3dLike

        Translation vector in WCS.

      Returns number

      Number of entities successfully translated.

    • Copies display traits from one entity to another.

      Copies layer, color, linetype, line weight, linetype scale, transparency, and visibility.

      Parameters

      • source: AcDbEntity

        Entity to copy traits from.

      • target: AcDbEntity

        Entity to receive traits.

      Returns void