how to read the auto cad (.dwg) file using c#

how to read the auto cad (.dwg) file using c#

Anonymous
Not applicable
9,602 Views
4 Replies
Message 1 of 5

how to read the auto cad (.dwg) file using c#

Anonymous
Not applicable

Hi Expert,

 

I have attached a image. It is a .dwg file of auto cad. I want to read table values which is showing in the image. like PART_MARK, PART_DESCRIPTION, LENGTH_MAX,THICKNESS,QTY,TOTAL WT. L_WIDTH,R_WIDTH and so on.

After reading the above values i will perform some formula on  these value.

 

Till now i have no idea how to do it. Please guide me on this.

 

autocad.png

john.vellek has embedded your image(s) for clarity

0 Likes
9,603 Views
4 Replies
Replies (4)
Message 2 of 5

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> I want to read table values

Can you please describe this a bit more detailed as I guess "reading" is not the problem, but I don't understand what you mean by that.
Are you referring to an application you are developing?

 

Also a dwg-file instead the screenshot might also be necessary as we can't see (in the screenshot) if that is an AutoCAD table, an Excel table linked to AutoCAD, blocks with attributes or just text between horizontal and vertical lines ...

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 5

john.uhden
Mentor
Mentor

Maybe he needs to actually purchase an AutoCAD subscription so that he can export the data.

Or, he could hire an intern to read an write the data.

John F. Uhden

0 Likes
Message 4 of 5

Anonymous
Not applicable

Hi Alfred,

 

I have attached the original drawing file for your reference.

 

Yes, I am developing new window application using C# and WIN form of microsoft visual studio 2010 tools. My problem is I am not able to get drawing values in my application. Is there is any way or API  through which i could get values in my application.

 

Hope now you understand the whole issue. Please provide me solution for this.

 

 

Thanks & Regards,

Pankaj

0 Likes
Message 5 of 5

ActivistInvestor
Mentor
Mentor

There really isn't any relevance to what form the data takes in the DWG file.

 

Regardless of that, without AutoCAD installed, your options are limited:

 

1. Purchase a RealDwg license that allows you to use Autodesk's DWG access libraries from your C# windows application.

 

2. Use a 3rd party DWG read/write library that supports the .NET framework (which are usually also expensive).

 

3. Use Autodesk's Forge platform (e.g., cloud) to access the .DWG files.

 


@Anonymous wrote:

Hi Alfred,

 

I have attached the original drawing file for your reference.

 

Yes, I am developing new window application using C# and WIN form of microsoft visual studio 2010 tools. My problem is I am not able to get drawing values in my application. Is there is any way or API  through which i could get values in my application.

 

Hope now you understand the whole issue. Please provide me solution for this.

 

 

Thanks & Regards,

Pankaj


 

0 Likes