// suppose "test.mpp" contains resource from resource pool and assignments from other projects Project project = new Project(dataDir + "test.mpp"); Resource resource = project.getResources().getByUid(1); // Units are calculated using assignments from other projects. Double units = resource.get(Rsc.PEAK_UNITS);