Message 1 of 8
How does IDuplicateTypeNamesHandler work ?

Not applicable
02-26-2014
07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm using the code from this site :
http://adndevblog.typepad.com/aec/2013/05/copy-family-between-documents-via-api.html
I want to copy wall types from one document to another.
ElementTransformUtils.CopyElements () has a option called CopyPasteOptions .
When I use new CopyPasteOptions() Revit will give a message saying he will NOT overwrite the wall types but make a copy.
I don't want to make a copy, I realy want to overwrite the wall types.
The CopyPasteOptions has an option SetDuplicateTypeNamesHandler(IDuplicateTypeNamesHandler handler)
This is where I get stuck, how can I use this IDuplicateTypeNamesHandler ?? (so that Revit will overwrite the wall types and not insert the new ones as a copy) ?