fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6867] Added unit tests and helper files


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [6867] Added unit tests and helper files
Date: Thu, 27 Jan 2011 08:40:16 +0000

Revision: 6867
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6867
Author:   peturbjorn
Date:     2011-01-27 08:40:15 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Added unit tests and helper files

Added Paths:
-----------
    branches/dev-bim2/property/tests/BIM/TestBObimitem.php
    branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php
    branches/dev-bim2/property/tests/BIM/TestSObimrest_solo.php
    branches/dev-bim2/property/tests/BIM/TestUIbim.php
    branches/dev-bim2/property/tests/BIM/restTestFile.txt
    branches/dev-bim2/property/tests/BIM/valid_ifc_example.ifc

Added: branches/dev-bim2/property/tests/BIM/TestBObimitem.php
===================================================================
--- branches/dev-bim2/property/tests/BIM/TestBObimitem.php                      
        (rev 0)
+++ branches/dev-bim2/property/tests/BIM/TestBObimitem.php      2011-01-27 
08:40:15 UTC (rev 6867)
@@ -0,0 +1,94 @@
+<?php
+/*
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+include_once './TestBimCommon.php';
+class TestBObimitem extends TestBimCommon
+{
+       
+       /**
+        * @var boolean $backupGlobals disable backup of GLOBALS which breaks 
things
+        */
+       protected $backupGlobals = false;
+
+       /**
+        * @var integer $fieldID The attribute ID used for all the tests
+        */
+       protected $fieldID;
+
+       private $sobimitem;
+       private $bobimmodel;
+       
+       private $validIfcFileName = "valid_ifc_example.ifc";
+       private $validIfcFileWithPath;
+       
+       private $testingFileName = "restTestFile.txt";
+       private $testingFileWithPath;
+       
+       public function __construct() {
+               $this->testingFileWithPath = 
getcwd().DIRECTORY_SEPARATOR.$this->testingFileName;
+               $this->validIfcFileWithPath = 
getcwd().DIRECTORY_SEPARATOR.$this->validIfcFileName;
+       }
+       
+       /**
+        * Setup the environment for the tests
+        *
+        * @return void
+        */
+       protected function setUp()
+       {
+               $this->initDatabase();  
+               
+       }
+       /**
+        * Clean up the environment after running a test
+        *
+        * @return void
+        */
+       protected function tearDown()
+       {
+                        
+       }
+
+       public function testDb(){
+               $this->assertNotNull($this->db);
+       }
+       
+       public function testGetStuff() {
+               $theXml = $this->getFacilityManagementXmlWithValidIfc();
+               
+               $bobimitem = new bobimitem_impl();
+               $this->sobimitem = new sobimitem_impl($this->db);
+               $bobimitem->setModelId(3);
+               $bobimitem->setIfcXml($theXml);
+               $bobimitem->setSobimitem($this->sobimitem);
+               $bobimitem->setSobimtype(new sobimtype_impl($this->db));
+               
+               $bobimitem->loadIfcItemsIntoDatabase();
+       }
+       
+       private function getFacilityManagementXmlWithValidIfc() {
+               $sobim_converter = new sobim_converter_impl();
+               $sobim_converter->setFileToSend($this->validIfcFileWithPath);
+               try {
+                       $returnedXml =  
$sobim_converter->getFacilityManagementXml();
+                       $sxe = simplexml_load_string($returnedXml);
+                       return $sxe;                    
+               } catch ( Exception $e) {
+                       echo $e;
+               }
+       }
+       
+       
+}

Added: branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php
===================================================================
--- branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php           
                (rev 0)
