P
by PreparadorDeObra on 29 Mar 2025, edited 13 Apr 2025
#
Hey everyone,
I have a script that uses 'Linked Duplicates' to duplicate assemblies (IfcElementAssembly) and distribute houses in a development. This script relies on the assemblies working correctly.
I need to assign objects within these assemblies to their respective storeys (IfcBuildingStorey), but when I do that, the objects are removed from the assemblies, breaking my 'Linked Duplicates' script.
Is there a way to assign objects to storeys without them being removed from assemblies, so my 'Linked Duplicates' script continues to work?
Is this removal of the relationship when setting the storey intentional (to follow good practices or the IFCSchema), or is it a bug in the addon?
Any help would be greatly appreciated! This script is crucial for my workflow.
W
by walpa on 30 Mar 2025
#
I could be wrong, but duplicating the IfcElementAssembly does not automatically duplicate its component elements (I remember trying this a long time ago and it didn't work). Maybe IfcElementAssemblyType is the correct way.
P
by PreparadorDeObra on 30 Mar 2025
#
Correct, ctrl+d does not duplicate the components, crtl + shift + d makes a linked duplicate that duplicates components. See https://github.com/IfcOpenShell/IfcOpenShell/pull/3328. I believe Ifcassemblytype can't have geometry, just psets. My problem is just I can't change the spatial container of the elements inside the assembly
T
by theoryshaw on 30 Mar 2025
#
My problem is just I can't change the spatial container of the elements inside the assembly
I don't think you can do this currently...
I actually think you can't do this via the IFC schema either unfortunately.
T
by theoryshaw on 30 Mar 2025
#
+2 votes
I wonder if it's worth coming up with an approach to do 'linked groups'. IfcGroups allow for a more flexible mechanism to logically group elements without enforcing a containment hierarchy. I think freecad does this. It's not officially supported by IFC, but this 'problem' has come up again and again and again. Ping @yorik
B
by bruno_perdigao on 5 Apr 2025
#
+2 votes
@theoryshaw What actually link the "linked aggregates" are IfcGroups, most of the logic is already there. So, it seems possible, but I would have to check before confirming. Could you please create an issue as a feature request?
B
by bruno_perdigao on 5 Apr 2025
#
+1 votes
For now, maybe it’s worth using spatial reference as discussed here: https://community.osarch.org/discussion/comment/24421/#Comment_24421
T
by theoryshaw on 5 Apr 2025, edited 5 Apr 2025
#
@yorik how does FreeCAD codify its 'linked groups'?
I'm thinking this would be a good first standard property!
P
by PreparadorDeObra on 6 Apr 2025
#
@bruno_perdigao said:
@theoryshaw What actually link the "linked aggregates" are IfcGroups, most of the logic is already there. So, it seems possible, but I would have to check before confirming. Could you please create an issue as a feature request?
@bruno_perdigao, @theoryshaw: should I create the issue? I'm newbie, but if needed I will try.
@bruno_perdigao said:
For now, maybe it’s worth using spatial reference as discussed here: https://community.osarch.org/discussion/comment/24421/#Comment_24421
I've read the discussion, I will try the references, but for that I think I will need to dismantle my assembly and assign the objects to subspaces. The duplication method will be similar to the linked duplicates: ctrl-shift-D?
Thanks!
T
by theoryshaw on 6 Apr 2025
#
+1 votes
should I create the issue? I'm newbie, but if needed I will try.
go for it, always go for it. :)
P
by PreparadorDeObra on 6 Apr 2025
#
+1 votes
Done. I posted a simple gif, i think it shows what i mean: https://github.com/IfcOpenShell/IfcOpenShell/issues/6514
T
by theoryshaw on 13 Apr 2025
#
+1 votes
created an issue for 'Linked Ifcgroups': https://github.com/IfcOpenShell/IfcOpenShell/issues/6542