Smart Client Extension for AutoCAD

Batch Publishing Enterprise Graphics (AFM_BATCHPUBLISH)

When publishing drawings as Archibus enterprise graphics using the Publish Enterprise Graphics form, you may find that you reach memory constraints when publishing several drawings (such as 200 to 300) at one time. To avoid these memory issues, you can run the AFM_BATCHPUBLISH command from the command line.

The AFM_BATCHPUBLISH command avoids memory issues because it loads only a subset of drawings into AutoCAD at any given time.

The number of drawings processed as a group within an AutoCAD editing session is determined by the following global AutoLISP variable of the afm_batchPublish.lsp file:

(setq afm_publish:batchSize 40)

In the above example, the command will process 40 drawings at one time. This number can be adjusted according to your site's needs and memory requirements.

Procedure

  1. At the command line of your CAD program, type the following: AFM_BATCHPUBLISH.
  2. The command presents a message requesting to open Windows Explorer. Click OK on this message.
  3. The command opens Windows Explorer and displays the folder in which it created BATCHPUBLISH.BAT.
  4. Double-click on BATCHPUBLISH.BAT.
  5. The command publishes the drawings, processing the specified number at one time. The command informs you when it has finished with all drawings.