+++ branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php   
2011-01-27 08:40:15 UTC (rev 6867)
@@ -0,0 +1,207 @@
+<?php
+
+
+
+/*
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+
+
+
+define('PHPGW_API_UNIT_TEST_PATH', dirname(__FILE__));
+
+
+
+
+class TestSObim_converter extends PHPUnit_Framework_TestCase
+{
+       protected static $login = 'peturbjorn';
+
+    // this is is a bit of a hack, but it should work
+    protected static $sessionid = '';
+    
+       private $validIfcFileName = "valid_ifc_example.ifc";
+       private $validIfcFileWithPath;
+       
+       private $testingFileName = "restTestFile.txt";
+       private $testingFileWithPath;
+       
+       public function __construct() {
+               $this->testingFileWithPath = 
getcwd().DIRECTORY_SEPARATOR.$this->testingFileName;
+               $this->validIfcFileWithPath = 
getcwd().DIRECTORY_SEPARATOR.$this->validIfcFileName;
+       }
+       /**
+        * @var boolean $backupGlobals disable backup of GLOBALS which breaks 
things
+        */
+       protected $backupGlobals = false;
+
+       /**
+        * @var integer $fieldID The attribute ID used for all the tests
+        */
+       protected $fieldID;
+
+       
+
+       /**
+        * Setup the environment for the tests
+        *
+        * @return void
+        */
+       protected function setUp()
+       {
+                $GLOBALS['phpgw_info']['flags'] = array
+        (
+            'currentapp'    => 'login',
+            'login'            => true,
+            'noapi'            => false,
+            'noheader'        => true
+        );
+
+        $header = realpath(PHPGW_API_UNIT_TEST_PATH . '/../../..')
+                . '/header.inc.php';
+        include_once $header;
+
+       /* self::$sessionid = $GLOBALS['phpgw']->session->create(self::$login,
+                                                            '', false);*/
+        
+       
+               //$GLOBALS['phpgw_info']['user']['account_id'] = 7;
+               //$GLOBALS['phpgw']->acl->set_account_id(7); // not sure why 
this is needed...
+               
+               //require('..\..\inc\class.sobim.inc.php');
+               //require('..\..\inc\class.sobimtype.inc.php');
+               phpgw::import_class('property.sobim_converter');
+               phpgw::import_class('property.restrequest');
+               
+               $this->createTestingFile();
+               echo "---------------------------\n";
+       }
+       /**
+        * Clean up the environment after running a test
+        *
+        * @return void
+        */
+       protected function tearDown()
+       {
+               $this->deleteTestingfile();
+                
+       }
+       
+       public function testGet() {
+               
+               $rest = new RestRequest();
+               
$rest->setUrl("http://localhost:8080/BIM_Facility_Management/rest/uploadIfc";);
+               $rest->setAcceptType("text/html");
+               $rest->execute();
+               echo $rest->getResponseBody() ."\n";
+       }
+       public function testRestRequestPost() {
+               
+               $url = 
"http://localhost:8080/BIM_Facility_Management/rest/tests/testPut";;
+               $verb = "POST";
+               $data = array (
+                       'file'=>'@'.$this->testingFileWithPath
+               );
+               //var_dump( $data );
+               
+               $rest = new RestRequest($url, $verb, $data);
+               
//$rest->setUrl("http://145.247.163.52:8080/BIM_Facility_Management/rest/tests/testPut/ttt";);
+               // 
http://145.247.163.52:8080/BIM_Facility_Management/rest/uploadIfc
+               
+               $rest->setAcceptType("text/html");
+               $rest->setLocalFile($this->testingFileWithPath);
+               $rest->execute();
+               echo $rest->getResponseBody();
+               echo "\n resp info \n";
+               var_dump($rest->getResponseInfo());
+               
+       }
+       
+       /*public function testRestRequestPut() {
+               $rest = new RestRequest();
+               
$rest->setUrl("http://localhost:8080/BIM_Facility_Management/rest/tests/testPut/lala";);
+               
$rest->setUrl("http://145.247.163.52:8080/BIM_Facility_Management/rest/tests/testPut/ttt";);
+               // 
http://145.247.163.52:8080/BIM_Facility_Management/rest/uploadIfc
+               $rest->setVerb("PUT");
+               $rest->setAcceptType("text/html");
+               $rest->setLocalFile($this->testingFileWithPath);
+               $rest->execute();
+               echo $rest->getResponseBody();
+               
+       }*/
+       
+       public function testManual() {
+               $url = 
"http://localhost:8080/BIM_Facility_Management/rest/tests/testPut";;
+               //$url = 
"http://10.0.0.1:8080/BIM_Facility_Management/rest/tests/testPut";;
+               $ch = curl_init(); 
+               $data = array('type' => 'direct', 
'file'=>"@$this->testingFileWithPath", 'value1'=>'aaaaa1');
+               curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
+               //curl_setopt($ch, CURLOPT_POST, 1);
+               //curl_setopt($ch, CURLOPT_POSTFIELDS, array('type' => 
'direct', 'file'=>"@$this->testingFileWithPath", 'value1'=>'aaaaa1'));
+               curl_setopt($ch, CURLOPT_POST, 1);
+               curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
+               
+               curl_setopt($ch, CURLOPT_URL, $url);
+               curl_setopt($ch, CURLINFO_HEADER_OUT, true);
+               curl_setopt($ch, CURLOPT_TIMEOUT, 5*60); //seconds
+               
+               $result = curl_exec ($ch);
+               echo "\n Result : $result \n";
+               echo "Error:".curl_error($ch);
+               
+               $info = curl_getinfo($ch);
+               
+               var_dump($info);
+       }
+       private function createTestingFile() {
+               $fileHandle = fopen($this->testingFileWithPath, 'w');
+               fwrite($fileHandle, "This is a test file for the rest service\n 
Please delete this file if you come across it!");
+               fclose($fileHandle);
+       }       
+       private function deleteTestingfile() {
+               //unset($this->testingFileWithPath);
+       }
+       
+       public function testgetFacilityManagementXmlWithInvalidIfc() {
+               $sobim_converter = new sobim_converter_impl();
+               $sobim_converter->setFileToSend($this->testingFileWithPath);
+               try {
+                       $result =  $sobim_converter->getFacilityManagementXml();
+                       echo "Result is:".$result."\n -- result end \n";
+               } catch ( Exception $e) {
+                       echo "Exception thrown is:".$e."\n -- result end \n";
+                       
+               }
+       }
+       
+       public function testgetFacilityManagementXmlWithValidIfc() {
+               $sobim_converter = new sobim_converter_impl();
+               $sobim_converter->setFileToSend($this->validIfcFileWithPath);
+               try {
+                       $returnedXml =  
$sobim_converter->getFacilityManagementXml();
+                       $sxe = simplexml_load_string($returnedXml);
+                       $this->assertTrue(isset($sxe), "Invalid XML!");
+                       
+                       
+                       
+               } catch ( Exception $e) {
+                       echo $e;
+               }
+       }
+       
+       
+       
+}

