MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_file

Function get_file

src/ifc4d/__main__.py:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def 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
39if not args.ifcfile:

Callers 1

__main__.pyFile · 0.70

Calls 4

openMethod · 0.80
fileMethod · 0.45
create_entityMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected