Is it possible to create a blueprint file from C++?

Try this:

and

If that is not what you are looking for, some description on what you want to do with that would be useful to understand the problem.