File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,13 @@ def get_input_factory(geode_object: str):
2121
2222
2323def get_output_factory (geode_object : str ):
24- return objects_list ()[geode_object ]["output_factory" ]
24+ output_factory = objects_list ()[geode_object ]["output_factory" ]
25+ if "parent" in objects_list ()[geode_object ].keys ():
26+ parent = objects_list ()[geode_object ]["parent" ]
27+ parent_output_factory = get_output_factory (parent )
28+ return [output_factory , parent_output_factory ]
29+ else :
30+ return [output_factory ]
2531
2632
2733def missing_files (geode_object : str , file_absolute_path : str ):
Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ def objects_list():
2929 "CrossSection" : {
3030 "parent" : "Section" ,
3131 "input_factory" : og_gs .CrossSectionInputFactory ,
32- "output_factory" :
33- og_gs .CrossSectionOutputFactory ,
34- ,
32+ "output_factory" : og_gs .CrossSectionOutputFactory ,
3533 "missing_files" : og_gs .check_cross_section_missing_files ,
3634 "load" : og_gs .load_cross_section ,
3735 "save" : og_gs .save_cross_section ,
@@ -279,9 +277,7 @@ def objects_list():
279277 "StructuralModel" : {
280278 "parent" : "BRep" ,
281279 "input_factory" : og_gs .StructuralModelInputFactory ,
282- "output_factory" :
283- og_gs .StructuralModelOutputFactory ,
284- ,
280+ "output_factory" : og_gs .StructuralModelOutputFactory ,
285281 "missing_files" : og_gs .check_structural_model_missing_files ,
286282 "load" : og_gs .load_structural_model ,
287283 "save" : og_gs .save_structural_model ,
You can’t perform that action at this time.
0 commit comments