Placing instance along with section view creation

Hello guys,
I am working on a script to create a section for steel framing. I need to place insulation inside the views. As insulation cannot be provided using dynamo, I created a detailed family that can act as insulation. But the family instance is not getting placed in the correct location if I run it along with the section creation script. If I run it separately itโ€™s working accurately. Thank you in advance for the replies. :blush:
full script image -

1 Like

Wrong placement - image

correct placement - image