Hello, anybody knows what I should have to do to import a DWG file in Visual Studio? I will need to move it, rotate it and make zoom in and out and set points and areas. It's possible?
Thanks very much
Sorry Vinsent, but your question isn't clear to me. Do you mean you want to insert the contents of one DWG file into another one? If so, take a look at the Database.Insert() method. Here's a blog post on a slightly different topic that uses the Insert() function.
If that doesn't answer your question, then please would you explain in more detail what you need.
BTW If you're new to the AutoCAD .NET API, make sure you check the learning resources available on www.autodesk.com/developautocad.
Hello Stephen, thanks for your answer, but in your link, I can draw some blocks above a dwg file, but I want to do it in Visual Studio, not in Autocad
My question was no good, so I'm going to explain it better...
I need to import a file/image DWG into a form in Visual Studio. So I want to take the DWG file, rotate it, zoom in and out, and possibily to draw some points and areas inside Visual Studio, not in Autocad. It is possible? How can I do this?
Will I need some libraries of Autocad for using in VS? Which ones?
Thanks for your answer
It sounds like you want to write a standalone application that allows viewing and editing of an AutoCAD DWG that can run without AutoCAD being installed on the same computer. If so, then Autodesk don't currently provide a technology that would be a solution for you. If you just want to view the DWG geometry, then you might look at plotting the DWG to DWF format and looking at Autodesk Design Review (www.autodesk.com/developdwf) or Project Freewheel (http://freewheel.autodesk.com/).