Generate ifc per assembly

New in Dynamo. I have this model with several mechanical equipments. Each equipment is a assembly and have it´s own tag. I would like to develop a script for generate one ifc for each one of these assemblies. Anyone have a idea on how can I do this?