Added: branches/dev-bim2/property/tests/BIM/TestSObimrest_solo.php
===================================================================
--- branches/dev-bim2/property/tests/BIM/TestSObimrest_solo.php                 
        (rev 0)
+++ branches/dev-bim2/property/tests/BIM/TestSObimrest_solo.php 2011-01-27 
08:40:15 UTC (rev 6867)
@@ -0,0 +1,116 @@
+<?php
+
+
+
+/*
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+
+
+
+define('PHPGW_API_UNIT_TEST_PATH', dirname(__FILE__));
+
+
+
+
+class TestSObim extends PHPUnit_Framework_TestCase
+{
+       protected static $login = 'peturbjorn';
+
+    // this is is a bit of a hack, but it should work
+    protected static $sessionid = '';
+    
+       private $bimTypeTableName = 'fm_bim_type';
+       private $bimItemTableName = 'fm_bim_item';
+       private $projectGuid;
+       private $projectType= 'ifcprojecttest';
+       private $projectXml;
+       private $buildingStorey1Guid;
+       private $buildingStorey2Guid;
+       private $buildingStorey1Type;
+       private $buildingStorey2Type;
+       private $buildingStorey1xml;
+       private $buildingStorey2xml;
+       private $db;
+       
+       /**
+        * @var boolean $backupGlobals disable backup of GLOBALS which breaks 
things
+        */
+       protected $backupGlobals = false;
+
+       /**
+        * @var integer $fieldID The attribute ID used for all the tests
+        */
+       protected $fieldID;
+
+       protected static $addedNoteId=0;
+       protected $noteContent = "My dummy note content";
+       protected $editedNoteContent = "My edited dummy note content";
+
+       /**
+        * Setup the environment for the tests
+        *
+        * @return void
+        */
+       protected function setUp()
+       {
+                $GLOBALS['phpgw_info']['flags'] = array
+        (
+            'currentapp'    => 'login',
+            'login'            => true,
+            'noapi'            => false,
+            'noheader'        => true
+        );
+
+        $header = realpath(PHPGW_API_UNIT_TEST_PATH . '/../../..')
+                . '/header.inc.php';
+        include_once $header;
+
+        self::$sessionid = $GLOBALS['phpgw']->session->create(self::$login,
+                                                            '', false);
+        
+       
+               //$GLOBALS['phpgw_info']['user']['account_id'] = 7;
+               //$GLOBALS['phpgw']->acl->set_account_id(7); // not sure why 
this is needed...
+               
+               //require('..\..\inc\class.sobim.inc.php');
+               //require('..\..\inc\class.sobimtype.inc.php');
+               phpgw::import_class('property.sobimrest');
+       }
+       /**
+        * Clean up the environment after running a test
+        *
+        * @return void
+        */
+       protected function tearDown()
+       {
+               
+                
+       }
+       
+       public function testGetCount() {
+               $sobimrest = new sobimrest_impl();
+               $sobimrest->getRepositoryCountJson();
+       }
+       
+       public function testGetNames() {
+               $sobimrest = new sobimrest_impl();
+               $sobimrest->getRepositoryNames();
+       }
+       
+       
+       
+}

