@@ -12,12 +12,12 @@ This is an initiative to expose the functionality of IfcOpenShell for parsing an
1212
1313The following interactive session illustrates its use:
1414
15- >>> import ifc
16- >>> f = ifc .open("Duplex_A_20110907_optimized.ifc")
15+ >>> import ifcopenshell
16+ >>> f = ifcopenshell .open("Duplex_A_20110907_optimized.ifc")
1717 >>> f.by_type("ifcwall")[:2]
1818 [#91=IfcWallStandardCase('2O2Fr$t4X7Zf8NOew3FL9r',#1,'Basic Wall:Interior - Partition (92mm Stud):144586',$,'Basic Wall:Interior - Partition (92mm Stud):128360',#5198,#18806,'144586'), #92=IfcWallStandardCase('2O2Fr$t4X7Zf8NOew3FLIE',#1,'Basic Wall:Interior - Partition (92mm Stud):143921',$,'Basic Wall:Interior - Partition (92mm Stud):128360',#5206,#18805,'143921')]
1919 >>> wall = _[0]
20- >>> brep_data = ifc .create_shape(wall, ifc .SEW_SHELLS)
20+ >>> brep_data = ifcopenshell .create_shape(wall, ifcopenshell .SEW_SHELLS)
2121 >>> len(wall) # number of EXPRESS attributes
2222 8
2323 >>> wall.GlobalId
@@ -26,15 +26,15 @@ The following interactive session illustrates its use:
2626 >>> wall.NonExistingAttr
2727 Traceback (most recent call last):
2828 File "<stdin>", line 1, in <module>
29- File ".\ifc .py", line 14, in __getattr__
29+ File ".\ifcopenshell .py", line 14, in __getattr__
3030 except: raise AttributeError("entity instance of type '%s' has no attribute'%s'"%(self.wrapped_data.is_a(), name)) from None
3131 AttributeError: entity instance of type 'IfcWallStandardCase' has no attribute 'NonExistingAttr'
3232 >>> wall.GlobalId = 3
3333 Traceback (most recent call last):
3434 File "<stdin>", line 1, in <module>
35- File ".\ifc .py", line 26, in __setattr__
35+ File ".\ifcopenshell .py", line 26, in __setattr__
3636 self[self.wrapped_data.get_argument_index(key)] = value
37- File ".\ifc .py", line 30, in __setitem__
37+ File ".\ifcopenshell .py", line 30, in __setitem__
3838 self.wrapped_data.set_argument(idx, entity_instance.map_value(value))
3939 File ".\ifc_wrapper.py", line 118, in <lambda>
4040 set_argument = lambda self,x,y: self._set_argument(x) if y is None else self
@@ -45,7 +45,7 @@ The following interactive session illustrates its use:
4545 >>> f.createIfcCartesianPoint(Coordinates=(1.0,1.5,2.0))
4646 #27530=IfcCartesianPoint((1.,1.5,2.))
4747 >>> import uuid
48- >>> ifc .guid.compress(uuid.uuid1().hex)
48+ >>> ifcopenshell .guid.compress(uuid.uuid1().hex)
4949 '3x4C8Q_6qHuv$P$FYkANRX'
5050 >>> new_guid = _
5151 >>> owner_hist = f.by_type("IfcOwnerHistory")[0]
@@ -101,12 +101,6 @@ required.
101101 $ cmake ../
102102 $ make
103103
104- If all worked out correctly you can now use IfcOpenShell. For example:
105- $ wget ftp://ftp.dds.no/pub/ifc/Munkerud/Munkerud_hus6_BE.zip
106- $ unzip Munkerud_hus6_BE.zip
107- $ ./IfcObj Munkerud_hus6_BE.ifc
108- $ less Munkerud_hus6_BE.obj
109-
110104
111105Ubuntu Notes
112106============
0 commit comments