OSArch Community

ifcpatch ExtractElements recipe for extracting elements with a specific IFCMaterial query

  1. S

    Anyone had any luck extracting IfcMaterial with IFC Patch in Blender (with the latest BlenderBIM release)?

    The queries that I've tried did not yield any results:

    .IfcMaterial[material.Name="value"]

    .IfcMaterial[Name="value"]

  2. T

    It's...

    .IfcElement[material.Name="value"] if you want all the objects that have the material value assigned to them.

    or

    .IfcWall[material.Name="value"] if you want all the ifcwall objects that have the material value assigned to them.

    etc., etc...

  3. M

    @theoryshaw I tried using that query in a test file that with four walls with different material assignments (single, layered, constituent and profile), that each include the same material, but eg. selector.parse(file, '.IfcWall[material.Name="Material1"]') only returns the wall with single material. If I understand https://github.com/IfcOpenShell/IfcOpenShell/pull/2503 correctly, it should return all four walls, right?

    I'm using ifcopenshell included in blenderbim, noticed there are some minor differences between that util/selector.py and the 'regular' one, but doesn't seem like that would make a difference?

  1. Page 1
  2. 2

Login or Register to reply.