Message 1 of 7
wblockCloneObjects
Not applicable
03-12-2003
05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I pass the same instance of an AcDbIdMapping variable to wblockCloneObjects()
multiple times are the contents of the AcDbIdMapping cleared in each call to
wblockCloneObjects() or are the contents appended?
I need to do an ordered cloning of entities from one database to another into
specific block table records. Finally I clone block references to the BTR's
into the new database. When done I need to fix handles in the xdata of the new
entities. While wblockCloneObjects() appears to do this, it sets any handles
that point to the references to 0. I guess it's because the are not in the new
database at the time of the call to wblockCloneObjects().
I had thought I could use the same AcDbIdMapping to all the wblockCloneObjects()
calls and then copy the original xdata to the new entities, fixing the handles
at the same time. It doesn't appear to be working the way I had hoped. Anyone
here have any experience doing this type of thing before?
--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: [email protected]
| web site: http://www.cadwerx.net
|
multiple times are the contents of the AcDbIdMapping cleared in each call to
wblockCloneObjects() or are the contents appended?
I need to do an ordered cloning of entities from one database to another into
specific block table records. Finally I clone block references to the BTR's
into the new database. When done I need to fix handles in the xdata of the new
entities. While wblockCloneObjects() appears to do this, it sets any handles
that point to the references to 0. I guess it's because the are not in the new
database at the time of the call to wblockCloneObjects().
I had thought I could use the same AcDbIdMapping to all the wblockCloneObjects()
calls and then copy the original xdata to the new entities, fixing the handles
at the same time. It doesn't appear to be working the way I had hoped. Anyone
here have any experience doing this type of thing before?
--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: [email protected]
| web site: http://www.cadwerx.net
|