I read some posts and see the "schedule:file" works in OpenStudio now. Is there any example measure? I write the following codes (from another post), but it always returns "Error: File could not be found and can not be assigned to ScheduleFile objects". Is it because of the file folder, or some formats? Thanks~
The code is as follows
ext_file = OpenStudio::Model::ExternalFile::getExternalFile(model,"/Users/name/Desktop/hourly_values.csv")
if ext_file.is_initialized
ext_file = ext_file.get
else
puts "Warning, could not find file"
runner.registerError("File could not be found and can not be assigned to ScheduleFile objects")
return false
end