mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
#2685 assoc material test cases
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import ifcopenshell
|
||||
|
||||
task = lambda f: f.createIfcTask(ifcopenshell.guid.new(),None,'sleep',IsMilestone=True)
|
||||
wall = lambda f: f.createIfcWall(ifcopenshell.guid.new())
|
||||
|
||||
for i,fn in enumerate((task, wall)):
|
||||
f = ifcopenshell.file(schema="IFC4")
|
||||
elem = fn(f)
|
||||
f.createIfcRelAssociatesMaterial(ifcopenshell.guid.new(), None, None, None, [elem], f.createIfcMaterial('brick'))
|
||||
f.write(f"{'pass' if i else 'fail'}-assoc-material-{elem.is_a()}-{f.schema}.ifc")
|
||||
Reference in New Issue
Block a user