OSArch Community

Clash detection: How to?

  1. J

    Hi guys,

    I'm trying to figure out how to make clash sets and BCF projects at the same time.

    So what I got working:

    for a limited search and for collion it kind of works.

    1) In the 'Quality Control' tab you select the first file you want to test , then put in the filters etc.

    2) Here you put in your second file, can also be the same if you want to test in 1 file

    3) Here you put in the name of the file that it gets written to. I created it earlier with 5). After this you execute the IFC Clash

    4) You see 0 Clashes found, which is weird as I purposely made a clash.

    5) You load in the freshly made file at point 3), whcih then shows the actual 'clashes' found in the file

    6) you can select them and click the camera icon to go to those elements and select them. This makes everything transparent.

    Couple of questions:

    a) how to check multiple models at the same time? like checking e.g. 4 linked models at the same time with each other?

    b) How to turn off the transparent view? going to model view via the normal way with drawings doesnt work. (updating to the latest version fixed this, though making everything but the selected elements transparent would be better i think)

    c) In this simple example it works, but as soon as i want to clash all elements, also collision and allow touching checked, I get clashes that dont really clash when i inspect it. Might be because of a hidden representation?

    Also

    d) I miss a simple button that just checks elements in the currently opened file

    e) ideally i can see the clashes directly in the place where there is now '0 clashes found' see 4). Why are they not visible there?

    f) right now the BCF viewpoint looks like you can add multiple and add a real snapshot to it instead of just zooming to a point. Does this work for anyone and if so, how do you do it?

    Clicking the + gives an error:

    I made this an issue so other people can find this. Hopefully it helps more people like this!

    Thanks in advance!

  1. F

    Hello,

    I'm also facing trouble when trying to get clashes. I created a dummy file with a few walls in it, I would have the green (ARC) element against the pink ones (MEP):

    In my case I was trying to include subsets from the same file to keep it simple.

    I would appreciate if someone could show me some working examples to get me started!

    I also received the following error, I'm not sure what the SwigPyObject is and why it is not iterable:

    Python: Traceback (most recent call last):

    `File "/home/fb/.config/blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/clash/operator.py", line 212, in invoke

        return self.execute(context)`

    ^^^^^^^^^^^^^^^^^^^^^

    `File "/home/fb/.config/blender/4.3/extensions/.local/lib/python3.11/site-packages/bonsai/bim/module/clash/operator.py", line 277, in execute

    clasher.clash()`

    `File "/home/fb/.config/blender/4.3/extensions/.local/lib/python3.11/site-packages/ifcclash/ifcclash.py", line 93, in clash

    self.process_clash_set(clash_set)`

    `File "/home/fb/.config/blender/4.3/extensions/.local/lib/python3.11/site-packages/ifcclash/ifcclash.py", line 148, in process_clash_set

    p1=list(result.p1),`

    ^^^^^^^^^^^^^^^

    TypeError: 'SwigPyObject' object is not iterable

    Thanks!

  1. J

    @furtonb said:

    I also received the following error, I'm not sure what the SwigPyObject is and why it is not iterable:

    Yeah I got that error too, but don't really remember why I got it and when I didn't anymore.

    Can you maybe share this file?

  1. C
  1. F

    @CSN Thanks, I wish I understood what was fixed in the commit that you linked.:)

    @jes_r I had that file on another machine, but I created another very simple case that reproduces this message – see the attached IFC file. I was directly using the syringe to pull the GlobalId from each element – there should be a clash between the two walls.

    I've also found a Youtube video from a few years ago that shows some examples:

Login or Register to reply.