Its possible, but not within the same Visual Studio project as you cannot mix Zero Touch with MVVM (assuming that’s the object model you plan to use with WPF).
If you use the same namespace (what you call ‘category’) and class (what you call ‘subcategory’) in both libraries, the resultant nodes will be organised in the Dynamo library together in the structure you need. Alternatively, you can override the organisation of nodes in the library using the DynamoCustomizations.xml. If you download the Mesh Toolkit from the package manager, you can examine its xml from the root directory as an example.
Thanks Thomas. I’m using the customization xml right now and it’s working great. It’s just a bit unfortunate that the project needs to be splited between zero touch and “WPF Nodes”. But I guess there are no other workarounds.
I don’t see why they couldn’t be mixed as part of the same DLL, allowing you to order them as you wish.
Yes, the WPF one would have to call functionality from a separate DLL (from what I understand, @teocomi might want to confirm) but if you’re willing to split the code like that, it’s doable
I can confirm, as I’ve tried it, and it doesn’t work!
Dynamo must have separate dll’s also. I think this limitation is documented somewhere on the github.
On the note of separate dlls, I have realized that if I use methods from a referenced external dll, I get an error saying dereferencing a non-pointer, where as if I create a function in another assembly in my project which does nothing else than calling my method, then it works. I find that quite strange. Any thoughts?