CLI tools to help development

some functions to check for IFC legality, accessible within IfcOpenShell-python, but they are not wrapped into a CLI app as far as I know.

validate.py checks basic attribute types and cardinalities. You can call it from the command line with python -m ifcopenshell.validate <ifcfile> https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcopenshell-python/ifcopenshell/validate.py

There is also the mvd submodule there https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0/src/ifcopenshell-python/ifcopenshell that is probably be able to be ran from the command line. I’m not really sure what entry points for command line usage it defines, but that should be easy to adapt.

3 Likes