Can Ifcconvert commandline output an .obj file to a stream rather than a file? I am getting large tmp files and running out of tmp space on aws lambda so thinking of a workaround
Last edit: aszfaf 2022-01-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What is a stream here precisely? You mean something like stdout or network stuff?
Currently there isn't anything for that, but if you want to take the initiative to build it, I'd happily assist. I think writing to stdout is fairly straightforward, we'd just use a convention on the command line such as - to denote stdout instead of filename (common in unix tools).
Can Ifcconvert commandline output an .obj file to a stream rather than a file? I am getting large tmp files and running out of tmp space on aws lambda so thinking of a workaround
Last edit: aszfaf 2022-01-14
What is a stream here precisely? You mean something like stdout or network stuff?
Currently there isn't anything for that, but if you want to take the initiative to build it, I'd happily assist. I think writing to stdout is fairly straightforward, we'd just use a convention on the command line such as
-
to denote stdout instead of filename (common in unix tools).We already have this interface for the serializers to specify either file or filestream https://github.com/IfcOpenShell/IfcOpenShell/blob/a3dc477921d967ddf0e4c4cad4a4267bfe114521/src/ifcgeom_schema_agnostic/GeometrySerializer.h#L66 we just need to make it more general to
std::ostream
instead ofstd::ofstream
.Oh cool I have a look. Depends a bit on priorities if i get around to it