PDA

View Full Version : Flex with Autocad


batmitra
01-29-2007, 03:12 PM
Hi all
Does anyone knows how to get Autocad Draws into flex? i need to make a sort of map application but with cad drawings. So i need panning , and zoom ,etc.

Thanks

Tink
01-29-2007, 03:41 PM
load an image into an Image component. Place this inside a canvas and then alter its position and scale.

batmitra
01-31-2007, 10:35 PM
Thanks for your answer but autocad files are not simple images, they are full of vector images and are in a format hard to work with.

Any more ideas?

Thanks

dr_zeus
01-31-2007, 11:24 PM
As far as I know, there are no open source libraries for the AutoCAD format for ActionScript 3. You'll have to figure out how to read the file and translate the contents into drawing commands.

Tink
01-31-2007, 11:56 PM
you can't export the drawings as bitmaps? that would be your simpliest solution

batmitra
02-01-2007, 10:03 AM
For a map solution i need it to be draw on the fly, so i can't export autocad drawings, i 'll try to search on how to do that.

Thanks anyway for your answers

Tink
02-13-2007, 10:34 PM
might be useful

http://www.swftools.com/tools-details.php?tool=5121101888

xDVST8x
03-24-2007, 11:29 PM
im working on the same type project you are.. i have managed to convert my autocad drawings to a usable format in flash.... now i am trying to make
a type of drawing app in flex.. with the pan & zoom.. pencil, shapes colors..
and to be able to move & resize these objects after they are placed..

can someone point me in the right direction to "learn" how to create this type of whiteboard app.. i do not need multi user functions or sharing..

just a drawing app..


thanks

jsebrech
03-25-2007, 02:31 PM
I've built an application like this. I ended up converting the autocad files to SVG server-side and then parsing that SVG in flash. The reason for such a convoluted structure was that I needed intelligent behavior in the drawings (objects that supported dragging, theming and hiding), and having an in-between format that was not SWF worked better in the design. If all you want to do is show the drawings, figure out how to convert the autocad drawings to swf server-side (for example, with flashdwg as mentioned above), and load those swf's.

xDVST8x
03-28-2007, 02:56 AM
what i'd like to do is load the swf autocad drawing and basically "markup" the drawing.. but with draggable objects.. so if i draw a box.. id like to be able to drag that box around.. text.. and other tools, etc..

im pretty much a newbie.. i'd like to either pay for something thats pretty much done.. or have someone point me in the right direction on how to do this. dont worry about the acad files. just the actual drawing app.

thanks