Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Utility for installing Stylesheets in Teamcenter

Hi,

 

I'm trying to get some clarification on the utilities that can be used from the command line that can install configurations/customizations, in particular installing Stylesheets.

 

Currently our team has been executing Stylesheet imports using the Utility: "import_file.exe"

  • This utility is a one file at a time load
  • stylesheets to be loaded can number in single to multiple digits depending on the amount of development that has been done.
  • To speed up deployments, we have been practicing the load of firing off multiple parallel loads, but believe this may be causing stylesheets to fail on load, even though the utility returned success.

Recently it has been brought to our attention that there is another utility by the name of "install_xml_stylesheet_datasets.exe", that allows the single execution of the import process, fed by a manifest file for the loading of multiple stylesheets.

  • This appears to load much faster than the line by line load
  • There is no clear documentation on this other than the -h option.
  • There is a PR for the missing documentation, but still does not address the tools valid usage

I was wondering if anyone else has ever compared the two utilities and have specific feedbacks on their usage? Any preferences. The second utility seems more functional and efficient, but the lack of documentation presents concerns on its usage.

5 REPLIES

Re: Utility for installing Stylesheets in Teamcenter

admin_data_export/import may be an alternative to transfer stylesheets from one site to another. 

Re: Utility for installing Stylesheets in Teamcenter

Oh sure, throw and another wrench at the cog...

 

This does bring up a good point that there is yet another mechanism for bringing changes into a target system.

 

We had limited the use of the Admin_data tool due to some issues with an earlier version that had problems with Organization/RuleTree based imports. We have been using it for analyzing differences between environments. Our organization is a single site deployment, however our Dev/Test and PreProd environments are conceptually other sites, but they are not setup to share data as a multi site config does.

 

The Admin_data_import has some interesting features that make it worth looking into (Packaged deployment and dry-run report capabilities), but still does not clarify the values and what is considered best practice for importing singlular type objects such as stylesheets.

Solution
Solution
Accepted by topic author Trent
‎02-16-2017 04:46 PM

Re: Utility for installing Stylesheets in Teamcenter

[ Edited ]

You can do multiple imports at the same time using import_file...

 

Import (single)

import_file -u=infodba -p=infodba -g=dba -de=r -f=DocumentCreate.xml -d=DocumentCreate -ref=XMLRendering -type=XMLRenderingStylesheet -

 

Import (multiple)

import_file -u=infodba -p=infodba -g=dba -i=_acme2_camcmm_ds.dat -

 

_acme2_camcmm_ds.dat:

-de=r -f=ACME2_CAMCMM.xml        -d=EMF2_CAMCMM        -ref=XMLRendering -type=XMLRenderingStylesheet
-de=r -f=ACME2_CAMCMMSummary.xml -d=EMF2_CAMCMMSummary -ref=XMLRendering -type=XMLRenderingStylesheet
-de=r -f=ACME2_CAMCMMCreate.xml  -d=EMF2_CAMCMMCreate  -ref=XMLRendering -type=XMLRenderingStylesheet
-de=r -f=ACME2_CAMCMMSaveAs.xml  -d=EMF2_CAMCMMSaveAs  -ref=XMLRendering -type=XMLRenderingStylesheet
-de=r -f=ACME2_CAMCMMRevision.xml        -d=EMF2_CAMCMMRevision        -ref=XMLRendering -type=XMLRenderingStylesheet
-de=r -f=ACME2_CAMCMMRevisionSummary.xml -d=EMF2_CAMCMMRevisionSummary -ref=XMLRendering -type=XMLRenderingStylesheet
-de=r -f=ACME2_CAMCMMRevisionSaveAs.xml  -d=EMF2_CAMCMMRevisionSaveAs  -ref=XMLRendering -type=XMLRenderingStylesheet

 

 

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Utility for installing Stylesheets in Teamcenter

Thanks Randy,

 

Apparently we overlook that option on the "Import_file" command, so this makes the "Import_file" utility a bit more robust than the "install_xml_stylesheet_dataset" option.

 

Have you ever encountered issues where "import_file" reported a successful install of a stylesheet dataset, yet it was not loaded?

Re: Utility for installing Stylesheets in Teamcenter

Never. You have to remember to regenerate the client cache and metadata cache after updating spreadsheets.

# Delete
generate_metadata_cache -u=infodba -p=infodba -g=dba -delete
generate_client_meta_cache -u=infodba -p=infodba -g=dba -t delete all
# Regenerate
generate_client_meta_cache -u=infodba -p=infodba -g=dba -t generate all
generate_metadata_cache -u=infodba -p=infodba -g=dba -force

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2