Menu

IfcConvert to SVG - display walls and space names

Help
2021-10-22
2021-10-29
  • Francois Lebas

    Francois Lebas - 2021-10-22

    Hi there,

    I am trying to generate simple floor plans from an IFC file with IfcConvert.

    I was able to make the following command work:

    $ ./Ifcconvert IFC_Schependomlaan.ifc IFC_Schependomlaan.svg

    I can see the spatial structure in my output file, but the embedded
    vectors are not quite what I want.

    I would like to display only walls and the name of the IfcSpace at the
    center of each room.

    I tried to play around with the –include and –exclude options but it
    mentions an ‘invalid usage’/’invalid arguments’.

    For the room names, they are not positioned properly

    Thank you

     
    • Thomas Krijnen

      Thomas Krijnen - 2021-10-23

      I tried to play around with the –include and –exclude options but it

      The following should work. There isn't an option for wall names currently. What do you mean by improperly positioned space names.

      ./Ifcconvert IFC_Schependomlaan.ifc IFC_Schependomlaan.svg --print-space-names --include entities IfcWall IfcSpace
      
       
  • Francois Lebas

    Francois Lebas - 2021-10-26

    Thank you for helping with the --include option, Thomas!

    What I meant is that the space names display way above where they should be in my output (see picture attached).

     
    • Thomas Krijnen

      Thomas Krijnen - 2021-10-26

      I haven't seen this on any other file. Can you produce this on a public file (with the latest version of the code) or share the file?

       
      • Francois Lebas

        Francois Lebas - 2021-10-26

        Here it is

         
        • Thomas Krijnen

          Thomas Krijnen - 2021-10-29

          I can't really reproduce it, but maybe it has to do something with the viewBox and scaling? How do you arrive at the image you shared earlier?

          The default output of SVG is a bit odd in the sense that it is defined in meters to correspond to the real world units of the IFC.

          Rather what most people do is add --bounds=1024x1024 for example to fit to a 1024px viewBox. Or --bounds=297x210 --scale=1:200 to center on a A4 paper at scale. I don't see any text issues in these cases.

           
  • Francois Lebas

    Francois Lebas - 2021-10-29

    Thank you very much for this!
    I was using Figma to visualize the spatial structure easily - which is where I took the screenshot.
    If I set the viewBox to 1024x1024, then it works fine both on a browser and on Figma.

     
  • Francois Lebas

    Francois Lebas - 2021-10-29
     

    Last edit: Francois Lebas 2021-10-29

Log in to post a comment.

MongoDB Logo MongoDB