Very nice. I am glad you got it worked out.
I am not sure why you created this function, but I am sure it will be appreciated where it is needed.
I had to create a function that takes 3D ACIS solids from Rhino to ACAD to AlphaCAM. The final output could not be splines. FYI, the ACIS solids from Rhino are spline based. ACISIN and explode the solids and you get bodies (2000 - 2006), surfaces( 2007), explode the bodies or surfaces and you get splines. Lines are splines, arcs are splines, and circles are 2 spline arcs. It took 227 hours to pull off. All through VB hack code, lol. I am not a pro like you man.
I never got paid! The customer loved it and tested it, but was too slow in paying, so I blew them off.
This is actually pretty funny in a bad way, wasn't then though, but almost every boat/yacht yard used Rhino and I have the only code that can take the whole 3D model and send almost the entire model directly to a CAM software that can then load it and generate all the g-code and nesting. Ten year Rhino users are ready to drop Rhino at a moments notice and use ACAD 2007 to avoid the extra steps involved with having to get the solids first aligned to the WCS, before exporting the entire model, once they see how automated the process is in ACAD 2007. Here is the funny part: I bet 2007 would not have handled these shapes if Rhino did not give them the competition. I like the competition from Rhino pushing ADesk. We all win in the end. This was not the fallout I was looking for.
I talked to Bob McNeel, at Rhino, and told him I could port over to Rhino and take ACAD out of the picture completely, but he had to throw some money at it. Like 10 G's or so. Not much money really. He responded that he had developed the third party development package and that was his way of helping AND that he had a whole bunch of CAM softwares that worked inside of Rhino that already provided for the customers needs.
Well now, if this was true, then why are 10 year users ready to jump ship? I tried to explain this to him, but he never got back to me. He just does not understand the time difference of processing each part one at a time, laying each part flat and orientated correctly for grain, and then feature recognizing or manually toolpathing each part, as opposed to just selecting the entire model, right-clicking, and choosing export to CNC, then just oping the CAM software and going import and being done with it all.
It seems that even the most innovative companies tend to loose sight of the customers needs when they get big. I sure hope that does not happen to my company. I just may, as most of these guys are smarter than me.
My code, working or not, is still just a proof of concept of what is possible, through using my concepts and utilizing talented coders like yourself. We do not have the talent to code it right, so I hack it together. That is why I am so impressed with what you have created there. Being able to deal with those spine objects the way you are is very difficult and I hope to see your skills accessed by successful companies to make getting the most fundamentally advanced complicated designs (spline based objects) as easy to work with a line for the end user. Only then will we have the best designs being manufactured with gr4eat efficiency. Keep up the great work man!