Resource Units and Usage Graph


Table of Contents

 Script is a functionality to automate calculating and updating certain values in a file. We can also use script to load the resource quantities (planned units) then review the resource curve in Resource Usage Graph.

Getting Started

Explore the model on your own, including models loaded, tasks/resources user fields, 3D model, task logic, etc.

Under Resources, we have Material Type Resources – Concrete and Steel, which are not associated with 3D objects. In the next part, we will learn how to load the Resource quantities in Resource Properties tab.

Loading Resource Unit

  1. Create Material resource "Concrete". Select “Concrete” resource > Select tasks related to concrete> Assign Resources;


  2. Create a TXT file > Save your script in it;
    Script can be saved as a TXT file and then opened to be run later.

    TASK(SELECTED).ASSIGNMENT (RESOURCE.NAME=="Concrete") SET_PROPERTY( PLANNED_WORK, TASK.UFV("Total Volume") )

    This script assigns the UFV “Total Volume” to the planned units of resources assigned to the selected tasks. Here are some explanations:
    The basic format of one line of script is <Object> (Condition) <Command>.

    In this script:
    1. Object:
      TASK (SELECTED) - all selected tasks in the project;

    2. ASSIGNMENT - When applied to a Task, returns all the assigned Resources with access to the assignment properties;
      PLANNED_WORK - planned units of resources;

    3. Command:
      SET_PROPERTY( PLANNED_WORK, TASK.UFV("Total Volume") ) - Changes all planned units with Total Volume user field value.

  3. “Project Control” Ribbon > Synchro Script > Right-Click > Add External Script to open the script file;
  4. Preview to Check > Run;
      

When we go back to the Tasks Properties we can choose one certain task to check if the resource units have been modified.

 

Resource Usage Graph

  1. Go to Windows > Resource Usage Graph to open it.
  2. Unselect other resources and only select Concrete resource.
  3. Right-click on Resource Usage Graph:
    • Tasks > All Tasks
    • Resources > Selected Resource(s) > check Material Resources
    • Options
      • Data > Stack Resources, Planned Utilization
      • Histogram > Units/Time, week
      • Curves > Units (cumulative)

Resource Units and Usage Graph (Video)