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

Call AcDbDatabase::readDwgFile causes

1 REPLY 1
Reply
Message 1 of 2
genwind
450 Views, 1 Reply

Call AcDbDatabase::readDwgFile causes

Hi, expert,

I write a DBX module, create a custom entity in it. Then I create and export some functionality in a utility namespace to help caller to create and post the entity instance to DWG.
I have to new a AcDbDatabase instance and call readDwgFile to copy some blocks to the current working database.

ACAD pops a "DBX CAS 4" error on calling AcDbDatabase::readDwgFile(). But if I move the utility funcions to another arx module, the error doesn't occur. The problems is I really saw some code calling readDwgFile in DBX module and no error occurs. I don't know whether I have missed something.

I found some articles about the security and licence of the DBX but they don't talk about the resolution. (http://discussion.autodesk.com/thread.jspa?threadID=561061)
Forgive you for my reluctance of doing more research. Maybe there will be someone can tell me the resolution with one or two words. ^_^

Thanks,
Jerry
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: genwind

It sounds like your DBX module is being run outside of the AutoCAD process
space. To do that you would need to register a license of the RealDWG SDK.
See www.autodesk.com/realdwg for more information.

Cheers
Fenton Webb
Autodesk

wrote in message news:5807868@discussion.autodesk.com...
Hi, expert,

I write a DBX module, create a custom entity in it. Then I create and export
some functionality in a utility namespace to help caller to create and post
the entity instance to DWG.
I have to new a AcDbDatabase instance and call readDwgFile to copy some
blocks to the current working database.

ACAD pops a "DBX CAS 4" error on calling AcDbDatabase::readDwgFile(). But if
I move the utility funcions to another arx module, the error doesn't occur.
The problems is I really saw some code calling readDwgFile in DBX module and
no error occurs. I don't know whether I have missed something.

I found some articles about the security and licence of the DBX but they
don't talk about the resolution.
(http://discussion.autodesk.com/thread.jspa?threadID=561061)
Forgive you for my reluctance of doing more research. Maybe there will be
someone can tell me the resolution with one or two words. ^_^

Thanks,
Jerry

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

Post to forums  

Autodesk Design & Make Report

”Boost