Hello,
I am trying to use the IFCConverter.exe in order to converting an IFC file which is a 30 floor Model
into multi SVG 2d floor plans
I have downloaded the executable file, but once i drag my IFC file over the converter.exe , it only generates .obj File !
How i can specify the output files through this executable ?
thanks in advance
OBJ is the default format (trivial one-liner in code to change, if one wishes for their use case) when no other parameters than input file is specified, which is the case for drag-and-drop. For SVG, use IfcConvert.exe input.ifc output.svg. Note that for SVG, all the floors will superimposed be in the same file so you need an editor to separate them.
thanks a lot for your reply
but i got an error
Log:
[Error] ContextType 'Annotation' not allowed:91=IfcGeometricRepresentationContext($,'Annotation',3,0.01,#80,#81)
[Error] No geometrical entities found
i am trying to convert this file : https://mega.nz/#!8p1SFC6C!SpI8_z9hSzQJ8t4jFcZXsjbfHrYow9Kox_TtK7D8bzY
and i am using this converter
https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-master-161deeb-win64.zip
which found here
By default the SVG exporter only considers spaces. Is it possible the file does not contain IfcSpaces?
Can you try with adding at the very end (for example) --include entities IfcWall. To convert the walls to SVG. To include everything you have to use something like --exclude entities IfcOpeningElement.
Ah, right. I also personally encountered these problems when first trying the SVG output and I ended up documenting the issues here: https://github.com/IfcOpenShell/IfcOpenShell/wiki
thanks a lot for your help
but i end up with this
[Error] Invalid usage of '--include': the argument for option '--include' is invalid
the command i used
IfcConvert --include --entities IfcWall cando.ifc out.svg
where cando.ifc is the input and out.svg is the output
[PS: my whole life would be easier if there's a GUI instead of the tedious CMD ! :( :( :( :( ]
Sorry, the syntax has changed a bit and I have forgotten to update the instructions, it's IfcConvert.exe input.ifc output.svg --include entities IfcWall (I have updated the Wiki now). The fact the --include ... and --exlclude ... needs to be after input and output files is not apparently documented in --help, this would be nice to have.
great, thanks a lot
but i ended up with a small error
[Error] {3DsBefxBv55fZ2Zh3u1IiC} Opening subtraction failed for 1 openings
66237=IfcWallStandardCase('3DsBefxBv55fZ2Zh3u1IiC',#41,'Basic Wall:Generic - 200mm:144036',$,'Basic Wall:Generic - 200mm:398',#66209,#66235,'144036')
i have also used another command
IfcConvert.exe cando.ifc output.svg --include entities IfcWall --exclude entities IfcOpeningElement.
i have tried with another file :
https://mega.nz/#!4h8iQA6Z!cHxDytZqwmEGdgvF7QGxcyx6MPscRjMofDxd9xqyFrc
and it says that it's successfully done, however i opened the ouput file and found that it's empty file !
the log in my CMD says
Done creating geometry (171 objects)
Conversion took 5 seconds
and when i opened the file i found
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
</svg>
I just realized SVG output was not correctly working yet in the v0.6.0 branch. Are you on that branch by any chance? Just fixed that in: https://github.com/IfcOpenShell/IfcOpenShell/commit/80e166302a425837376044f16f8be9595a6d3c75
If you're not compiling yourself I'd recommend to get a recent 0.5 for the time being https://github.com/IfcOpenBot/IfcOpenShell/commit/c61bc29f0646430c207050ed5b62a6a216628159
Another comment. You probably want to add something like --bounds 1024x1024 to make sure the IFC world coordinates map to sensible SVG viewbox in pixels.
非常感谢您的回复
但我有一个错误
日志:
[错误]不允许ContextType'注释':
#91 = IfcGeometricRepresentationContext($,'Annotation',3,0.01,#80,#81)
[错误]找不到几何实体我正在尝试转换此文件:
https://mega.nz/#!8p1SFC6C!SpI8_z9hSzQJ8t4jFcZXsjbfHrYow9Kox_TtK7D8bzY我正在使用这个转换器
https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-master-161deeb-win64.zip
在这里找到
I also met this problems: ContextType 'Annotation' not allowed.
Log:
[Error] ContextType 'Annotation' not allowed:
When I convert ifc2obj, how can i solve this problems
We don't speak Chinese.
Warnings related to ContextType can often be ignored.
Most helpful comment
Ah, right. I also personally encountered these problems when first trying the SVG output and I ended up documenting the issues here: https://github.com/IfcOpenShell/IfcOpenShell/wiki