Thanks @AlanRynne - I managed to get it to work with your pointers and some of the insights from this thread.
I needed a variable amount of K/V properties (number/names will differ based on input). But each value is only an item in my case.
I couldn’t get the K/V components (create by K/V or extend by KV) to work, so wrote a simple python replacment based on Alan’s link.
The overall process seems to be to convert the geometry to a Base speckle object (don’t use ‘Create Speckle Object’), and then extend with another Base object containing just K/Vs. (In my example, the conversion to base speckle object for the geometry is happening when it is plugged into the Extend Speckle Object Component).
Hope this is useful for someone in the future as it took me a bit of working out. I’ve uploaded the grasshopper file too. I’m afraid I can’t share the stream URL as it’s on our companies server.
Add_Custom_KVs.gh (19.1 KB)