Creates an id mapping.
OptionaldestDb: AcDbDatabaseDestination database, required for cross-database clones.
Context of the clone operation.
Duplicate record handling.
Context of the clone operation
OptionaldestDestination database of the clone operation
How records with a name already used in the destination are handled
OptionalsourceSource database of the clone operation
Adds or replaces the pair for pair.key.
Pair to record.
Records the destination name of a named record.
Table or dictionary kind.
Name in the source database.
Name in the destination database.
Returns true when a destination name was recorded for sourceName.
Table or dictionary kind.
Name in the source database.
Finds the pair recorded for a source object id.
Object id in the source database.
The pair, or undefined when the id was not cloned.
Iterates over all recorded pairs.
Translates a record name from the source to the destination database.
Names that were not remapped (including names that were not cloned at all) are returned unchanged.
Table or dictionary kind.
Name in the source database.
Translates an object id held by a clone.
Returns the destination id when the object was cloned or mapped onto an existing destination object. Otherwise the id is kept when cloning within one database, and dropped when cloning into another database, where the source id could name an unrelated object.
Object id in the source database.
The id to store on the clone, or undefined to drop it.
Records the source-to-destination translation of objects and record names during a deep clone or wblock clone.
Remarks
Mirrors
AcDbIdMappingin ObjectARX. In addition to id pairs it keeps a per-kind name map, because entities in this data model reference layers, linetypes, styles and blocks by name.Example