Added: branches/dev-bim2/property/tests/BIM/TestUIbim.php
===================================================================
--- branches/dev-bim2/property/tests/BIM/TestUIbim.php                          
(rev 0)
+++ branches/dev-bim2/property/tests/BIM/TestUIbim.php  2011-01-27 08:40:15 UTC 
(rev 6867)
@@ -0,0 +1,26 @@
+<?php
+class TestUIbim extends TestBimCommon
+{
+       protected $backupGlobals = false;
+       
+       public function __construct() {
+               
+       }
+       protected function setUp()
+       {
+               $currentDirectory = dirname(__FILE__);
+               $this->vfsFileNameWithFullPath = 
$currentDirectory.DIRECTORY_SEPARATOR.$this->vfsFileName;
+               
+       }
+       
+       public function testUploadFile() {
+               $uibim = new property_uibim();
+               $this->modelName;
+               $uploadedFileArray = array();
+               $uploadedFileArray['name'] = $this->vfsFileName;
+               $uploadedFileArray['tmp_name'] = $this->vfsFileNameWithFullPath;
+               $result = $uibim->uploadFile($uploadedFileArray, 
$this->modelName, true);
+               print_r($result);
+       }
+       
+}
\ No newline at end of file

Added: branches/dev-bim2/property/tests/BIM/restTestFile.txt
===================================================================
--- branches/dev-bim2/property/tests/BIM/restTestFile.txt                       
        (rev 0)
+++ branches/dev-bim2/property/tests/BIM/restTestFile.txt       2011-01-27 
08:40:15 UTC (rev 6867)
@@ -0,0 +1,2 @@
+This is a test file for the rest service
+ Please delete this file if you come across it!
\ No newline at end of file

Added: branches/dev-bim2/property/tests/BIM/valid_ifc_example.ifc
===================================================================
--- branches/dev-bim2/property/tests/BIM/valid_ifc_example.ifc                  
        (rev 0)
