How to check if elements are close to each other if they have one property in common?
-
Hi,
we design prefabricated buildings, and every element has an ID Number. This means all subcomponents of a wall require the same ID number, e.g. window.
So we need to check if elements which have the same ID Number are next each other/in close proximity to each other.
For example It is important that the windows in Wall 1.1 also have the ID Number Wall 1.1 and not Wall 1.9 or 1.3 or anything else.I havent been able to find a way to check if elements are close to each other soley based on if they have one property in common.
Can anyone help out here?
Thanks in advance, -
@Stanislava I would also be interested to know this
-
There is a similar solution I just posted for clash using a Property Reference Parameter in the UI: https://society.solibri.com/topic/2529/compairing-certian-parameter-of-clashed-components/5
You can use the same idea using a component distance check based on max distance visualization example, but modifying it to minimum distance in the code:
https://solibri.github.io/Developer-Platform/latest/distanceVisualizationExample.htmlThe DistanceVisualizationExample above is included in the rule examples on github: https://github.com/Solibri/api-examples
Copyright © 2025 Solibri Inc. | Powered by NodeBB