Extract IFC class instances using IfcConvert CLI? #4541
-
Hello! I am looking for a way to extract individual IFC objects from an IFC file into GLB files. For example: convert one IfcSpace instance with a certain name or ID to a GLB file. I have looked at the include and exclude arguments, but so far my attempts have been unsuccessful. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Gday! Have you read https://docs.ifcopenshell.org/ifcconvert/usage.html ?
Dion Moult
Sent from Proton Mail mobile
…-------- Original Message --------
On 11 Apr 2024, 11:50 pm, Frans Knibbe wrote:
Hello! I am looking for a way to extract individual IFC object from an IFC file into GLB files. For example: extract one IfcSpace instance with a certain name or ID to a GLB file. I have looked at the include and exclude arguments, but so far my attempts have been unsuccessful.
—
Reply to this email directly, [view it on GitHub](#4541), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAVR3TOLHHOEIT5TT5IILDY42II5AVCNFSM6AAAAABGCLEWUWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGQ4TCNRQGQ).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, I have read the man page. Based on that, I tried something like IfcConvert --include=Name "spaceX" in.ifc spaceX.glb That results in a syntax error: [Error] Invalid usage of '--include': the argument for option '--include' is invalid So I think I actually have two questions:
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, Dion! The example certainly helped. At first I tried something like your example, but then I got the error |
Beta Was this translation helpful? Give feedback.
The syntax is described perhaps it's not too clear without examples. Here's an example:
Yes, if you use include, then everything else is excluded.