Optimizing existing Px files for mobile devices

This procedure describes how to process a folder full of existing Px files (or a single existing Px file), applying responsive rules to the graphics to optimize their display when viewed on mobile devices using HxPx.

  • You are connected to a running station with a folder containing one or more Px files to be optimized.

  • Your Niagara station is running..

  • The pxEditor palette is open

    .
CAUTION: It is strongly recommended that you back up all Px files in a safe place before running the program object.
  1. Click to expand the station Services > ProgramService.
  2. In the pxEditor palette expand the Tools folder and drag the ResponsiveMigration programObject to the ProgramService in the station.
  3. In a Property Sheet view ResponsiveMigration programObject, in the filePath field, click the Browse icon to locate the folder of Px files (or a single Px file) to be optimized and click Open to close the window.
  4. In Services, click on DebugService to open the Logger Configuration window, and set the com.tridium.px.editor.util log to the preferred log level so that you can view the data, and click Save.
  5. Click to disable/enable any of the processing features.
    If unsure, leave set to true.
  6. In the Property Sheet (or Nav Tree) right-click on the ResponsiveMigration program, and click Actions > Dry Run
    The programObject lists all the matching files in the target directory and describes exactly what changes to make.
    Note: It is recommended that you execute Dry Run at least once. If you have done so previously, an alternative is to click on Actions > Execute to run the programObject a single time in this step, omitting the remaining steps.
  7. Click Dry Run to deselect it.
    The Dry Run option is turned off.
  8. Right-click on the ResponsiveMigration program a second time, and click Actions > Dry Run.
    Executing Dry Run a second time commits the changes to the file system.
The selected graphics have been processed to optimize their display when viewed on mobile devices using HxPx.

More configuration details are available in the “ResponsiveMigration-programObject” component topic.