Skip to content

Commit bd2bad4

Browse files
committed
add test containment relation
buildingSMART#227
1 parent ae75c9d commit bd2bad4

9 files changed

+162
-7
lines changed

Documentation/testcases/partof/pass-the_container_may_be_indirect.ids Documentation/testcases/partof/fail-the_container_must_be_related_using_specified_relation_2_2.ids

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<ids xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.7/ids.xsd" xmlns="http://standards.buildingsmart.org/IDS">
33
<info>
4-
<title>The container may be indirect</title>
4+
<title>The container must be related using specified relation 2/2</title>
55
<description>Generated via code automation in the Ids Repository on github.</description>
66
</info>
77
<specifications>
8-
<specification name="The container may be indirect" ifcVersion="IFC2X3 IFC4">
8+
<specification name="The container must be related using specified relation 2/2" ifcVersion="IFC2X3 IFC4">
99
<applicability maxOccurs="unbounded">
1010
<entity>
1111
<name>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ISO-10303-21;
2+
HEADER;
3+
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
4+
FILE_NAME('','2022-10-07T13:48:44',(),(),'IfcOpenShell v0.7.0-dc67287d','IfcOpenShell v0.7.0-dc67287d','');
5+
FILE_SCHEMA(('IFC4'));
6+
ENDSEC;
7+
DATA;
8+
#1=IFCBEAM('0eA6m4fELI9QBIhP3wiLAp',$,$,$,$,$,$,$,$);
9+
#2=IFCSPACE('3Agm079vPIYBL4JExVrhD5',$,$,$,$,$,$,$,$,$,$);
10+
#3=IFCRELAGGREGATES('05rScmOVzMoQXOfbYdtLYj',$,$,$,#2,(#1));
11+
#10=IFCPROJECT('1eA6m4fELI9QBIhP3wiLAp',$,'TestProject',$,$,$,$,$,$);
12+
#11=IFCRELAGGREGATES('2eA6m4fELI9QBIhP3wiLAp',$,$,$,#10,(#2));
13+
ENDSEC;
14+
END-ISO-10303-21;
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ids xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.7/ids.xsd" xmlns="http://standards.buildingsmart.org/IDS">
3+
<info>
4+
<title>The containment can be indirect 2/2</title>
5+
<description>Generated via code automation in the Ids Repository on github.</description>
6+
</info>
7+
<specifications>
8+
<specification name="The containment can be indirect 2/2" ifcVersion="IFC2X3 IFC4">
9+
<applicability maxOccurs="unbounded">
10+
<entity>
11+
<name>
12+
<simpleValue>IFCBEAM</simpleValue>
13+
</name>
14+
</entity>
15+
</applicability>
16+
<requirements>
17+
<partOf relation="IFCRELAGGREGATES">
18+
<entity>
19+
<name>
20+
<simpleValue>IFCBUILDING</simpleValue>
21+
</name>
22+
</entity>
23+
</partOf>
24+
</requirements>
25+
</specification>
26+
</specifications>
27+
</ids>

