Linked model & copy/monitor question

Hello, in order to get help, you will need to send a screenshot of your first graph with precise issues to resolve. Thanks :slight_smile:

Thank you - I was unable to get to my computer yesterday to screenshot. See below for screenshot. In this test case, I have resolved my problem but that was when I started with a blank template and only had one piece of mechanical equipment.

My first specific issue I’m trying to resolve is how to match/link equipment from my model and the copy/monitored model in order to set parameters.

This discussion could probably help:

Thank you so much!! It looks exactly like what I’m trying to do. I will update on the progress shortly! Thanks again.

1 Like

Just as a followup - here is my final graph. I decided to go down the route of geometry intersection to set parameters as any other ways I tried lead to dead ends. One thing (perhaps an internal problem) was that the geometry intersected in X, Y but not Z. (We’ve had problems on this project dealing with shared and project internal coordinate systems and thus effecting level heights). But it appears I have found a solution!

Let me know if anyone sees anything that potentially can go wrong with this script!

Thanks,
Dave

Hi @David_Black

Your doing wrong at “FilterByBoolMask” node. You need to connect your elements in FilterByboolMask node and Booleans list to List.Map node’s List. Below is an example.

Thanks @Kulkul - I see what I was doing wrong now but I can’t get my List.Map list to be true values only. I tried it out on a test project but maybe I am missing something obvious??

@David_Black You need to connect to elements list to FilterByBoolMask not the booleans. Watch my screenshot carefully and try to understand how it works.

@David_Black If you still can’t make it drop your files here we will create possible solution for you.

Sorry @Kulku, I connected to elements list but I’m still drawing a blank - its been a long day. Thank you very much, hopefully you will have some success.

Thanks, Dave

PushTypeMarkandMarktoElecModel.dyn (36.6 KB)

@David_Black Drop your rvt file in Google Drive or Dropbox and share the link here.

Thank you

@David_Black here is the updated dyn scriptPushTypeMarkandMarktoElecModel.dyn (36.7 KB)

2 Likes

Works like a charm!! Thank you so much, god bless Dynamo!

@David_Black Glad it helped! Merry Christmas :evergreen_tree:

Actually just a quick bit of testing and it seems the “Mark” value is the only parameter that changes. I.e. if I change a voltage parameter in the MechModel, it doesn’t carry over to the ElecModel. Any insight into this? All parameters are type parameters except from “Mark” so I change the voltage parameter to instance and it still doesn’t carry across.

@David_Black That’s because you don’t have any values for the parameters

.

Actually just solved it - all parameters that will require monitoring need to be instance. I went into the ElecModel and reloaded the family (with the voltage parameter changed to instance) and it worked perfectly!

Thanks so much for your help again.

Gentlemen,

First off, thank you for the discussion and the script. It’s been a great starting point.

I’m trying to follow along and manipulate the dyn script to work for my project. The only thing that seems to not be working how I would expect is the List.Map node. It keeps returning null.

The “does intersect” node appears to be working, and I’m passing my model elements through the FilterByBoolMask node as instructed. Any ideas on what may be the problem, or a possible solution?

image

I believe your List.Map is addressing the wrong level of lists in your Geometry.DoesIntersect node. Without seeing the rest of your graph, I would suggest adding a List.Flatten node between the DoesIntersect and the List.map, and set the flatten amount to 1.