Importing Transformation Scripts in Automation Service


  
 Applies To 
  
 Product(s):Bentley Automation Service
 Version(s):8.11.14.89
 Environment: N\A
 Area: i-model Generation, i-model Transformation
 Subarea: N\A
 Original Author:Dawn Gentry, Bentley Technical Support Group
  

Importing Transformation Scripts into iCS for i-models (and the ProjectWise Environment)

 

Transformation scripts are imported into the iCS / ProjectWise environment using the Orchestration Framework Administrator.

 

While the transformation scripts produced on the desktop have value in and of themselves on the desktop, they acquire greater value after being imported into the iCS for i-models environment. Associating a transformation script with an iCS Job means a transformations can be scheduled to happen on a recurring basis and run incrementally. This will effectively monitor source files for changes. Source files that are out of date will get transformed into new target files, efficiently keeping source and transform target files in synch.

 

The general workflow for setting up i-model transformation jobs is as follows:

  1. Create a local transformation script using Bentley i-model Transformer inside the application you deployed it to.
  2. Test the script locally to make sure you get the results you want.
  3. Import the script into ProjectWise using the Job Builder dialog in Orchestration Framework Administrator.
  4. Importing the script also imports the source i-models and other related files, and creates a transformation template.
  5. Create and run a test job that uses the new transformation template to make sure you get the results you want.
  6. Finally, create a real job, where you add the files you want to process to the input set, and also modify the parameters of the transformation template as needed.

To import a script into an iCS job, on the iCS for i-models tab, enable Associate Transformation Template.

 


 

Select the Import… button to the right. A Select Template dialog will appear that allows you to browse on your local drive for the script. Select the desired script and then select Open. The Select Root Import Location dialog will appear.

 

  

 

Browse to the location in the ProjectWise data source where the script and associated files will be imported to and select OK. At this point, you will have the option to change the default locations in the Modify Default Import Locations dialog.

 


 

After you have set the import locations, select OK. The i-model Transformer dialog will appear. Each section of the transformation script can be selected and modified as necessary.

 


 

Once you have made the modifications, select Save. If not modifications are needed, select Close. Select OK, save the job, and test. The source i-models and other related files will be imported to the specified location in ProjectWise and a transformation template will be created.

 

 

When defining the input set, you can add existing i-models (either intermediate files or package files) or you can add the original CAD files. If you add a package to the input set, then all the job has to do is transform the package. If you add original CAD files, the job will first create any necessary intermediate and package files, and then transform and/or validate them as part of the same job.

 

To use the defined input set, edit the job and select Edit Parameters on the iCS for i-models tab.

 

 

In this example, changing the Target i-model Path on the second component to Input Set will apply the transformation on the files specified in the Input Files tab of the job.

  

  

  

For more information importing transformation scripts, refer to the Bentley Automation Service V8i (SELECTseries 6) Help located in C:\Program Files (x86)\Bentley\AutomationServices\help.