OSArch Community

How to get warnings in the output of `python -m ifcopenshell.validate`

  1. W

    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?

  2. V

    @whopper have you tried using the "--json" flag?

  3. W

    @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.

  4. W

Login or Register to reply.