# FMX: Save user-drawn objects and save/load DXF/DWG?

**URL:** <https://forum.kirupa.com/t/fmx-save-user-drawn-objects-and-save-load-dxf-dwg/154370>\
**Category:** flash\
**Created:** [July 8, 2005, 9:54pm UTC](https://forum.kirupa.com/t/fmx-save-user-drawn-objects-and-save-load-dxf-dwg/154370 "2005-07-08T21:54:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FizixMan](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@FizixMan](https://forum.kirupa.com/u/FizixMan)\
**Post date:** [July 8, 2005, 9:54pm UTC](https://forum.kirupa.com/t/fmx-save-user-drawn-objects-and-save-load-dxf-dwg/154370/1 "2005-07-08T21:54:06Z")

</div>

Hey everyone. Sorry to seem like a leech, but I could really use the guidance. Usually I’m pretty good for finding the solution on my own without having to trouble people, but this time I seem to be coming up short. So thanks in advance for taking the time to read this.

I’m developing an auto-cad esque flash application (going good so far too). I have no problem storing object information in a database (xy coordinates, rotation, scale etc), but now my problem is converting that data to another format; specifically DXF or DWG. Now I know the flash environment itself can import/export DXF’s, but I don’t know how to load the user-made data into the environment. Is it possible to have the _environment_ run actionscripts to build these user-made objects and then manually save that to a DXF? (or even better would be a save/load DXF from the flash player)

Essentially I’d need to know if it’s possible for the flash environment to read from my database (probably from reading a PHP built XML file), execute actionscript to reconstruct any objects created, and then let me go and manually (or automatically!) export a DXF of that.

Any comments or help would be _greatly_ appreciated =]

EDIT:

The other very viable alternative is if you guys know of an XML to/from DXF/DWG converter.
