You can use AcTransactionManager::queueForGraphicsFlush() and AcTransactionManager::flushGraphics() to draw entities on demand even if they are associated with the transactions and some transactions are active, which would mean the modification on the entities is not committed to the database. AcTransactionManager::queueForGraphicsFlush() queues up all the eligible entities associated with all the transactions for graphics update and AcTransactionManager::flushGraphics() draws them. You can also use AcDbEntity::draw() to draw an individual entity. This helps you see a particular entity on the screen without waiting until the end of the outermost transaction when all the modifications to all the entities are drawn. Use AcTransactionManager::enableGraphicsFlush() to enable or disable the drawing of entities. When a command ends, you relinquish control of graphics generation and it is automatically enabled.
- Customization Guide
- DXF Reference
- AutoLISP and DCL
- ObjectARX
- ObjectARX: Developer's Guide
- ObjectARX Introductory Concepts
- Basic Interaction with AutoCAD
- Custom Objects
- Advanced Topics
- Notification
- The Multiple Document Interface
- Transaction Management
- Overview of Transaction Management
- Transaction Manager
- Nesting Transactions
- Transaction Boundaries
- Obtaining Pointers to Objects in a Transaction
- Newly Created Objects and Transactions
- Commit-Time Guidelines
- Undo and Transactions
- Mixing the Transaction Model with the Open and Close Mechanism
- Transactions and Graphics Generation
- Transaction Reactors
- Example of Nested Transactions
- Deep Cloning
- Protocol Extension
- Behavior Overrules
- Dynamic Blocks, Protocol Reactors, and Evaluation Graphs
- Input Point Processing
- Application Configuration
- Associative Framework
- ObjectARX Graphics, Geometry, and Boundary Representation Libraries
- ObjectARX: Reference Guide
- ObjectARX: Release Notes
- ObjectARX: Developer's Guide