know about RealDWG SDK feature.

know about RealDWG SDK feature.

Anonymous
Not applicable
1,515 Views
10 Replies
Message 1 of 11

know about RealDWG SDK feature.

Anonymous
Not applicable

 

  • I have two dwg files with me. From the first file I need to read the data which is shown in the figure below.

Capture2.PNG

  • You can see I have one table in the dwg file which is shown in the above figure so from that I want to read the value , min and max of R9.

 

  • So that using your SDK API I can target those points I will get in my Application.

 

  • Please send me an example of reading this kind of data.
  • Now let's Move on Second Requirement.
  • In this We need to read the x and y coordinate of the point in the DWG first see in the below figure.Capture5.PNG
  • Observe above figure in this green portion 1 and 1.1 this is my two test point I want to get x and y Coordinate of both 1 and 1.1

 

  • Same as green portion 1 and blue portion 17 this is also my test point in my DWG file here. I want to get the x and y Coordinate of both 1 and 17.

 

  • This is possible with Real DWG SDK ?? .
  • Please send example code for this using Real DWG .

 

0 Likes
1,516 Views
10 Replies
Replies (10)
Message 2 of 11

8XXXNNJH7KT6
Autodesk
Autodesk
To be sure you understand, the RealDWG SDK is not free. It is a licensed product and any applications made using it are also licensed. And, unfortunately, there is no trial version of it. So, no one will be able to send you a test RealDWG application (they could show you source code though).

With the RealDWG SDK, it is possible to do what you are asking. But, the RealDWG SDK is non-graphical, so you can't see the drawing on screen to pick points or objects. Instead, your code must work with the object data directly. For example, your code might iterate through the objects in the drawing looking for point objects and then looking at the point object's coordinate data to decide if that point is what is desired.

To get more information, you could download the ObjectARX SDK (which is free) and look at the documentation and header files in that. The RealDWG SDK is a subset of the ObjectARX SDK - the RealDWG SDK does not contain the AutoCAD UI specific APIs that are in the ObjectARX SDK.
Message 3 of 11

Sea-Haven
Mentor
Mentor

Yes and Yes but using lisp, Vl-lisp.

1 google Table to csv as a start.

2 google find text and properties

 

Make sure last word is Autocad.

0 Likes
Message 4 of 11

hosneyalaa
Advisor
Advisor

Attached an example drawing

0 Likes
Message 5 of 11

Anonymous
Not applicable

Can You provide me the exactly how can I read those value  Programmatically using c#(.NET) or c++ code ? 

0 Likes
Message 6 of 11

Anonymous
Not applicable

Can You Explain In more About How Programmatically its help me out for my requirement ...

0 Likes
Message 7 of 11

Anonymous
Not applicable

See I can't share DWG File Because of NDA.

 

So With out these can you explain how Programmatically we can read the file using RealDWG  SDK or possible any way ??

0 Likes
Message 9 of 11

hosneyalaa
Advisor
Advisor
Message 10 of 11

Anonymous
Not applicable
Attached is a part of the DWG file we are trying to read through our .Net or C++ application. The specific info we are trying to read are -
 

1.png

 

 

1. Co-ordinates of the blocks such as the ones marked by numbers. For example I want to know the co-ordinates of where “1” is written in the green block, considering that the corner below where “20” is marked is (0,0). So, is there a way to measure this distance in RealDWG?
 
2. We want to be able to read the numbers marked in this image, like 1.11, 5.4, 22, etc.
 
3. Can we find out if there are white spaces between the 2 rectangular lines or if they touch.
 
0 Likes
Message 11 of 11

hosneyalaa
Advisor
Advisor
0 Likes