ifc

Regex includes two matches in first match

a 夏天 提交于 2021-02-07 23:52:51
问题 I have this regex that tries to find individual STEP-lines and divides it into three goups of reference number, class and properties: #14=IFCEXTRUDEDAREASOLID(#28326,#17,#9,3657.6); becomes [['14'], ['IFCEXTRUDEDAREASOLID'], ['#28326,#17,#9,3657.6']] Sometimes these lines have arbitrary line breaks, especially among the properties, so I put some \s in the regex. This however makes for an interesting bug. The pattern now matches TWO rows into every match. How can I adjust the regex to only

IFC objects navigation to retrieve Wall coordinates

大兔子大兔子 提交于 2021-01-28 10:08:32
问题 Has anyone already used the IFC (Industry Foundation Classes) from BuildingSmart, typically adopted for BIM projects and building domain ? I would like to know how to navigate the IFC objects to get the coordinates of a IfcWallStandardCase or of an affine object (i.e., yet a Wall). I am interesting in getting the coordinates of all or at least one of the vertices delimiting the Wall. Please indicate the navigation through the Ifc objects of an Ifc file, to know where to locate the coordinates

Regex for IFC with array attributed

感情迁移 提交于 2020-06-16 07:11:59
问题 IFC is a variation of STEP files used for construction projects. The IFC contains information about the building being constructed. The file is text based and it easy to read. I am trying to parse this information into a python dictionary. The general format of each line will be similar to the following 2334=IFCMATERIALLAYERSETUSAGE(#2333,.AXIS2.,.POSITIVE.,-180.); ideally this should be parsed int #2334, IFCMATERIALLAYERSETUSAGE, #2333,.AXIS2.,.POSITIVE.,-180. I found a solution Regex

Regex for IFC with array attributed

痴心易碎 提交于 2020-06-16 07:11:47
问题 IFC is a variation of STEP files used for construction projects. The IFC contains information about the building being constructed. The file is text based and it easy to read. I am trying to parse this information into a python dictionary. The general format of each line will be similar to the following 2334=IFCMATERIALLAYERSETUSAGE(#2333,.AXIS2.,.POSITIVE.,-180.); ideally this should be parsed int #2334, IFCMATERIALLAYERSETUSAGE, #2333,.AXIS2.,.POSITIVE.,-180. I found a solution Regex

IFC - Representation of triangle mesh

让人想犯罪 __ 提交于 2020-04-30 07:34:21
问题 What is the best way to represent a simple triangle mesh in IFC? This seems to be a way: IfcFaceBasedSurfaceModel -> IfcConnectedFaceSet -> IfcFace -> IfcFaceBound -> IfcPolyLoop -> IfcCartesianPoint However, seems to be a little complex since the functionality of IfcFace and IfcPolyLoop exceed those one needs for a simple triangle mesh. Any other options? 回答1: Since IFC4 there is also the geometric representation type IfcTriangulatedFaceSet, which represents surfaces as tesselations of

How to parse Industry Foundation Class (IFC) files using Java?

被刻印的时光 ゝ 提交于 2020-01-13 10:45:28
问题 I want to develop an application, which has to parse the Industry Foundation Class (IFC) generated by the Auto CAD software and render the 3D images in an applet window using Java. I have no idea about how to do it.If anybody knows the solution, please help me out. 回答1: You can study the IfcOpenShell code. Basically IFCOpenShell makes the executable C++ classes. So first you need to read IFC into any computer language which you think then you have to load it into memory. follow this link:http

How can I convert a UUID to a string using a custom character set in Ruby?

倖福魔咒の 提交于 2019-12-25 00:22:33
问题 I want to create a valid IFC GUID (IfcGloballyUniqueId) according to the specification here: http://www.buildingsmart-tech.org/ifc/IFC2x3/TC1/html/ifcutilityresource/lexical/ifcgloballyuniqueid.htm It's basically a UUID or GUID (128 bit) mapped to a set of 22 characters to limit storage space in a text file. I currently have this workaround, but it's merely an approximation: guid = '';22.times{|i|guid<<'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_$'[rand(64)]} It seems best

Convert IFC EXPRESS schema entities/classes to VB.NET classes

限于喜欢 提交于 2019-12-24 08:22:53
问题 I'm working on an ifc project where I want to convert an EXPRESS file's classes into vb.net classes. It is really hard to process all the attributes of the stp file one by one, so I was wondering if there are alternative ways or tools which could convert the classes. EDIT : I have discovered javatoolbox which does exactly what I want, but in java. I have also seen IFC Engine DLL but have not found any code available. 回答1: Creating classes for full EXPRESS schema is relatively complex task. If

BIM server Database Access

妖精的绣舞 提交于 2019-12-13 14:22:49
问题 I am a Java developer. Recently my company is planning to use BIM Server . Concept is , BIM server will be integrated with our current project and we will access the BIM Server database through some API . I made connectivity with localhost BIM server , created project and add IFC files under the project using "JsonBimServerClientFactory" (Example provided in BIM server's git repository). Is there any one in the group who has this kind of experience ? I am in great confusion, how I should use