@@ -101,6 +101,12 @@ def display():
101
101
'that this has no effect if there are no meshes associated with the model '
102
102
'SensorGrids. Choose from: Surface, SurfaceWithEdges, Wireframe, Points' ,
103
103
type = str , default = 'Surface' , show_default = True )
104
+ @click .option (
105
+ '--active-grid-data' , '-ad' , help = 'Text to specify the active data in the '
106
+ 'AnalysisGeometry. This should match the name of the sub-folder '
107
+ 'within the grid_data_path that should be active. If unspecified, the '
108
+ 'first data set in the grid-data with be active.' ,
109
+ type = str , default = None , show_default = True )
104
110
@click .option (
105
111
'--output-format' , '-of' , help = 'Text for the output format of the resulting '
106
112
'VisualizationSet File (.vsf). Choose from: vsf, json, pkl, vtkjs, html. Note '
@@ -118,7 +124,7 @@ def display():
118
124
def model_to_vis_set (
119
125
model_file , color_by , wireframe , mesh , show_color_by ,
120
126
room_attr , face_attr , color_attr , grid_display_mode , hide_grid ,
121
- grid_data , grid_data_display_mode , output_format , output_file ):
127
+ grid_data , grid_data_display_mode , active_grid_data , output_format , output_file ):
122
128
"""Translate a Honeybee Model file (.hbjson) to a VisualizationSet file (.vsf).
123
129
124
130
This command can also optionally translate the Honeybee Model to a .vtkjs file,
@@ -139,7 +145,8 @@ def model_to_vis_set(
139
145
hide_color_by = hide_color_by , room_attr = room_attr , face_attr = face_attr ,
140
146
room_text_labels = text_labels , face_text_labels = text_labels ,
141
147
grid_display_mode = grid_display_mode , hide_grid = hide_grid ,
142
- grid_data_path = grid_data , grid_data_display_mode = grid_data_display_mode )
148
+ grid_data_path = grid_data , grid_data_display_mode = grid_data_display_mode ,
149
+ active_grid_data = active_grid_data )
143
150
output_format = output_format .lower ()
144
151
if output_format in ('vsf' , 'json' ):
145
152
output_file .write (json .dumps (vis_set .to_dict ()))
0 commit comments