Revision history  [back]

replace block of code in osm file

Hi, is there a way to replace a block of code in the osm file, like an OS:Space object, with text from a csv or txt file, using the openstudio API?

In the model:

OS:Space,

Space 1 Name,

Space 1 Handle,

line 1,

line 2,

line 3;

Replace with the following lines from an external file:

OS:Space,

Space 1 Name,

Space 1 Handle,

line 11,

line 12,

line 13;