Air terminal not assigning a System Type when connected

Hi guys,

I’ve got a script that takes an air terminal connector and draws a duct from the connector to a defined point:

But for some reason the duct isn’t taking the System Type from the Air Terminal. When I do this with a single air terminal, via script or manually, the duct does take the System Type from the Air Terminal. Anyone got a thought on why this might happen when doing it in a batch?

Thanks,
Liam