Solved

wmf to dxf ?

Posted on 1998-08-10
4
378 Views
Last Modified: 2010-04-06
   Is there a way for me to convert a wmf fle to dxf file format?
0
Comment
Question by:imby
  • 2
4 Comments
 
LVL 3

Expert Comment

by:MorFF
ID: 1112980
Have a look at UpFront, it'll do the job nicely...

www.gomark.com/html/Design/Upfront2.html

Cheers - MorFF
0
 

Author Comment

by:imby
ID: 1112981
Sorry for not giving enough detail on the question.  I actually needed a Visual Basic Code that would do conversion from WMF to DXF and vice versa.
0
 
LVL 3

Expert Comment

by:MorFF
ID: 1112982
Sorry, but you're asking for something that is a bit specialised.  There's a lot of commercial stuff out there.

You may want to post this question in the VB area instead.

MorFF
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 300 total points
ID: 1112983
You have to write a substantial amount of code to do this.  Basically you'd have to step through the input file, play into some kind of memory structure and write it out bit by bit.  This will take a lot of time to write as both formats have a lot of complicated variation.

You can read up on WMF in the SDK documentation.  Be aware there are enhanced and win 3.1 formats.  Additionally there is a Xerox variant used in DTP which precedes the win 3.1 format with some additional crap.

You can read up on DXF in Chapter 19 of Graphics File Formats by Kay & Levine, Windcrest/McGraw-Hill 1995, ISBN 0-07-034025-0.  (it also has some on WMF too).

If you decide to write this code, I would suggest you don't do it in  VB.  WMF is a low level format (lots of bit manipulation).  It would be a good task for C or C++.  Stick the C code into DLL, ActiveX or OCX control, and then call it from VB.

However if you simply want to translate, use a trick: find a program (e.g. Halo, I think) which has a command line translator, and kick it off from VB.

Lead Tools also have an OCX which does graphics display and is supposed to support WMF & DXF.  I haven't tried it, but this may also be sufficient (you won't get source, but you can call it from your VB program)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question