I wan't to be able to segment a part into separate solid bodies with a macro, ultimately to save each segment as its own part. I think the split feature may be the best way to go about doing this.
Attached is some code I've worked up so far that isn't quite functional yet but I'm not sure how to proceed.
The way the code should work is if you took an example part as shown in picture 1, selected some surfaces as in picture 2 and then ran the code. After inputting appropriate values when prompted the result should be something like picture 3
SolidworksApi macros