I have a script that calls Sweep1, and was wondering why it was running slow and taking up a ton of memory, and it turns out the culprit was that in the call to Rhino.Command I set a number of parameters, including saying to rebuild with 12 control points.
The string would be something like “”-Sweep1 Enter Style=Freeform Simplify=Rebuild RebuildCount=12 RefitRail=Yes Enter""
For some reason Rhino was interpreting “RebuildCount=12” as “biggest number it can hold” and creating ridiculously dense surfaces. Removing the options settings from the command text fixed it. Any theory on what could possibly have caused that?