Generic Model to cutout

Hello Everyone,
i am working in large scale project where we used generic model for wall cutout same i want to change as wall cutout
anybody can suggest me the dynamo script how to replace the same

Thanks