Several Revit API objects make use of a GUID to uniquely identify themselves.
When you copy and paste source code including any such GUID, you need to take care to replace the original GUID by your own one.
You can easily create a new GUID using the Visual Studio GUID generator tool guidgen.exe
and by other means, cf. the explanation on creating
an add-in client id for
a Revit add-in manifest.
Boost your BIM recently encountered and reported this issue in its quick tip – change those GUIDs!
Here is another case illustrating the kind of problems that can occur if you simply copy and reuse an existing GUID:
Question: I recently updated to Revit 2018.2. As a result, a custom dockable panel now throws an error at load. This error was not encountered until after the update:
Error Message: Cannot register the same dockable pane ID more than once. Parameter name: id
This is the code generating the error:
DockablePaneId id = new DockablePaneId( new Guid( "{D7C963CE-B7CA-426A-8D51-6E8254D21157}" ) ); uiApp.RegisterDockablePane( id, "Xyz", XyzPanelClass as IDockablePaneProvider );
What happened?
Answer: Several developers reported this issue.
I suspect people are copying code straight from the simpler dockable panel sample, not realizing they need to replace the GUID with their own one.
Create your own GUID to replace the original one and the problem will be resolved.