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

Nice! thx for that rich script. It worked for me on Linux with eplus v24.1, BUT I had to add the number of Vertices manually from "" to "4" for every surface:

BuildingSurface:Detailed,
  Surface 1,                              !- Name
  Floor,                                  !- Surface Type
  ExtSlabCarpet 4in ClimateZone 1-8,      !- Construction Name
  Thermal Zone 1,                         !- Zone Name
  Thermal Zone 1 Space,                   !- Space Name
  Ground,                                 !- Outside Boundary Condition
  ,                                       !- Outside Boundary Condition Object
  NoSun,                                  !- Sun Exposure
  NoWind,                                 !- Wind Exposure
  ,                                       !- View Factor to Ground
  4,                                       !- Number of Vertices
  0.966639036161356, -0.951827216061757, 0, !- X,Y,Z Vertex 1 {m}
  2.28789326978621, -6.29076786474157, 0, !- X,Y,Z Vertex 2 {m}
  -6.25441176810156, -8.40477463854147, 0, !- X,Y,Z Vertex 3 {m}
  -7.57566600172645, -3.06583398986163, 0; !- X,Y,Z Vertex 4 {m}

Maybe you could add for such cases something like this:

if "!- Number of Vertices" is "":
    contains_vertex = df.apply(lambda column: column.str.contains('Vertex', na=False)).any(axis=1)
    number_of_rows = contains_vertex.sum()

or

for line in file:
    if 'Vertex' in line:
        count += 1