How to use blueprints in code?

I’m not sure that’s it. I want to apply already made blueprints to an object which i spawn trough code ,not editor ,who’s transforms are also controlled in code.