View Full Version : Creating WMF for embedding in Word
Charles
27th Jul 2006, 03:10 pm
I am new to ACAD and reading the help isn't helping. I am trying to create a WMF to embed into a Word document but all I am getting is the frame of the drawing and no drawing detail. I have tried putting in the points from one side to the other but to no avail. Any one got any ideas? Thanks in anticipation.
Charles
27th Jul 2006, 03:20 pm
Sorry should have said Acad 2007 Lite
StykFacE
27th Jul 2006, 03:25 pm
are you using the command WMFOUT or what?
f700es
27th Jul 2006, 03:25 pm
Hi Charles, I am not sure if LT will export a wmf, will it? You might have to use another application to do this. Any one else with LT know this? I don't have access to a copy here.
hendie
27th Jul 2006, 03:30 pm
as far as I can remember, outputting a WMF from Acad you could select EITHER modelspace or paperspace, and NOT both
there was a freebie program out there that did do both but I can't remember what it was called , maybe someone else can remember
profcad
27th Jul 2006, 03:48 pm
In regular AutoCAD you can use EXPORT or WMFOUT.
Hendie, is correct that you can only do model space or paper space. Why? Because you must select the object to export, and you cannot select objects in both spaces at the same time.
EDIT: John, I deleted your double post ;)
F7
Ako
27th Jul 2006, 04:50 pm
Why are you trying to create a wmf just to put into word can't you just copy and paste direct from AutoCad? That's what I do.
Dave
Alan Cullen
28th Jul 2006, 12:44 am
Another option is to use the following lisp code to export selected text to an ascii file for import into Word.....
;;--------------------------------ERROR HANDLER------------------------------
(defun clerr (s)
(if (/= s "Function cancelled")
(if (= s "quit / exit abort")
(princ)
(princ (strcat "\nError: " s))
)
)
(command "_.UNDO" "_BACK")
(setq a nil)
(setq ss1 nil)
(setvar "CMDECHO" ocmd)
(if olderr (setq *error* olderr))
(princ "\nERROR...CONSOLE BREAK...ALL TEXT CHANGES HAVE BEEN UNDONE...")
(princ)
)
;;-----------------------------MAIN PROGRAM------------------------------
(defun c:txtout ( )
(setq ocmd (getvar "CMDECHO"))
(setvar "CMDECHO" 0)
(setq olderr *error* *error* clerr) ;; Set new error handler
(princ "\n EXPORT SELECTED TEXT TO ASCII TEXT FILE - July 1998 - Alan CULLEN")
(princ "\n Select text lines in the order required for output file line number")
(print)
(setq outname (getstring "\n Enter name of OUTPUT FILE (include extension).....: "))
(setq dwgpath (getvar "dwgprefix"))
(setq outname (strcat dwgpath outname))
(setq output (open outname "w"))
(setq sstxt (ssget
'((0 . "TEXT")))
)
(setq n (sslength sstxt))
(setq index 0)
(repeat n
(setq entname (entget (ssname sstxt index)))
(setq txtgrp (assoc 1 entname))
(setq txt (cdr txtgrp))
(write-line txt output)
(setq index (+ 1 index))
)
(close output)
(princ (strcat "\nText has been placed in file \""outname"\""))
(setvar "CMDECHO" ocmd)
(setq *error* olderr) ;; Reset old error handler
(princ)
(princ)
)
lucaso
28th Jul 2006, 02:21 pm
you could try to get a copy of "Better WMF", it will even WMF a layout as if it is printed. Another way is to print in EPS (standard AC printerdriver), then convert it in WMF with ie Freehand or Illustrator.
Charles
31st Jul 2006, 08:19 am
Many thanks for the info. I Seem to have mastered it now. The reason I am using a WMF is because the client requested it. They want to see an icon on the page and just click on it to view the diagram. Thanks again for your help.
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.