Launching the Resource Generator from the Command Line

You can launch the LegacyCustoGenerator application from the command line.

  1. Run the following help command:
    LegacyCustoGenerator -h

    A list of the common arguments to be used with the LegacyCustoGenerator application is displayed:



  2. As each provider has specific arguments, you can run the following help command specifying the provider to see a list of all the arguments for a given provider:
    LegacyCustoGenerator -source SourceName -h

    where the SourceName must be:

    • VP5 for ENOVIA VPM V5

  3. For example, run the following command:
    LegacyCustoGenerator -source VP5 -user User -passwd Pwd -role Role -serverURL ServerName -inputXML Name of XML file
    where:
    • -source is the source provider
    • -user is the user name used for the connection to the source
    • -passwd is the password of the previous user
    • -role is the role used for the customization generation
    • -serverURL is the source server definition with the format http://server:port/web_app
    • -inputXML is the XML file containing the location of the metadata file and the customization file name. You can find sample scenarios in the directory $installpath/win_b64/reffiles/CATVP5CustoGenerator

    A report containing provider-specific information is displayed. At the bottom of the report, messages regarding the generation process are displayed. You can expand parts of the report to hide or show information:



  4. Click VPM V5 metadata file successfully generated:


  5. Click Type visibility files successfully generated:


  6. Click Name and attributes NLS files successfully generated:


  7. Click TE profile XML files successfully generated:


Post-Resource Generator Execution

After installation is completed, the following files are generated:

  1. VPM V5 mapping files
  2. a VPM V5 metadata file
  3. a VPM V5 admin file
  4. type visibility files
  5. object name and attribute NLS files
  6. icon mapping files
  7. PLM toolbar visibility files
  8. TE profile XML files (generated for import and export)
  9. business rule files (generated for import and export).

Files 1 through 3 are generated at:

  • the location specified in the file V5V6ResourceGenerator.xml if the V5 directory output is provided in that particular file
  • C:\Users\hm8\AppData\Local\DassaultSystemes\CATTemp
    if the V5 directory output is not provided in the file V5V6ResourceGenerator.xml

Files 4 through 9 are generated at:

  • the location specified in the file V5V6ResourceGenerator.xml if the 3DEXPERIENCE (V6) directory output is provided in that particular file
  • C:\Users\Public\Documents\DassaultSystemes\UserCache\B421D16\OnPremise\win_b64
    if the 3DEXPERIENCE (V6) directory output is not provided in the file V5V6ResourceGenerator.xml

Once the resources have been generated in the Business Logic files, customized V5 types are mapped to OOTB 3DEXPERIENCE types. So, if you want to map customized V5 types with customized 3DEXPERIENCE types, you just have to replace the OOTB types with the customized ones in the TypeMapping CATRule file.

Example:

if(srcObject->IsSupporting("VP5ProductReferenceCusto") == true 
	or srcObject->IsSupporting("VP5PartReferenceCusto") == true
	or srcObject->IsSupporting("VP5ProductReference") == true)
	{
		/*custoTypeName = "VPMReference"*/
		custoTypeName = "VPMReference_Custo"
	}
Notes:
  • You can map multiple V5 customized or OOTB types to a single 3DEXPERIENCE customized/OOTB type.
  • If LegacyCustoGenerator is run in NOCUSTO mode, the Business Logic files for upgrades and downward transfers must be copied from the client installation directory. To be more precise, copy the following to the directory Installation\win_b64\resources\knowledge\scripts:
    • Installation\win_b64\resources\samples\VP5_Coex__V5V6_NewTyping_DefaultDS
      for an upgrade
    • Installation\win_b64\resources\samples\VP5_Coex__V6V5_NewTyping_DefaultDS
      for a downgrade.