If you need to save your drawing from your application, you can check if it has been changed or not with the help of the GetDrawingChanged instruction.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Description: GETDRAWINGCHANGED instruction checks if any changes were made in a Drawing. Result parameter CHANGED returns True if any changed were implemeted in a Drawing. -->
Go to CADEditorX