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.
Solved! Go to Solution.
Solved by Balaji_Ram. Go to Solution.
You're more likely to get help if you reveal what the error is, and what causes it.
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
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.
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
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.
Hi Balaji,
Thanks for your reply. Can i know how to run the DumpDwg sample.
Thanks
Chockalingam
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
Hi Balaji,
Thanks for your efforts in solving the issue.
Finally your suggestion works for me.
Thanks and Regards,
Chockalingam.