You must construct the ReferenceArray from extracted DB.References within the Family Instance.
You can do this, ncluding options, as displayed here:
To extract the DB.References from a Family Instance, refer here for a similar workflow:
I will post a full worked example in the morning. 
3 Likes