W
by whopper on 9 Sep 2022, edited 13 Sep 2022
#
When I upload a file to view.ifcopenshell.org I can click on the button on the bottom right and get a list of warnings and validation errors, see this file for an example. I'd like to get the same warnings in the output of the command python -m ifcopenshell.validate
. Is it possible?
V
by vpajic on 10 Sep 2022
#
@whopper have you tried using the "--json" flag?
W
by whopper on 12 Sep 2022, edited 12 Sep 2022
#
@vpajic Yes but I'm not getting any warnings, whereas I get 19 on view.ifcopenshell.org. The only change compared to when I was running it without --json
is that the output has a different format, but I still only get messages about violations of the IFC specification.
I attached the file I'm using with the validator. Maybe I have to change the logging level but I've yet to figure out how to do that.
W
by whopper on 13 Sep 2022
#
It seems that warnings on geometries are generated only when the geometries themselves are generated, which happens in view.ifcopenshell.org but not when running the validator alone.