Testing Your Object Enabler

Once you have built and packaged your Object Enabler, make sure it functions properly and does not corrupt drawing files before posting it for your users. For testing, you need a drawing file that contains all your custom objects, and the PROXYNOTICE system variable should be set to 1.

Follow these general test procedures

To install your Object Enabler

You are required to create an MSI package file to register your Object Enabler. For more information, see “Create an Installation Program” in the OEM Developer’s Guide.

To test the functionality of your Object Enabler

  1. Make sure that the Object Enabler functions without any AutoCAD dependencies (such as the AutoCAD editor, editor reactors, and so on).
  2. Confirm that AutoCAD and other RealDWG host applications can open and close properly after the Object Enabler is loaded.
  3. Open a test drawing that contains all the custom objects supported by the Object Enabler, with the PROXYNOTICE system variable set to 1. Make sure that the Proxy dialog box does not display for the enabled custom objects on the first or subsequent times you open the file.
  4. With the Object Enabler loaded, INSERT the test drawing.
  5. Attach it, XREF Reload it, and access it in DesignCenter™ . A proxy warning should not display.
  6. Remove the registry key, the Object Enabler, and both the registry key and the Object Enabler in turn, and confirm that the Proxy dialog box displays and that AutoCAD and other host applications work correctly in each case.
  7. Use the LIST command on each enabled custom object to ensure that all the appropriate information about the object is listed. No proxy information should be present in this listing.
  8. Test the following AutoCAD editing commands with the enabled custom objects: MOVE, COPY, ARRAY, ROTATE, SCALE, MIRROR, CHANGE, CHPROP.

To verify that your Object Enabler does not corrupt drawing files

  1. Open a drawing containing your custom objects on a computer without the Object Enablers installed; make sure that it opens successfully.
  2. Run the AUDIT command; confirm that it does not find any errors.
  3. Install your Object Enablers; make sure the drawing containing your custom objects opens successfully.
  4. Run the AUDIT command; confirm that it does not find any errors.
  5. Save the drawing on a computer that has the Object Enablers installed.
  6. Open the drawing with and without the Object Enablers installed. Make sure that the drawing opens successfully in both cases and that the AUDIT command does not find any errors.

If your product's Object Enablers are in multiple DBX files, test the various combinations of manually loaded DBX files using the following procedure.

To test multiple DBX files before uploading

  1. Open a drawing that requires multiple DBX files, only a subset of which are installed.
  2. Confirm that the Proxy dialog box is displayed for custom objects that do not have Object Enablers.
  3. Test the functionality of the custom objects that do have Object Enablers.
  4. Confirm that the combination of enabled custom objects and proxies does not corrupt drawing files.
  5. Repeat, using all combinations of installed and uninstalled DBX files.