Scripts Within Database Windows

When writing scripts that run from buttons on a database window or for events on remote database windows you must use the Application.gui.active_database_window object to access the values displayed in the window; do not use IDrawing.database_values or ILayer.database_values properties. This is important because database windows internally cache values and may be cancelled by a user. See the IDatabaseWindow object for examples of reading/writing values from/to database windows.

See Also