The [x] Science mod uses reflection to interact with DMagic, source code is here: https://github.com/thewebbooth/KSP-X-Science/blob/master/X-Science/DMagic.cs We should do something similar.