So I dug into this in conjunction with another thing which was easy. Figured “that’ll be a five minute fix now, super easy!” Well… I figured wrong.
This kinda works, fairly consistently in IronPython2.7. But not consistently in CPython, due to some really crazy stuff in the IFailuresPreprocessor Interface class, which is a requirement to get into when you edit a sketch (there are too many things which can fail for it to not have that extra check to prevent the copy if you’ve done something silly). But this mostly works. If the sketch edit fails you may find your system gets ‘stuck’ in sketch edit mode, which stinks as you can’t cancel the operation in the UI for some reason. Also you may find subsequent runs create a duplicate copy of the sketch lines producing an error… think this is a function of the custom class being poorly implemented on my part, or perhaps the sketch edit API really doesn’t like not being compiled at run time… again, this mostly works, but just in case you should sync often.
It currently only does one set of sketch lines to another; if you need more you will want to wrap it in a custom node or add a looping mechanism in the code.
As underwhelming as that may all sound, it’s really nice looking when it works. Go ahead and give it a go, and let me know how it works out.