I am trying to get Dynamo to input existing profiles as elevation targets to the regions of my corridor and I am struggling to get it to work as it does if I do the process manually. Below is a screenshot of what it looks like if I have Dynamo run it:
Screenshot after doing the targets manually:
I think I have two problems, I need to get Dynamo to read the nearest profile/elevation data (SetTargetToOption) as it seems to default to something other than nearest.
When I try to add multiple profiles as elevation targets, though I can’t get it to add multiple profiles in at once. I have even tried adding these profiles one at time with separate node groups. Maybe I have a lacing/level issue with the input of profiles into the CorridorTarget.SetObjects node? Screenshot my graph below:
Hi @jbrunkhorst,
I just tried setting multiple objects for a target and didn’t have any issues. Perhaps you can share your graph?
Also, there is this sample graph that might help:
@zachri.jensen
Yeah I have definitely stealing some stuff from that sample in particular!
I am still struggling to get the desired result here, though. I have tried to isolate the step of the elevation targets to a single graph for the time being and it hasn’t helped me so far. I will give you those files to mess with if you don’t mind! I am sure I am doing something silly, but its beyond me right now. The EG surface requires a MMS file (sorry!), but hopefully that won’t be a problem for this step in particular since all of the targets should be coming from profiles and the existing topography/end conditions hasn’t been a problem, so far. So, I have that attached along with the .dwg with an existing corridor in it, then also the .dyn file with the isolated graph. Thanks as always!!
Corridor Entrance Example.dwg (3.2 MB)
Corridor Entrance_Set Elevation Targets.dyn (144.3 KB)
It seems to work OK for me…just make sure the surface is getting rebuilt 
Just getting back to this script this morning, when you run it, are you able to get both profiles added into the corridor targets? Mine seems to only be one that gets added in and then I get an error when trying to set the target option afterwards. Screenshot below: