What a loaded question this is! It all depends on what you want to do and how often. Your code could be as simple as this:
set view=dbSource.Getview("ViewName")
set doc=dbSource.GetdocumentByUnid
("ViewName.UniversalId")
call doc.CopytoDatabase(dbDestination)
But if you are looking at how to access design documents and then copy them into another database, Tim Tripcony's tip Using DXL classes to create version control shows how easy it can be done in ND6. The code he provides in the tip is a good place to get started.
Do you have comments on this Ask the Expert Q&A? Let us know.
|