Display full version of the post: Dwg Format to Visual basic

aykut66
07.05.2014, 14:25
hello dear friends,   i am working on a project of transforming the drawing.I want to read the AutoCAD file in to VB program so that i can generate an equivalent drawing with the same co-ordinates. For this i need to know the file format of AutoCAD drawing file which contains the co-ordinates of the lines,circles.etc( shapes). I want to learn initial and end positions of this shapes."How i can read the file of AutocAD with extension( .DWG ) into my VB program to get the exact values of the drawing objectsn( lines etc ) Please help me in this regard with your valuable knowledge and experience. Best Regards, AykutKocaeli University

John Connor
07.05.2014, 14:45
If you do a "save as" in a DXF file format won't that contain the information you need?

aykut66
07.05.2014, 17:46
yes it has but ı need some source code in vb . then I wıll translate them G codes. thanks for your reply 

John Connor
07.05.2014, 18:21
Try the Customization forum over at the AutoDesk website.http://forums.autodesk.com/t5/forums/searchpage/tab/message?solved=true&location=category%3AAutoCADTopic1How to draw a line in AutoCAD using VBA...http://autolisp-kishore.blogspot.com/2012/06/how-to-draw-line-in-autocad-using-vba.html
John Connor2014-05-07 18:55:30

rs_higgins
07.05.2014, 22:59
There is a program out here called  "NC AUTO CODE" I can't find a new version of it. that writes M&G codes from autocad the last time I used it was in autocad 13 (not autocad 2013) it also worked in 2000i but I never up graded to it for use in 2000i and lost track of who now supports it but it was by Kramer Consulting, Inc. There seems to be a lot of companies with the same name. I know this is not much to go on but you may do some research and find help on this.I am setting up my old system to check if I can take a dxf file back to AutoCad 13 and run NAC on it. I will let you know.

aykut66
08.05.2014, 09:48
thank you for all. I want to learn it and if I can find that your program I wıll try it too. I wıll search it too here. NC AUTO CODE I wish it will help me. but if I can develop a vb code ıt can be better maybe. so I am searchıng a lıttle source code. I want to read dxf ıncredıents. I dont want to draw shapes with usıng vba. I saw it has book but my search is what is dxf formats. when I open it with notepad it has Line ... spline commands. and I wıll try to wrıte a apporiate code for it.