Documentation/testcases/partof/pass-the_container_may_be_indirect.ifc Documentation/testcases/partof/fail-the_containment_can_be_indirect_2_2.ifc

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ FILE_NAME('','2022-10-07T13:48:44',(),(),'IfcOpenShell v0.7.0-dc67287d','IfcOpen
55
FILE_SCHEMA(('IFC4'));
66
ENDSEC;
77
DATA;
8-
#1=IFCSLAB('1hqIFTRjfV6AWq_bMtnZwI',$,$,$,$,$,$,$,$);
8+
#1=IFCSPACE('3Agm079vPIYBL4JExVrhD5',$,$,$,$,$,$,$,$,$,$);
99
#2=IFCBEAM('0eA6m4fELI9QBIhP3wiLAp',$,$,$,$,$,$,$,$);
1010
#3=IFCRELAGGREGATES('05rScmOVzMoQXOfbYdtLYj',$,$,$,#1,(#2));
11-
#4=IFCSPACE('3Agm079vPIYBL4JExVrhD5',$,$,$,$,$,$,$,$,$,$);
11+
#4=IFCBUILDING('1hqIFTRjfV6AWq_bMtnZwI',$,$,$,$,$,$,$,$,$,$,$);
1212
#5=IFCRELCONTAINEDINSPATIALSTRUCTURE('0BbkGoC6vPvRW13UT7D8zH',$,$,$,(#1),#4);
13+
#10=IFCPROJECT('1eA6m4fELI9QBIhP3wiLAp',$,'TestProject',$,$,$,$,$,$);
14+
#11=IFCRELAGGREGATES('2eA6m4fELI9QBIhP3wiLAp',$,$,$,#10,(#4));
1315
ENDSEC;
1416
END-ISO-10303-21;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ids xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.7/ids.xsd" xmlns="http://standards.buildingsmart.org/IDS">
3+
<info>
4+
<title>The container must be related using specified relation 1/2</title>
5+
<description>Generated via code automation in the Ids Repository on github.</description>
6+
</info>
7+
<specifications>
8+
<specification name="The container must be related using specified relation 1/2" ifcVersion="IFC2X3 IFC4">
9+
<applicability maxOccurs="unbounded">
10+
<entity>
11+
<name>
12+
<simpleValue>IFCBEAM</simpleValue>
13+
</name>
14+
</entity>
15+
</applicability>
16+
<requirements>
17+
<partOf relation="IFCRELCONTAINEDINSPATIALSTRUCTURE">
18+
<entity>
19+
<name>
20+
<simpleValue>IFCSPACE</simpleValue>
21+
</name>
22+
</entity>
23+
</partOf>
24+
</requirements>
25+
</specification>
26+
</specifications>
27+
</ids>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ISO-10303-21;
2+
HEADER;
3+
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
4+
FILE_NAME('','2022-10-07T13:48:44',(),(),'IfcOpenShell v0.7.0-dc67287d','IfcOpenShell v0.7.0-dc67287d','');
5+
FILE_SCHEMA(('IFC4'));
6+
ENDSEC;
7+
DATA;
8+
#1=IFCBEAM('0eA6m4fELI9QBIhP3wiLAp',$,$,$,$,$,$,$,$);
9+
#2=IFCSPACE('3Agm079vPIYBL4JExVrhD5',$,$,$,$,$,$,$,$,$,$);
10+
#3=IFCRELCONTAINEDINSPATIALSTRUCTURE('0BbkGoC6vPvRW13UT7D8zH',$,$,$,(#1),#2);
11+
#10=IFCPROJECT('1eA6m4fELI9QBIhP3wiLAp',$,'TestProject',$,$,$,$,$,$);
12+
#11=IFCRELAGGREGATES('2eA6m4fELI9QBIhP3wiLAp',$,$,$,#10,(#2));
13+
ENDSEC;
14+
END-ISO-10303-21;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ids xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.7/ids.xsd" xmlns="http://standards.buildingsmart.org/IDS">
3+
<info>
4+
<title>The containment can be indirect 1/2</title>
5+
<description>Generated via code automation in the Ids Repository on github.</description>
6+
</info>
7+
<specifications>
8+
<specification name="The containment can be indirect 1/2" ifcVersion="IFC2X3 IFC4">
9+
<applicability maxOccurs="unbounded">
10+
<entity>
11+
<name>
12+
<simpleValue>IFCBEAM</simpleValue>
13+
</name>
14+
</entity>
15+
</applicability>
16+
<requirements>
17+
<partOf relation="IFCRELAGGREGATES">
18+
<entity>
19+
<name>
20+
<simpleValue>IFCBUILDING</simpleValue>
21+
</name>
22+
</entity>
23+
</partOf>
24+
</requirements>
25+
</specification>
26+
</specifications>
27+
</ids>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ISO-10303-21;
2+
HEADER;
3+
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
4+
FILE_NAME('','2022-10-07T13:48:44',(),(),'IfcOpenShell v0.7.0-dc67287d','IfcOpenShell v0.7.0-dc67287d','');
5+
FILE_SCHEMA(('IFC4'));
6+
ENDSEC;
7+
DATA;
8+
#1=IFCSPACE('3Agm079vPIYBL4JExVrhD5',$,$,$,$,$,$,$,$,$,$);
9+
#2=IFCBEAM('0eA6m4fELI9QBIhP3wiLAp',$,$,$,$,$,$,$,$);
10+
#3=IFCRELAGGREGATES('05rScmOVzMoQXOfbYdtLYj',$,$,$,#1,(#2));
11+
#4=IFCBUILDING('1hqIFTRjfV6AWq_bMtnZwI',$,$,$,$,$,$,$,$,$,$,$);
12+
#5=IFCRELAGGREGATES('15rScmOVzMoQXOfbYdtLYj',$,$,$,#4,(#1));
13+
#10=IFCPROJECT('1eA6m4fELI9QBIhP3wiLAp',$,'TestProject',$,$,$,$,$,$);
14+
#11=IFCRELAGGREGATES('2eA6m4fELI9QBIhP3wiLAp',$,$,$,#10,(#4));
15+
ENDSEC;
16+
END-ISO-10303-21;

Documentation/testcases/scripts.md

+30-3
Original file line numberDiff line numberDiff line change
@@ -1704,15 +1704,42 @@ Requirements:
17041704
PartOf: Pattern(''.*''),IFCRELCONTAINEDINSPATIALSTRUCTURE
17051705
```
17061706

1707-
### The container may be indirect
1707+
### The container must be related using specified relation 1/2
17081708

1709-
``` ids partof/pass-the_container_may_be_indirect.ids
1710-
The container may be indirect
1709+
``` ids partof/pass-the_container_must_be_related_using_specified_relation_1_2.ids
1710+
The container must be related using specified relation 1/2
17111711
Entity: ''IFCBEAM''
17121712
Requirements:
17131713
PartOf: ''IFCSPACE'',IFCRELCONTAINEDINSPATIALSTRUCTURE
17141714
```
17151715

1716+
### The container must be related using specified relation 2/2
1717+
1718+
``` ids partof/fail-the_container_must_be_related_using_specified_relation_2_2.ids
1719+
The container must be related using specified relation 2/2
1720+
Entity: ''IFCBEAM''
1721+
Requirements:
1722+
PartOf: ''IFCSPACE'',IFCRELCONTAINEDINSPATIALSTRUCTURE
1723+
```
1724+
1725+
### The containment can be indirect 1/2
1726+
1727+
``` ids partof/pass-the_containment_can_be_indirect_1_2.ids
1728+
The containment can be indirect 1/2
1729+
Entity: ''IFCBEAM''
1730+
Requirements:
1731+
PartOf: ''IFCBUILDING'',IFCRELAGGREGATES
1732+
```
1733+
1734+
### The containment can be indirect 2/2
1735+
1736+
``` ids partof/fail-the_containment_can_be_indirect_2_2.ids
1737+
The containment can be indirect 2/2
1738+
Entity: ''IFCBEAM''
1739+
Requirements:
1740+
PartOf: ''IFCBUILDING'',IFCRELAGGREGATES
1741+
```
1742+
17161743
### The container predefined type must match exactly 1/2
17171744

17181745
``` ids partof/fail-the_container_predefined_type_must_match_exactly_1_2.ids

0 commit comments

Comments
 (0)