There was a previous thread from another user regarding this topic which I had followed up on and the trail went a bit cold so I am posting as a new thread. Here is a link to the previous: Align MEP families to different Ceilings in Linked model
What I am looking to do is create a script which will allow users to justify all ceiling diffusers and grilles to the ceiling of a linked model.
I am utilizing a dynamo lines intersection method that I believe is adapted from something Sean Fruin had created. I believe that the script is very close because when I substitute a constant value for the variable Offset_= under the “//Get Offset from Hosted Level” section the script runs and moves all the air terminals to that value. The generated dynamo lines are also visible in Revit when I run the script so I know that they are being created successfully. It seems to me that the issue is somewhere with either a) the ceiling intersection point not being properly created or b) the intersection point not being read as the variable Offset_=. Can anyone shed any light on where the issue might be? Screenshots below: