You can use the PurgeAECData command to remove invisible AEC data from a drawing. If visible AEC objects are present in the drawing, the command will not proceed.