Hi everyone!
I have a question is it possible to copy value of Scope Box (name of area) to parameter of element wich is located in that area. Probably somebody have Idea how to realize it with Dynamo?
Solved! Go to Solution.
Solved by robert2JCCH. Go to Solution.
You can do it manually fairly quickly using a view with everything visible, all phases visible, wireframe, suitable view range. Select everything in the scope box and just type the value in the parameter field.
As for Dynamo, that would be beyond my ability but I’m sure there will be a way of doing it by looking for coincident coordinates - but what happens if an object straddles two adjacent scope boxes?
See this post
https://forums.autodesk.com/t5/revit-mep-forum/scope-box/m-p/11167816#M85819
@robert2JCCH could maybe help you.
First call-out on the forums 😃
From the screenshot it looks like you have 3D views bounded by scope boxes, and you're attempting to push the scope box ID to everything inside of it.
There's a few assumptions I'm going to make, check these against your workflow and adjust accordingly.
The first is that custom node packages are OK to use. The ones I'm using are fairly well-known, reputable, and frequently updated. You can replicate this without those packages but trade production time and system performance to do so.
The second is that, in the event that a family falls inside two overlapping scope boxes, the family should accurately show that in the parameter.
The script below uses the springs and bimorph package. The bimorph package is pulling the heavy weight here. The out-of-the-box element.geometry node has a tendency to bog down with complex geometry or large list sizes: the bimorph package apparently goes through the API and doesn't have this problem.
Just replace the Comments parameter with whatever text-based parameter you use.
Edit: Realized after posting that I did not show the corner case of an item being partially clipped out of the bounding box. The Bimorph node does check the entire geometry, so it should still show as a 'clash' just fine. This is a small advantage over GetLocation methods since you're not just comparing a centroid or origin point.
@robert2JCCH wrote:First call-out on the forums 😃
From some of your recent posts you clearly know your Dynamo so I thought you'd be able to help the OP. Thanks.
Thank you very much! I tried this way, but have a mistake, and don`t understand why 😞
Great thank you for helping, I just in the start of learning Dynamo 🙂
List.Contains needs to be Cross-Product lacing since we are comparing every scope box to every fixture (A times B)
https://primer.dynamobim.org/06_Designing-with-Lists/6-1_whats-a-list.html
Can't find what you're looking for? Ask the community or share your knowledge.