I have developed a script to get the information of mechanical elements which are intersecting with the space created. However, I can get the solids created for spaces and spheres for each of the mech elements. When I run the DoesIntersect node, it gives only 1 true value, though there are many intersecting. Could anyone help?
Cheers.
Please be sure to have your node preview bubbles pinned when taking a screenshot. Otherwise weāre just guessing at whatās actually happening in your graph.
Also, this exact process has been discussed many times on the forum already. Please make sure you are searching for similar topics before you start a new thread. There are multiple comments to be made on where your process needs to be improved (list levels, bounding box inaccuracies, boolean comparisons) that have already been discussed in those other topics. Itās best to start there and then come back with any specific questions you may have.
Hi Nick,
Thanks for the reply. I have gone through some of those processes and got to this point. Sorry, Iām a newbie to Dynamo and trying to get to the bottom of this.
Hi @sanjaya all @BimAmbit say, dont use boundingboxes for your spaces these are always xy alignedā¦try ootb is.in.space node or as i like is in space from mepover as give the spaces without need a filter boolā¦you probably need translate your points in -z so you are sure they hit the spaces
The problem is that not all points are located within the space. such as fire dampers in the wall. Iām trying to get the intersecting space name for the fire dampers as well. Thatās the reason I have created shares, so it will clash with the space and will give the intersecting space.
yes but should that firedamper belong to one space or 2 spaces ? anyway then we need translate the location point so it hit or as i think you already do use a oversized sphere so it probably will hit ā¦
Location point would be faster as you donāt need to convert any geometry as you can query the room via the get room at point method. Just move the point in the facing direction of the family the same dimension used for the sphere. Bonus points if you try the center point first and then do the shifting of that returns null. Double bonus points if you use the room location point first, the location point of the instance second, and the offsets third as this can be used to account for the āabove the ceilingā stuff.
If both rooms are desired use both the + and - offsets.
As far as ācould this give an error?ā, well that depends. The logic above would find one (equipmentās center point is in the room) or two (dampener with + and - offset) rooms - but what are you planning to do once you find those? Setting a parameter value? Something else?
I have tried that, and it did work partially. I have 688 items, and Iām sure there are more than two in the spaces. However, it shows only 2 items. Thanks a lot for your help mate.
Hi @sanjaya i guess not all elements have to be translated that way,only component in wallā¦try filter them outā¦try run it first lets say on 5 spaces ā¦and see if it could workā¦and if then scale it upā¦if you have a small sample rvt you could share we could take a lookā¦