IMPORTANT: PERFORM IMPORT STEPS IN THE SAME ORDER AS LISTED IN THIS CHAPTER.
For this step, it is assumed you already imported the typography, font layouts, fonts, hyphenations, libraries and formats, titles, workstates, edition numbers, layer types, geometry presets, groups, users, zones, regions, sections, folders, masters, category sets, object libraries, GlobalConfig, and library objects.
This topic describes the command line to import edition template objects exported from GN3 database:
del /q ids.txt
c:\Tera\gn4\bin\srv4 import -in edTemplate.img.xml -opt C:\gn3-2-gn4\GN3Change.xsl >srv4img.log
cscript /Nologo C:\gn3-2-gn4\gn3-2-gn4-idsextractor.vbs srv4img.log ids.txt
c:\Tera\gn4\bin\srv4 import -in edTemplate.xml -opt C:\gn3-2-gn4\GN3Change.xsl
c:\Tera\gn4\bin\srv4 import -in edTemplate.article.xml -opt C:\gn3-2-gn4\GN3Change.xsl >srv4article.log
cscript /Nologo C:\gn3-2-gn4\gn3-2-gn4-idsextractor.vbs srv4article.log ids.txt
c:\Tera\gn4\bin\srv4 import -in edTemplate.master.xml -opt C:\gn3-2-gn4\GN3Change.xsl
c:\Tera\gn4\bin\srv4 import -in edTemplate.pageLayer.xml -opt C:\gn3-2-gn4\GN3Change.xsl
c:\Tera\gn4\bin\srv4 import -in edTemplate.txtGeometry.xml -opt C:\gn3-2-gn4\GN3Change.xsl
c:\Tera\gn4\bin\srv4 import -in edTemplate.page.xml -opt C:\gn3-2-gn4\GN3Change.xsl
cscript /Nologo C:\gn3-2-gn4\gn3-2-gn4-recompute.vbs ids.txt cmd4in.txt
c:\Tera\gn4\bin\cmd4 -username Administrator -password Administrator <cmd4in.txt
Note
•It is assumed you have the folder C:\gn3-2-gn4\ and that is contains the specified XSL style sheet.
•It is assumed the above files were previously exported from GN3 as explained in Export edition templates.
•It is assumed that you execute this command on the GN4 IIS server, and in the folder where the exported files are stored.
•It is assumed that srv4.exe is available on the specified path.
•If the edition templates contain images, you need to provide the same drive mounted as it was in GN3, e.g. if the picture files in GN3 are located in W:\foldername, then the GN4 computer where you're performing the import must mount the same path in the same way, ie. as W:\foldername.