Skip to content

Commit 111096b

Browse files
authored
Added test case for USERDEFINED predefinedType (#307)
1 parent 8f5e749 commit 111096b

3 files changed

+47
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ISO-10303-21;
2+
HEADER;
3+
FILE_DESCRIPTION(('ViewDefinition [CoordinationView]'),'2;1');
4+
FILE_NAME('','2022-10-07T13:48:42',(),(),'IfcOpenShell v0.7.0-dc67287d','IfcOpenShell v0.7.0-dc67287d','');
5+
FILE_SCHEMA(('IFC4'));
6+
ENDSEC;
7+
DATA;
8+
#1=IFCWALLTYPE('1hqIFTRjfV6AWq_bMtnZwI',$,$,$,$,$,$,$,'WALDO',.USERDEFINED.);
9+
ENDSEC;
10+
END-ISO-10303-21;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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>A predefined type may specify a user-defined element type</title>
5+
<description>Generated via code automation in the Ids Repository on github.</description>
6+
</info>
7+
<specifications>
8+
<specification name="A predefined type may specify a user-defined element type" ifcVersion="IFC2X3 IFC4">
9+
<applicability maxOccurs="unbounded">
10+
<entity>
11+
<name>
12+
<simpleValue>IFCWALLTYPE</simpleValue>
13+
</name>
14+
</entity>
15+
</applicability>
16+
<requirements>
17+
<entity>
18+
<name>
19+
<simpleValue>IFCWALLTYPE</simpleValue>
20+
</name>
21+
<predefinedType>
22+
<simpleValue>USERDEFINED</simpleValue>
23+
</predefinedType>
24+
</entity>
25+
</requirements>
26+
</specification>
27+
</specifications>
28+
</ids>

Documentation/testcases/scripts.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,15 @@ Requirements:
845845
Entity: ''IFCWALLTYPE'',''WALDO''
846846
```
847847

848+
### A predefined type may specify a user-defined element type
849+
850+
``` ids entity/pass-userdefuned_predefined_types_may_be_specified.ids
851+
A predefined type may specify a user-defined element type
852+
Entity: ''IFCWALLTYPE''
853+
Requirements:
854+
Entity: ''IFCWALLTYPE'',''USERDEFINED''
855+
```
856+
848857
### A predefined type may specify a user-defined object type
849858

850859
This custom subType should be allowed, if custom is allowed in the enumeration.
@@ -868,17 +877,6 @@ Requirements:
868877
Entity: ''IFCTASKTYPE'',''TASKY''
869878
```
870879

871-
### A predefined type must always specify a meaningful type, not USERDEFINED itself
872-
873-
TODO: the group agreed to allow userdefined as a valid option too.
874-
875-
``` suspended ids entity/fail-a_predefined_type_must_always_specify_a_meaningful_type__not_userdefined_itself.ids
876-
A predefined type must always specify a meaningful type, not USERDEFINED itself
877-
Entity: ''IFCWALL''
878-
Requirements:
879-
Entity: ''IFCWALL'',''USERDEFINED''
880-
```
881-
882880
### An entity not matching a specified predefined type will fail
883881

884882
``` ids entity/fail-an_entity_not_matching_a_specified_predefined_type_will_fail.ids

0 commit comments

Comments
 (0)