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

how to create a full copy of AcDbDatabase?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
dmitryg2002
598 Views, 2 Replies

how to create a full copy of AcDbDatabase?

AcDbDatabase::wblock (AcDbDatabase*&) does not create a full copy; for example, it does not copy AcDbRasterVariables.

 

Of course, there is a way  with saving to a file and then loading, but I am wondering about a way without disk operations.

 

2 REPLIES 2
Message 2 of 3
owenwengerd
in reply to: dmitryg2002

I supposed you could deep clone each of the symbol tables and the named objects dictionary via separate calls to AcDbDatabase::deepCloneObjects(), but this would not copy header variables. For that I think the only practical solution is AcDbDatabase::saveAs() and AcDbDatabase::readDwgFile().

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

Thank you, Owen! That was what I was afraid...

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

Post to forums  

Autodesk Design & Make Report

”Boost