Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page

# Revision history [back]

Yes, in the end, I was able to do initialization checks on these entities:

  model_curve_check = model.getCurveByName(curve_name.get)


And if these curves exist, I can do any work I want on them by doing the following:

if model_curve_check.is_initialized and library_curve_check.is_initialized then

library_coefficient1 = library_curve.coefficient1Constant()

if library_coefficient1 != "" then
model_curve.setCoefficient1Constant(library_coefficient1)
end

model_chiller.setCoolingCapacityFunctionOfTemperature(model_curve)
end


And if only the library curve exists, then I do the following:

if not model_curve_check.is_initialized and library_curve_check.is_initialized then