Could you explain what you are trying to do a little bit more better? I'm not quite sure what it is you are trying to do.
I currently have two guesses:
-A: You're trying to create a module that serves as a source of income.
-B: I' not sure... are you trying to create some sort of planet trade module structure!?!
Either option is unlikely to work. I don't think you can swap starship parts with planet structures.
The modding aspect of this game doesn't allow you to create something very different than what already exists. I've tried to create a starbase modules, in the past, that increased the hit points of the starbase. The problem was, no starbase module does anything like that, so its not possible to make a module that does.
thanks a head of time
Your welcome.
I hope this helps.