ifc

Cannot find IfcProduct.Transform() method in Ifc4 namespace ! (Xbim.Essentials)

邮差的信 提交于 2019-12-11 16:37:54
问题 I am using IfcProduct.Transform() method to obtain the transformation matrix (XbimMatrix3D instance) and using that to do conversions between relative and absolute placements. But I am not able to find those functions in Ifc4 namespace! I am not able to find anything else that is meant to substitute these functions. This issue has been highlighted here too: https://github.com/xBimTeam/XbimGeometry/issues/103, but there is no response. Please help! 回答1: It looks like this all got refactored in

IfcOpenShell(Parse)_IFC PropertySet, printing issue

你。 提交于 2019-12-11 14:17:07
问题 Hy, I am new to programming and I have problems with printing my property sets and values. I have more elements in my IFC and want to Parse all Property Sets and values. My current result is elements ID(for every element), but it takes the attributes(property sets and values) form the first one. Sketch: see image My code: import ifcopenshell ifc_file = ifcopenshell.open('D:\PZI_9-1_1441_LIN_CES_1-17c-O_M-M3.ifc') products = ifc_file.by_type('IFCPROPERTYSET') for product in products: print

ruby base64 encode 128 bit number by starting with a 2 bit character to prevent padding at the end

本小妞迷上赌 提交于 2019-12-10 23:01:36
问题 This question is a follow up to my previous question here: How can I convert a UUID to a string using a custom character set in Ruby? But I will try to formulate it as a separate and specific question. I do have a Ruby 128 bit UUID as hex value: SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594" If I get the IFC specification correctly (http://www.buildingsmart-tech.org/ifc/IFC2x3/TC1/html/ifcutilityresource/lexical/ifcgloballyuniqueid.htm), I want to Base64 encode this, but instead

How to use a class customization to resolve conflict when generating jaxb object from xsd

谁说胖子不能爱 提交于 2019-12-08 22:29:18
问题 When I run the xjc -d src/ -p com.test IFC2X3.xsd command on following xsd it gives the conflict. .... <xs:element name="IfcCondenserTypeEnum" nillable="true"> <xs:complexType> <xs:simpleContent> <xs:extension base="ifc:IfcCondenserTypeEnum"> <xs:attributeGroup ref="ex:instanceAttributes"> </xs:attributeGroup> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:simpleType name="IfcCondenserTypeEnum"> <xs:restriction base="xs:string"> <xs:enumeration value=

How to use a class customization to resolve conflict when generating jaxb object from xsd

↘锁芯ラ 提交于 2019-11-29 10:05:28
When I run the xjc -d src/ -p com.test IFC2X3.xsd command on following xsd it gives the conflict. .... <xs:element name="IfcCondenserTypeEnum" nillable="true"> <xs:complexType> <xs:simpleContent> <xs:extension base="ifc:IfcCondenserTypeEnum"> <xs:attributeGroup ref="ex:instanceAttributes"> </xs:attributeGroup> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:simpleType name="IfcCondenserTypeEnum"> <xs:restriction base="xs:string"> <xs:enumeration value="watercooledshelltube"> </xs:enumeration> <xs:enumeration value="watercooledshellcoil"> </xs:enumeration> <xs