()
| 22 | |
| 23 | |
| 24 | def get_file(): |
| 25 | ifcfile = None |
| 26 | if args.ifcfile: |
| 27 | ifcfile = ifcopenshell.open(args.ifcfile) |
| 28 | elif args.output: |
| 29 | ifc = ifcopenshell.file(schema="IFC4") |
| 30 | ifc.create_entity("IfcWorkPlan") |
| 31 | ifc.create_entity("IfcProject") |
| 32 | ifc.write(args.output) |
| 33 | ifcfile = ifcopenshell.open(args.output) |
| 34 | else: |
| 35 | ifcfile = None |
| 36 | return ifcfile |
| 37 | |
| 38 | |
| 39 | if not args.ifcfile: |
no test coverage detected