+++ branches/dev-bim2/property/tests/BIM/valid_ifc_example.ifc  2011-01-27 
08:40:15 UTC (rev 6867)
@@ -0,0 +1,172 @@
+ISO-10303-21;
+HEADER;
+FILE_DESCRIPTION (('ViewDefinition [CoordinationView, 
QuantityTakeOffAddOnView]'), '2;1');
+FILE_NAME ('example.ifc', '2008-08-01T21:53:56', ('Architect'), ('Building 
Designer Office'), 'IFC Engine DLL version 1.02 beta', 'IFC Engine DLL version 
1.02 beta', 'The authorising person');
+FILE_SCHEMA (('IFC2X3'));
+ENDSEC;
+DATA;
+#1 = IFCPROJECT('3MD_HkJ6X2EwpfIbCFm0g_', #2, 'Default Project', 'Description 
of Default Project', $, $, $, (#20), #7);
+#2 = IFCOWNERHISTORY(#3, #6, $, .ADDED., $, $, $, 1217620436);
+#3 = IFCPERSONANDORGANIZATION(#4, #5, $);
+#4 = IFCPERSON('ID001', 'Bonsma', 'Peter', $, $, $, $, $);
+#5 = IFCORGANIZATION($, 'TNO', 'TNO Building Innovation', $, $);
+#6 = IFCAPPLICATION(#5, '0.10', 'Test Application', 'TA 1001');
+#7 = IFCUNITASSIGNMENT((#8, #9, #10, #11, #15, #16, #17, #18, #19));
+#8 = IFCSIUNIT(*, .LENGTHUNIT., $, .METRE.);
+#9 = IFCSIUNIT(*, .AREAUNIT., $, .SQUARE_METRE.);
+#10 = IFCSIUNIT(*, .VOLUMEUNIT., $, .CUBIC_METRE.);
+#11 = IFCCONVERSIONBASEDUNIT(#12, .PLANEANGLEUNIT., 'DEGREE', #13);
+#12 = IFCDIMENSIONALEXPONENTS(0, 0, 0, 0, 0, 0, 0);
+#13 = IFCMEASUREWITHUNIT(IFCPLANEANGLEMEASURE(1.745E-2), #14);
+#14 = IFCSIUNIT(*, .PLANEANGLEUNIT., $, .RADIAN.);
+#15 = IFCSIUNIT(*, .SOLIDANGLEUNIT., $, .STERADIAN.);
+#16 = IFCSIUNIT(*, .MASSUNIT., $, .GRAM.);
+#17 = IFCSIUNIT(*, .TIMEUNIT., $, .SECOND.);
+#18 = IFCSIUNIT(*, .THERMODYNAMICTEMPERATUREUNIT., $, .DEGREE_CELSIUS.);
+#19 = IFCSIUNIT(*, .LUMINOUSINTENSITYUNIT., $, .LUMEN.);
+#20 = IFCGEOMETRICREPRESENTATIONCONTEXT($, 'Model', 3, 1.000E-5, #21, $);
+#21 = IFCAXIS2PLACEMENT3D(#22, $, $);
+#22 = IFCCARTESIANPOINT((0., 0., 0.));
+#23 = IFCSITE('3rNg_N55v4CRBpQVbZJoHB', #2, 'Default Site', 'Description of 
Default Site', $, #24, $, $, .ELEMENT., (24, 28, 0), (54, 25, 0), $, $, $);
+#24 = IFCLOCALPLACEMENT($, #25);
+#25 = IFCAXIS2PLACEMENT3D(#26, #27, #28);
+#26 = IFCCARTESIANPOINT((0., 0., 0.));
+#27 = IFCDIRECTION((0., 0., 1.));
+#28 = IFCDIRECTION((1., 0., 0.));
+#29 = IFCBUILDING('0yf_M5JZv9QQXly4dq_zvI', #2, 'Default Building', 
'Description of Default Building', $, #30, $, $, .ELEMENT., $, $, $);
+#30 = IFCLOCALPLACEMENT(#24, #31);
+#31 = IFCAXIS2PLACEMENT3D(#32, #33, #34);
+#32 = IFCCARTESIANPOINT((0., 0., 0.));
+#33 = IFCDIRECTION((0., 0., 1.));
+#34 = IFCDIRECTION((1., 0., 0.));
+#35 = IFCBUILDINGSTOREY('0C87kaqBXF$xpGmTZ7zxN$', #2, 'Default Building 
Storey', 'Description of Default Building Storey', $, #36, $, $, .ELEMENT., 0.);
+#36 = IFCLOCALPLACEMENT(#30, #37);
+#37 = IFCAXIS2PLACEMENT3D(#38, #39, #40);
+#38 = IFCCARTESIANPOINT((0., 0., 0.));
+#39 = IFCDIRECTION((0., 0., 1.));
+#40 = IFCDIRECTION((1., 0., 0.));
+#41 = IFCRELAGGREGATES('2168U9nPH5xB3UpDx_uK11', #2, 'BuildingContainer', 
'BuildingContainer for BuildigStories', #29, (#35));
+#42 = IFCRELAGGREGATES('3JuhmQJDj9xPnAnWoNb94X', #2, 'SiteContainer', 
'SiteContainer For Buildings', #23, (#29));
+#43 = IFCRELAGGREGATES('1Nl_BIjGLBke9u_6U3IWlW', #2, 'ProjectContainer', 
'ProjectContainer for Sites', #1, (#23));
+#44 = IFCRELCONTAINEDINSPATIALSTRUCTURE('2O_dMuDnr1Ahv28oR6ZVpr', #2, 'Default 
Building', 'Contents of Building Storey', (#45, #124), #35);
+#45 = IFCWALLSTANDARDCASE('3vB2YO$MX4xv5uCqZZG05x', #2, 'Wall xyz', 
'Description of Wall', $, #46, #51, $);
+#46 = IFCLOCALPLACEMENT(#36, #47);
+#47 = IFCAXIS2PLACEMENT3D(#48, #49, #50);
+#48 = IFCCARTESIANPOINT((0., 0., 0.));
+#49 = IFCDIRECTION((0., 0., 1.));
+#50 = IFCDIRECTION((1., 0., 0.));
+#51 = IFCPRODUCTDEFINITIONSHAPE($, $, (#79, #83));
+#52 = IFCPROPERTYSET('18RtPv6efDwuUOMduCZ7rH', #2, 'Pset_WallCommon', $, (#53, 
#54, #55, #56, #57, #58, #59, #60, #61, #62));
+#53 = IFCPROPERTYSINGLEVALUE('Reference', 'Reference', IFCTEXT(''), $);
+#54 = IFCPROPERTYSINGLEVALUE('AcousticRating', 'AcousticRating', IFCTEXT(''), 
$);
+#55 = IFCPROPERTYSINGLEVALUE('FireRating', 'FireRating', IFCTEXT(''), $);
+#56 = IFCPROPERTYSINGLEVALUE('Combustible', 'Combustible', IFCBOOLEAN(.F.), $);
+#57 = IFCPROPERTYSINGLEVALUE('SurfaceSpreadOfFlame', 'SurfaceSpreadOfFlame', 
IFCTEXT(''), $);
+#58 = IFCPROPERTYSINGLEVALUE('ThermalTransmittance', 'ThermalTransmittance', 
IFCREAL(2.400E-1), $);
+#59 = IFCPROPERTYSINGLEVALUE('IsExternal', 'IsExternal', IFCBOOLEAN(.T.), $);
+#60 = IFCPROPERTYSINGLEVALUE('ExtendToStructure', 'ExtendToStructure', 
IFCBOOLEAN(.F.), $);
+#61 = IFCPROPERTYSINGLEVALUE('LoadBearing', 'LoadBearing', IFCBOOLEAN(.F.), $);
+#62 = IFCPROPERTYSINGLEVALUE('Compartmentation', 'Compartmentation', 
IFCBOOLEAN(.F.), $);
+#63 = IFCRELDEFINESBYPROPERTIES('3IxFuNHRvBDfMT6_FiWPEz', #2, $, $, (#45), 
#52);
+#64 = IFCELEMENTQUANTITY('10m6qcXSj0Iu4RVOK1omPJ', #2, 'BaseQuantities', $, $, 
(#65, #66, #67, #68, #69, #70, #71, #72));
+#65 = IFCQUANTITYLENGTH('Width', 'Width', $, 3.000E-1);
+#66 = IFCQUANTITYLENGTH('Lenght', 'Lenght', $, 5.);
+#67 = IFCQUANTITYAREA('GrossSideArea', 'GrossSideArea', $, 11.500);
+#68 = IFCQUANTITYAREA('NetSideArea', 'NetSideArea', $, 10.450);
+#69 = IFCQUANTITYVOLUME('GrossVolume', 'GrossVolume', $, 3.450);
+#70 = IFCQUANTITYVOLUME('NetVolume', 'NetVolume', $, 3.135);
+#71 = IFCQUANTITYLENGTH('Height', 'Height', $, 2.300);
+#72 = IFCQUANTITYAREA('GrossFootprintArea', 'GrossFootprintArea', $, 1.500);
+#73 = IFCRELDEFINESBYPROPERTIES('0cpLgxVi9Ew8B08wF2Ql1w', #2, $, $, (#45), 
#64);
+#74 = IFCRELASSOCIATESMATERIAL('2zeggBjk9A5wcc3k9CYqdL', #2, $, $, (#45), #75);
+#75 = IFCMATERIALLAYERSETUSAGE(#76, .AXIS2., .POSITIVE., -1.500E-1);
+#76 = IFCMATERIALLAYERSET((#77), $);
+#77 = IFCMATERIALLAYER(#78, 3.000E-1, $);
+#78 = IFCMATERIAL('Name of the material used for the wall');
+#79 = IFCSHAPEREPRESENTATION(#20, 'Axis', 'Curve2D', (#80));
+#80 = IFCPOLYLINE((#81, #82));
+#81 = IFCCARTESIANPOINT((0., 1.500E-1));
+#82 = IFCCARTESIANPOINT((5., 1.500E-1));
+#83 = IFCSHAPEREPRESENTATION(#20, 'Body', 'SweptSolid', (#84));
+#84 = IFCEXTRUDEDAREASOLID(#85, #92, #96, 2.300);
+#85 = IFCARBITRARYCLOSEDPROFILEDEF(.AREA., $, #86);
+#86 = IFCPOLYLINE((#87, #88, #89, #90, #91));
+#87 = IFCCARTESIANPOINT((0., 0.));
+#88 = IFCCARTESIANPOINT((0., 3.000E-1));
+#89 = IFCCARTESIANPOINT((5., 3.000E-1));
+#90 = IFCCARTESIANPOINT((5., 0.));
+#91 = IFCCARTESIANPOINT((0., 0.));
+#92 = IFCAXIS2PLACEMENT3D(#93, #94, #95);
+#93 = IFCCARTESIANPOINT((0., 0., 0.));
+#94 = IFCDIRECTION((0., 0., 1.));
+#95 = IFCDIRECTION((1., 0., 0.));
+#96 = IFCDIRECTION((0., 0., 1.));
+#97 = IFCOPENINGELEMENT('2LcE70iQb51PEZynawyvuT', #2, 'Opening Element xyz', 
'Description of Opening', $, #98, #103, $);
+#98 = IFCLOCALPLACEMENT(#46, #99);
+#99 = IFCAXIS2PLACEMENT3D(#100, #101, #102);
+#100 = IFCCARTESIANPOINT((9.000E-1, 0., 2.500E-1));
+#101 = IFCDIRECTION((0., 0., 1.));
+#102 = IFCDIRECTION((1., 0., 0.));
+#103 = IFCPRODUCTDEFINITIONSHAPE($, $, (#110));
+#104 = IFCELEMENTQUANTITY('2yDPSWYWf319fWaWWvPxwA', #2, 'BaseQuantities', $, 
$, (#105, #106, #107));
+#105 = IFCQUANTITYLENGTH('Depth', 'Depth', $, 3.000E-1);
+#106 = IFCQUANTITYLENGTH('Height', 'Height', $, 1.400);
+#107 = IFCQUANTITYLENGTH('Width', 'Width', $, 7.500E-1);
+#108 = IFCRELDEFINESBYPROPERTIES('2UEO1blXL9sPmb1AMeW7Ax', #2, $, $, (#97), 
#104);
+#109 = IFCRELVOIDSELEMENT('3lR5koIT51Kwudkm5eIoTu', #2, $, $, #45, #97);
+#110 = IFCSHAPEREPRESENTATION(#20, 'Body', 'SweptSolid', (#111));
+#111 = IFCEXTRUDEDAREASOLID(#112, #119, #123, 1.400);
+#112 = IFCARBITRARYCLOSEDPROFILEDEF(.AREA., $, #113);
+#113 = IFCPOLYLINE((#114, #115, #116, #117, #118));
+#114 = IFCCARTESIANPOINT((0., 0.));
+#115 = IFCCARTESIANPOINT((0., 3.000E-1));
+#116 = IFCCARTESIANPOINT((7.500E-1, 3.000E-1));
+#117 = IFCCARTESIANPOINT((7.500E-1, 0.));
+#118 = IFCCARTESIANPOINT((0., 0.));
+#119 = IFCAXIS2PLACEMENT3D(#120, #121, #122);
+#120 = IFCCARTESIANPOINT((0., 0., 0.));
+#121 = IFCDIRECTION((0., 0., 1.));
+#122 = IFCDIRECTION((1., 0., 0.));
+#123 = IFCDIRECTION((0., 0., 1.));
+#124 = IFCWINDOW('0LV8Pid0X3IA3jJLVDPidY', #2, 'Window xyz', 'Description of 
Window', $, #125, #130, $, 1.400, 7.500E-1);
+#125 = IFCLOCALPLACEMENT(#98, #126);
+#126 = IFCAXIS2PLACEMENT3D(#127, #128, #129);
+#127 = IFCCARTESIANPOINT((0., 1.000E-1, 0.));
+#128 = IFCDIRECTION((0., 0., 1.));
+#129 = IFCDIRECTION((1., 0., 0.));
+#130 = IFCPRODUCTDEFINITIONSHAPE($, $, (#150));
+#131 = IFCRELFILLSELEMENT('1CDlLMVMv1qw1giUXpQgxI', #2, $, $, #97, #124);
+#132 = IFCPROPERTYSET('0fhz_bHU54xB$tXHjHPUZl', #2, 'Pset_WindowCommon', $, 
(#133, #134, #135, #136, #137, #138, #139, #140, #141, #142, #143, #144));
+#133 = IFCPROPERTYSINGLEVALUE('Reference', 'Reference', IFCTEXT(''), $);
+#134 = IFCPROPERTYSINGLEVALUE('FireRating', 'FireRating', IFCTEXT(''), $);
+#135 = IFCPROPERTYSINGLEVALUE('AcousticRating', 'AcousticRating', IFCTEXT(''), 
$);
+#136 = IFCPROPERTYSINGLEVALUE('SecurityRating', 'SecurityRating', IFCTEXT(''), 
$);
+#137 = IFCPROPERTYSINGLEVALUE('IsExternal', 'IsExternal', IFCBOOLEAN(.T.), $);
+#138 = IFCPROPERTYSINGLEVALUE('Infiltration', 'Infiltration', IFCBOOLEAN(.F.), 
$);
+#139 = IFCPROPERTYSINGLEVALUE('ThermalTransmittance', 'ThermalTransmittance', 
IFCREAL(2.400E-1), $);
+#140 = IFCPROPERTYSINGLEVALUE('GlazingAresFraction', 'GlazingAresFraction', 
IFCREAL(7.000E-1), $);
+#141 = IFCPROPERTYSINGLEVALUE('HandicapAccessible', 'HandicapAccessible', 
IFCBOOLEAN(.F.), $);
+#142 = IFCPROPERTYSINGLEVALUE('FireExit', 'FireExit', IFCBOOLEAN(.F.), $);
+#143 = IFCPROPERTYSINGLEVALUE('SelfClosing', 'SelfClosing', IFCBOOLEAN(.F.), 
$);
+#144 = IFCPROPERTYSINGLEVALUE('SmokeStop', 'SmokeStop', IFCBOOLEAN(.F.), $);
+#145 = IFCRELDEFINESBYPROPERTIES('2fHMxamlj5DvGvEKfCk8nj', #2, $, $, (#124), 
#132);
+#146 = IFCELEMENTQUANTITY('0bB_7AP5v5OBZ90TDvo0Fo', #2, 'BaseQuantities', $, 
$, (#147, #148));
+#147 = IFCQUANTITYLENGTH('Height', 'Height', $, 1.400);
+#148 = IFCQUANTITYLENGTH('Width', 'Width', $, 7.500E-1);
+#149 = IFCRELDEFINESBYPROPERTIES('0FmgI0DRX49OXL_$Wa2P1E', #2, $, $, (#124), 
#146);
+#150 = IFCSHAPEREPRESENTATION(#20, 'Body', 'SweptSolid', (#151));
+#151 = IFCEXTRUDEDAREASOLID(#152, #159, #163, 1.400);
+#152 = IFCARBITRARYCLOSEDPROFILEDEF(.AREA., $, #153);
+#153 = IFCPOLYLINE((#154, #155, #156, #157, #158));
+#154 = IFCCARTESIANPOINT((0., 0.));
+#155 = IFCCARTESIANPOINT((0., 1.000E-1));
+#156 = IFCCARTESIANPOINT((7.500E-1, 1.000E-1));
+#157 = IFCCARTESIANPOINT((7.500E-1, 0.));
+#158 = IFCCARTESIANPOINT((0., 0.));
+#159 = IFCAXIS2PLACEMENT3D(#160, #161, #162);
+#160 = IFCCARTESIANPOINT((0., 0., 0.));
+#161 = IFCDIRECTION((0., 0., 1.));
+#162 = IFCDIRECTION((1., 0., 0.));
+#163 = IFCDIRECTION((0., 0., 1.));
+ENDSEC;
+END-ISO-10303-21;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]