| 1 |
ISO-10303-21; |
| 2 |
HEADER; |
| 3 |
/* NOTE a valid model view name has to be asserted, replacing 'notYetAssigned' ----------------- */ |
| 4 |
FILE_DESCRIPTION( |
| 5 |
( 'ViewDefinition [notYetAssigned]' |
| 6 |
,'Comment [manual creation of example file]' |
| 7 |
) |
| 8 |
,'2;1'); |
| 9 |
/* NOTE standard header information according to ISO 10303-21 ---------------------------------- */ |
| 10 |
FILE_NAME( |
| 11 |
'mapped_shape_representation.ifc', |
| 12 |
'2011-11-07T18:00:00', |
| 13 |
('Thomas Liebich'), |
| 14 |
('buildingSMART International'), |
| 15 |
'IFC text editor', |
| 16 |
'IFC text editor', |
| 17 |
'reference file created for the IFC4 specification'); |
| 18 |
/* NOTE schema name to be replaced with 'IFC4' after the final release ------------------------ */ |
| 19 |
FILE_SCHEMA(('IFC4')); |
| 20 |
ENDSEC; |
| 21 |
|
| 22 |
DATA; |
| 23 |
/* --------------------------------------------------------------------------------------------- */ |
| 24 |
/* general entities required for all IFC data sets, defining the context for the exchange ------ */ |
| 25 |
#100= IFCPROJECT('0xScRe4drECQ4DMSqUjd6d',#110,'proxy with mapped representation',$,$,$,$,(#201),#301); |
| 26 |
|
| 27 |
/* single owner history sufficient if not otherwise required by the view definition ------------ */ |
| 28 |
/* provides the person and application creating the data set, and the time it is created ------- */ |
| 29 |
#110= IFCOWNERHISTORY(#111,#115,$,.ADDED.,1320688800,$,$,1320688800); |
| 30 |
#111= IFCPERSONANDORGANIZATION(#112,#113,$); |
| 31 |
#112= IFCPERSON($,'Liebich','Thomas',$,$,$,$,$); |
| 32 |
#113= IFCORGANIZATION($,'buildingSMART International',$,$,$); |
| 33 |
#115= IFCAPPLICATION(#113,'1.0','IFC text editor','ifcTE'); |
| 34 |
|
| 35 |
/* each IFC data set containing geometry has to define a geometric representation context ------ */ |
| 36 |
/* the attribute 'ContextType' has to be 'Model' for 3D model geometry ------------------------- */ |
| 37 |
#201= IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.0E-5,#210,$); |
| 38 |
/* the attribute 'ContextIdentifier' has to be 'Body' for the main 3D shape representation ----- */ |
| 39 |
#202= IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#201,$,.MODEL_VIEW.,$); |
| 40 |
#210= IFCAXIS2PLACEMENT3D(#901,$,$); |
| 41 |
|
| 42 |
/* each IFC data set containing geometry has to define at absolute minimum length and angle ---- */ |
| 43 |
/* here length is milli metre as SI unit, and plane angle is 'degree' as non SI unit ----------- */ |
| 44 |
#301= IFCUNITASSIGNMENT((#311,#312)); |
| 45 |
#311= IFCSIUNIT(*,.LENGTHUNIT.,.MILLI.,.METRE.); |
| 46 |
#312= IFCCONVERSIONBASEDUNIT(#313,.PLANEANGLEUNIT.,'degree',#314); |
| 47 |
#313= IFCDIMENSIONALEXPONENTS(0,0,0,0,0,0,0); |
| 48 |
#314= IFCMEASUREWITHUNIT(IFCPLANEANGLEMEASURE(0.017453293),#315); |
| 49 |
#315= IFCSIUNIT(*,.PLANEANGLEUNIT.,$,.RADIAN.); |
| 50 |
|
| 51 |
/* each IFC data set containing elements in a building context has to include a building ------- */ |
| 52 |
/* at absolute minimum (could have a site and stories as well) --------------------------------- */ |
| 53 |
#500= IFCBUILDING('2FCZDorxHDT8NI01kdXi8P',$,'Test Building',$,$,#511,$,$,.ELEMENT.,$,$,$); |
| 54 |
/* if the building is the uppermost spatial structure element it defines the absolute position -- */ |
| 55 |
#511= IFCLOCALPLACEMENT($,#512); |
| 56 |
/* no rotation - z and x axes set to '$' are therefore identical to "world coordinate system" -- */ |
| 57 |
#512= IFCAXIS2PLACEMENT3D(#901,$,$); |
| 58 |
/* if the building is the uppermost spatial structure element it is assigned to the project ---- */ |
| 59 |
#519= IFCRELAGGREGATES('2YBqaV_8L15eWJ9DA1sGmT',$,$,$,#100,(#500)); |
| 60 |
|
| 61 |
/* shared coordinates - it is permissible to share common instances to reduce file size -------- */ |
| 62 |
#901= IFCCARTESIANPOINT((0.,0.,0.)); |
| 63 |
#902= IFCDIRECTION((1.,0.,0.)); |
| 64 |
#903= IFCDIRECTION((0.,1.,0.)); |
| 65 |
#904= IFCDIRECTION((0.,0.,1.)); |
| 66 |
#905= IFCDIRECTION((-1.,0.,0.)); |
| 67 |
#906= IFCDIRECTION((0.,-1.,0.)); |
| 68 |
#907= IFCDIRECTION((0.,0.,-1.)); |
| 69 |
|
| 70 |
/* --------------------------------------------------------------------------------------------- */ |
| 71 |
/* proxy element with mapped representation, assigned to the building -------------------------- */ |
| 72 |
/* --------------------------------------------------------------------------------------------- */ |
| 73 |
#1000= IFCBUILDINGELEMENTPROXY('1kTvXnbbzCWw8lcMd1dR4o',$,'P-1','sample proxy',$,#1001,#1010,$,$); |
| 74 |
/* proxy element placement relative to the building -------------------------------------------- */ |
| 75 |
#1001= IFCLOCALPLACEMENT(#511,#1002); |
| 76 |
/* set local placement to 1 meter on x-axis, and 0 on y, and 0 on z axes ----------------------- */ |
| 77 |
/* no rotation - z and x axes set to '$' are therefore identical to those of building ---------- */ |
| 78 |
#1002= IFCAXIS2PLACEMENT3D(#1003,$,$); |
| 79 |
#1003= IFCCARTESIANPOINT((1000.,0.,0.)); |
| 80 |
/* proxy element shape representation ---------------------------------------------------------- */ |
| 81 |
#1010= IFCPRODUCTDEFINITIONSHAPE($,$,(#1020)); |
| 82 |
/* a single shape representation of type 'MappedRepresentation' is included -------------------- */ |
| 83 |
#1020= IFCSHAPEREPRESENTATION(#202,'Body','MappedRepresentation',(#1021)); |
| 84 |
#1021= IFCMAPPEDITEM(#5010,#1022); |
| 85 |
/* Cartesian transformation of the mapped item - here none ------------------------------------- */ |
| 86 |
#1022= IFCCARTESIANTRANSFORMATIONOPERATOR3D($,$,#901,$,$); |
| 87 |
|
| 88 |
/* --------------------------------------------------------------------------------------------- */ |
| 89 |
/* proxy element type with swept solid shape representation ------------------------------------ */ |
| 90 |
/* --------------------------------------------------------------------------------------------- */ |
| 91 |
#5000= IFCBUILDINGELEMENTPROXYTYPE('241tWGhBr3rvJJzQGOOY_x',$,'Type-P',$,$,$,(#5010),$,$,.NOTDEFINED.); |
| 92 |
#5010= IFCREPRESENTATIONMAP(#5011,#5100); |
| 93 |
#5011= IFCAXIS2PLACEMENT3D(#901,$,$); |
| 94 |
#5100= IFCSHAPEREPRESENTATION(#202,'Body','SweptSolid',(#5021)); |
| 95 |
/* based on a profile (or cross section) of 1m by 1m being extruded by 2m ---------------------- */ |
| 96 |
#5021= IFCEXTRUDEDAREASOLID(#5022,$,#5034,2000.); |
| 97 |
#5022= IFCRECTANGLEPROFILEDEF(.AREA.,'1m x 1m rectangle',$,1000.,1000.); |
| 98 |
/* extrusion body is placed centric with no rotation inside the object coordinate placement ---- */ |
| 99 |
/* extrusion position z = default = (0.,0.,1.), x = default = (1.,0.,0.) ----------------------- */ |
| 100 |
/* since IFC4 this is the default, therefore the Position can be nil --------------------------- */ |
| 101 |
/* the extrusion is perpendicular to the profile - i.e. along the positive z-axis -------------- */ |
| 102 |
#5034= IFCDIRECTION((0.,0.,1.)); |
| 103 |
|
| 104 |
/* proxy element assigned to the building ------------------------------------------------------ */ |
| 105 |
#10000=IFCRELCONTAINEDINSPATIALSTRUCTURE('2TnxZkTXT08eDuMuhUUFNy',$,'Physical model',$,(#1000),#500); |
| 106 |
|
| 107 |
/* proxy type - assignment to proxy occurrence ------------------------------------------------- */ |
| 108 |
#10100= IFCRELDEFINESBYTYPE('0DR6_plxf08eQ9Y0V0n$sV',$,$,$,(#1000),#5000); |
| 109 |
|
| 110 |
/* proxy type - declared within the project ---------------------------------------------------- */ |
| 111 |
#10200= IFCRELDECLARES ('1J7MBi$pT9ogxwD7fkPsrp',$,$,$,#100,(#5000)); |
| 112 |
|
| 113 |
ENDSEC; |
| 114 |
END-ISO-10303-21; |