There's not yet a definitive and simple way to export an object library to load it on another system (creation of a dedicated workflow is pending).
A temporary solution is to export with srv4 or cmd4 (all code must go in one line, here it is shown in more lines just for the better readability).
srv4 export -conditions "gn4:libObj[gn4:libRef/nav:refObject/gn4:lib/ @name='sysdefault'] | gn4:lib[@name='sysdefault']" -out sysdefault.xml -opt exp_options.xml |
cmd4 export -conditions "gn4:libObj[gn4:libRef/nav:refObject/gn4:lib/ @name='sysdefault'] | gn4:lib[@name='sysdefault']" -out sysdefault.xml -opt exp_options.xml -srvname "<name of your connection>" -username <your username> -password <your password> |
This exports library and library objects from the sysdefault library in the same file. To export another library, replace the sysdefault name with another name.
Before reimporting the exported file with srv4/cmd4, edit the file, remove ids and change the keyval value under objectType="title" (there are many occurences in the file) to the appropriate title name.
Note
You may want to edit the export option putting DataFiles="false" so the xml will contains also the thumbs of the library objects.
Code of exp_options.xml
<opt:XmlExportOptions
xmlns:opt="http://www.teradp.com/schemas/GN4/1/XmlExportOptions.xsd"
AccessStrict="false"
MimeType="text/html" RefKeys="true"
DataMaxSize="-1" />
The above embeds the binary data of library objects thumbnail in the XML.
See also
Import an object library from XML