Issue in Reading ASM entity in RealDWG

Issue in Reading ASM entity in RealDWG

chockalingam
Advocate Advocate
1,208 Views
8 Replies
Message 1 of 9

Issue in Reading ASM entity in RealDWG

chockalingam
Advocate
Advocate

Hi,

I am not able to read the AcDbRegion, AcDb3DSolids in a drawing using RealDWG.

I tried RealDWG versions starts from 2010 to 2012.

All returns the same error.

Here with i added the sample source code and drawing to be used.

 

I am breaking my heads for the past 4 weeks to find the solution, but not able to solve this issue

 

Can anyone help me in solving this issue.

 

Regards,

Chockalingam.

 

0 Likes
Accepted solutions (1)
1,209 Views
8 Replies
Replies (8)
Message 2 of 9

owenwengerd
Advisor
Advisor

You're more likely to get help if you reveal what the error is, and what causes it.

--
Owen Wengerd
ManuSoft
0 Likes
Message 3 of 9

chockalingam
Advocate
Advocate

Hi Owen Wengerd,

I am trying read all the entities in a drawing.

But if any AcDbRegion, AcDb3DSolids present in drawing my program crashed in the following line

 

es = pBlkTblRcdItr->getEntity(pEnt,AcDb::kForWrite);

 

 

No Error status received, also even the error not hits catch.

 

If you try to debug my sample you can find the error

 

Regards,

Chockalingam

0 Likes
Message 4 of 9

owenwengerd
Advisor
Advisor

Sorry, it's too much work for me to go to the trouble of setting up and debugging your sample. I suspect I know what the problem is, but you haven't provided enough information to be sure. For example, it would be useful to know whether the ASM modules are loaded successfully, or if the "crash" is due to missing modules.

 

Saying that your program "crashed" without providing the exception information implies that you are inexperienced or lazy. Since you went to the trouble of creating a sample, I guess you are inexperienced. I recommend to invest some time learning how to debug exceptions so you can help yourself by posting better questions in the future.

--
Owen Wengerd
ManuSoft
0 Likes
Message 5 of 9

Balaji_Ram
Alumni
Alumni

Hi Chockalingam,

 

I have repeatedly suggested the same thing for your earlier forum post as well as your query posted directly to ADN :

 

I have tried your sample code in the DumpDwg sample of the RealDWG 2010 SDK and in 2014 version and it worked ok.

Please try it with that sample and if that works, you will have a working sample project for you to compare and isolate the issue.

 

I understand that you have been on this topic for 4 weeks now, but without knowing what your findings were for a previous suggestion, it makes it difficult to suggest any further.

 

Hope you understand this.

 

Regards,

Balaji

 

 

 

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 6 of 9

Balaji_Ram
Alumni
Alumni

I have attached the screenshots to show the results from the DumpDWG sample in RealDWG 2010 SDK for a sample drawing that has a region.

 

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 7 of 9

chockalingam
Advocate
Advocate

Hi Balaji,

Thanks for your reply. Can i know how to run the DumpDwg sample.

 

 

Thanks

Chockalingam

0 Likes
Message 8 of 9

Balaji_Ram
Alumni
Alumni
Accepted solution

Hi Chockalingam,

 

Here are the steps :

 

1. Make the change to the sample code as shown in the screenshot from my previous reply

2. Build the sample project

3. copy the "Region.dwg" to a folder

4. Make change to the project settings as shown in the attached screenshot

5. Press "Ctrl+F5" to run the exe. 

 

Regards,

Balaji

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 9 of 9

chockalingam
Advocate
Advocate

Hi Balaji,

Thanks for your efforts in solving the issue.

Finally your suggestion works for me.

 

 

Thanks and Regards,

Chockalingam.

0 Likes