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

Revision history [back]

click to hide/show revision 1
initial version

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;