-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathtestpath.py
More file actions
25 lines (19 loc) · 813 Bytes
/
testpath.py
File metadata and controls
25 lines (19 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
########################################################################################################################
# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
# See also https://openstudio.net/license
########################################################################################################################
import openstudio
# import openstudio_dynamic as openstudio
# workspace test
workspace = openstudio.Workspace()
zone = workspace.addObject(openstudio.IdfObject(openstudio.IddObjectType("Zone")))
zone = zone.get()
zone.setName("New Zone")
for obj in workspace.objects():
print(obj)
# model test
model = openstudio.model.Model()
space = openstudio.model.Space(model)
space.setName("New Space")
for s in openstudio.model.getSpaces(model):
print(s)