Solved

wmf to dxf ?

Posted on 1998-08-10
4
377 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create SVG Logo for Website using Illustrator 18 612
D3, SVG, javascript, grouping 2 105
Simple 3D CAD 18 110
Could you point a workaround on how to open this Adobe Flash documents? 5 146
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.

832 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