OSArch Community

After Re-Importing all Styles are Transparent

  1. C

    Hi,

    somehow when reimporting an IFC file, all materials (better said styles, because there are no Materials assigned to the objects) they come back in Transparent. The issue is easy to be fixed. Simply go to the viewport Display change the A value to 1 and then click "Update Sytle Colours". Nevertheless this needs to be done for every object and material in the file which is not what is desired. Does some have an idea why this is happening and how could I solve this issue quickly?

    Best Regards,

    Carlos

  2. C

    I managed a quick and dirty solution. I just open the IFC in a Text Editor and replaced using regex. So that a line looking like:

    
    #76=IFCSURFACESTYLERENDERING(#77,1.,#273081,$,$,$,$,$,.NOTDEFINED.);
    

    would become:

    
    #76=IFCSURFACESTYLERENDERING(#77,$,#273081,$,$,$,$,$,.FLAT.);
    

    The Regex that I used:

    Search for: RENDERING(.*),1.(.*).NOTDEFINED.

    Replace with: RENDERING$1,\$$2.FLAT.

    Nevertheless I believe it's Bug somewhere. Or probably a feature to let some vendors know that they don't do Materials properly.

  3. M
  4. C

    Dude, thank you very much. You saved the day.

Login or Register to reply.