header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
simon
Points:0
Posts:0

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



1
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/

2
johnT
Points: 0
Posts:0
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.

3
Simon
Points: 0
Posts:0
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!!

4
Mohit
Points: 0
Posts:0
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

5
johnT
Points: 0
Posts:0
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 >

6
Simon
Points: 0
Posts:0
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.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+17+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions