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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
The following should work. There isn't an option for wall names currently. What do you mean by improperly positioned space names.
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).
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?
Here it is
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=1024x1024for example to fit to a 1024px viewBox. Or--bounds=297x210 --scale=1:200to center on a A4 paper at scale. I don't see any text issues in these cases.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.
Last edit: Francois Lebas 2021-10-29