ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in Reading ASM entity in RealDWG

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
chockalingam
747 Views, 8 Replies

Issue in Reading ASM entity in RealDWG

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.

 

8 REPLIES 8
Message 2 of 9
owenwengerd
in reply to: chockalingam

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

--
Owen Wengerd
ManuSoft
Message 3 of 9
chockalingam
in reply to: owenwengerd

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

Message 4 of 9
owenwengerd
in reply to: 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.

--
Owen Wengerd
ManuSoft
Message 5 of 9
Balaji_Ram
in reply to: chockalingam

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

Message 6 of 9
Balaji_Ram
in reply to: chockalingam

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

Message 7 of 9
chockalingam
in reply to: Balaji_Ram

Hi Balaji,

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

 

 

Thanks

Chockalingam

Message 8 of 9
Balaji_Ram
in reply to: 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

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Message 9 of 9
chockalingam
in reply to: Balaji_Ram

Hi Balaji,

Thanks for your efforts in solving the issue.

Finally your suggestion works for me.

 

 

Thanks and Regards,

Chockalingam.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost