I am rewriting scripts written in Rhino5 to make them compatible in Rhino6. I have encountered a problem with the SplitMeshWithCurve command. After I execute the command, the mesh is deleted and only the curve remains. Here is the script:
import rhinoscriptsyntax as rs originalMesh = rs.GetObject('Select mesh to split') curve = rs.GetObject('Select cutting curve') cmd="-_SplitMeshWithCurve " + "_Selid " + str(originalMesh) + " " + "_Selid " + str(curve) + " _Enter " + " _Enter " rs.Command(cmd) result = rs.LastCreatedObjects()
And this is the test file I used:
SplitMeshWithCurveBug.3dm (663.4 KB)
The variable result contains two objects at the end, however the mesh disappears. In Rhino5 the command works as expected.
Thank you for your help.