12/4/2009 3:59:51 AM
Title:
Convert my flash drawing into the .DXF and .DWG format
I am new vibe in Flash.
I want to convert my dynamic Drawing (that I created in a Flash Dialog using AS 3) into the .DXF and .DWG format.
Is there any way by which I can give the export functionality on the flash page so that the dynamic drawing that created in flash code will export into .DXF and .DWG format.
Please Help
Inder
Points: 3010
Posts:0
12/4/2009 4:13:27 AM
to my knowledge there is no direct class available yet to convert flash vector data to dxf or dwg format. But you can instead send your image as bytearray to server as JPG, PNG,GIF using as3 classes and then on server use some utility to convert that image to required format . Some applications that do image to DXF and DWG convertion are listed here .
http://3d2f.com/tags/vector/image/dxf/
12/4/2009 4:47:26 AM
i can give you some idea , you can send co-ordinates and properties of your drawing to server and create an xml format which can be then given to some 3d creation application. One example is VRML format which is xml representation of 3D drawing.
12/4/2009 4:58:36 AM
The control that i have created in Flash contains dynamic drawing and also contains lots of swc classes to show images etc.
I use AlivePDF to convert it into PDF and send it to server in binaryformat but this PDF creates Raster image of that control.
Please give me some examples or link to create it in Vector based format.
I do not have any idea of VRML format if possible can you please provide me some link or code example.
Your Help will be really appreciated!
Thanks!!
12/4/2009 5:39:55 AM
you can use this SDK to generate swf files which is also a vector format by passing an XML file . Check this site. I have seen somebody using this sdk to generate flash swf files by passing xml file.
http://www.blue-pacific.com/products/turbinesdk/default.htm
12/4/2009 6:29:34 AM
If you require a vector format then you should pass the information as text rather than bytearray.Then use that information to generate the vector file. For e.g a line can be represented as Size:1,color:black,startpoint:0,0, endpoint: 100,100. see this information is sufficient to define a line . Now this information can be used again to create an file like vrml. Check this link about writing files in vrml format
http://tecfa.unige.ch/guides/vrml/vrmlman/node6.html
As Mohit said his sdk can recieve xml format, that means the above information can be converted to xml and given to sdk somewhat like this: just an hint
< line Size='1' color='black' startpoint=0,0, endpoint: 100,100 >
12/4/2009 7:58:26 AM
Display object is already created in Flash and we have to export it in vector format. This approach would take time to implement. Is there any other approach to accomplish this.
Thanks.