deepClone problems

deepClone problems

Anonymous
Not applicable
289 Views
0 Replies
Message 1 of 1

deepClone problems

Anonymous
Not applicable
Hi,

It's my first time when i'm using AcDbObject::deepClone.

1) What i have:

in ObjectNamedDictionary such structure:

ObjectNamedDictionary -> AcDbDictionary(1) -> AcDbDictionary(2)->AcDbXRecord

2) what i want:
i whant a copy of AcDbDictionary(2) so that AcDbXRecord also be copied.

3) what i do:

AcDbIdMapping idMap;
AcDbDictionary(2)->deepClone(AcDbDictionary(1) ,
(AcDbObject*&)AcDbDictionary(newOne), idMap, Adesk::kFalse);
AcDbDictionary(1)->setAt("Copy", AcDbDictionary(newOne), DictId);

4) what i get:

i get copy AcDbDictionary(newOne) but AcDbXRecord handle is the same as
AcDbXRecord that belongs to AcDbDictionary(2). And i need new object. How
to do that?

Thank's!!!
0 Likes
290 Views
0 Replies
Replies (0)