Print Page | Close Window

Dwg Format to Visual basic

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10276
Printed Date: 17.Jul.2026 at 22:31


Topic: Dwg Format to Visual basic
Posted By: aykut66
Subject: Dwg Format to Visual basic
Date Posted: 07.May.2014 at 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, 

Aykut
Kocaeli University



Replies:
Posted By: John Connor
Date Posted: 07.May.2014 at 14:45
If you do a "save as" in a DXF file format won't that contain the information you need?


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: aykut66
Date Posted: 07.May.2014 at 17:46
yes it has but ı need some source code in vb . then I wıll translate them G codes. thanks for your reply 


Posted By: John Connor
Date Posted: 07.May.2014 at 18:21
Try the Customization forum over at the AutoDesk website.

http://forums.autodesk.com/t5/forums/searchpage/tab/message?solved=true&location=category%3AAutoCADTopic1

How to draw a line in AutoCAD using VBA...

http://autolisp-kishore.blogspot.com/2012/06/how-to-draw-line-in-autocad-using-vba.html


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: rs_higgins
Date Posted: 07.May.2014 at 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.


Posted By: aykut66
Date Posted: 08.May.2014 at 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.




Print Page | Close Window