Example

Special Notes

Although (ssget "X") retrieves all entities, only lines that are actually visible on the screen will be included in the file.

It might seem you could also use(command "BWMFOUT" "<your filename>" "all" "")to automate creation of WMF-files. Unfortunately due to some strange AutoCAD behavior, this will cause a 'Incorrect data for command list request' error message by AutoCAD. Therefore, for automated output, use the lisp function (bwmfout).