TBC Macros and Extensions

 View Only
Expand all | Collapse all

retrieving the underlying iformation of an IFC meshinstance

  • 1.  retrieving the underlying iformation of an IFC meshinstance

    Posted 08-12-2024 01:33

    Does anyone know if and how we could access additional structure information from an IFC object.

    Let's look a small simple disc as an example.

    The screenshot is from Access. There I can select the face or the circular polyline around it.

    Looking at the IFC text file, the dark blue line is made up from vertices -> IFCPOLYLOOP

    .............
    #140= IFCCARTESIANPOINT((3.,-9.5,-356.247813));
    #141= IFCCARTESIANPOINT((3.,-13.435028,-359.267265));
    #142= IFCCARTESIANPOINT((3.,-16.454482,-363.202274));
    #143= IFCCARTESIANPOINT((3.,-18.352591,-367.784739));
    #144= IFCPOLYLOOP((#120,#121,#122,#123,#124,#125,#126,#127,#128,#129,#130,#131,#132,#133,#134,#135,#136,#137,#138,#139,#140,#141,#142,#143));
    #145= IFCFACEOUTERBOUND(#144,.T.);
    #146= IFCFACE((#145));
    

    which is further used to define an

     -> IFCOUTERBOUND

    and that one to define an

    -> IFCFACE

    The initial file came from a third-party software and was imported into TBC, relayered and recolored and then exported as IFC. So, I must assume that the IFCLOOP information is kept somewhere.

    Is it possible to retrieve those.

    Reason being. One of our guys asked if we can easily mass retrieve the center lines of steel plate holes. If I could retrieve all the IFCLOOPS I could just compute an average into the loop vertices.

    Worst case scenario would be to parse the IFC file itself. I'd have to have a closer look at that local to global transformation though. The vertices are saved as near zero types, with some kind of shift and rotation.

    I myself don't trust the IFC to that point yet. There is always a paper drawing with intervals I can hack into Excel and compute the points along a stringline. And often enough they don't match. Sometimes the IFC is wrong and sometimes the paper drawing. Always need to double check the dimensions with the steel and hole patterns that's being delivered to site anyway.



    ------------------------------
    Ronny Schneider
    ------------------------------


  • 2.  RE: retrieving the underlying iformation of an IFC meshinstance

    Posted 08-12-2024 18:10

    I didn't think that stuff was stored. But if the dataflow you describe is correct then yes I agree, it sounds like it would have to be.

    If you upload the file I can take a look.



    ------------------------------
    https://tbcanz.com/anz-toolbox/
    ------------------------------



  • 3.  RE: retrieving the underlying iformation of an IFC meshinstance

    Posted 08-12-2024 23:40

    I'll keep looking into it when I have time. They managed to solve it by utilizing the beloved 4*3d competition and one single command.

    Although it wasn't something I was told they were after, but soil nails. In the end similar task. No paper drawings available.

    Not sure what software they use in the field. For the steep ones they may want to use 3d-axis instead staking a line. And in Access Trimble still hasn't managed to add 3d-axis to the right click menu, when 2 points or simple 2 node lines have been selected. The absolute annoying way is to select the nodes in the map and in 3d-axis click on the node field and then selection from map and then the point. This is so frustratingly time consuming when you have to stake the intersection point for several dozen near vertical bolts for example. And with GPS the whole 3d-axis is not available at all, i.e. layer thickness on a steep incline?????? Getting off topic.

    After all the crap I had to go through with drafting just today again, the dark side is getting more and more tempting. Once the boss is back from vacation I'll enquire if we have a spare dongle.



    ------------------------------
    Ronny Schneider
    ------------------------------