That is, it means "do the body while $result is equal to the literal string Completed.
The Body
The body of the loop calls $mode run (what exactly that does isn't described here). Then it gets the result by calling $mode getRunResult and extracts the first word of the list, and assigns it to the variable result. The final step of the loop is to use switch to print a message whenever $result is either Error or SolverFailure (it also has clauses for Completed and StopCritera, but that's empty so nothing happens).
The Overall Effect
The loop calls $mode run until the first word of the result of $mode getRunResult after that run is not Completed.
$mode is a handle returned by pw::Application begin ExtrusionSolver $block, and $mode end is called after the loop terminates, presumably to clean things up.
The Condition
The condition:
could be written more shortly as:
That is, it means "do the body while
$resultis equal to the literal stringCompleted.The Body
The body of the loop calls
$mode run(what exactly that does isn't described here). Then it gets the result by calling$mode getRunResultand extracts the first word of the list, and assigns it to the variableresult. The final step of the loop is to useswitchto print a message whenever$resultis eitherErrororSolverFailure(it also has clauses forCompletedandStopCritera, but that's empty so nothing happens).The Overall Effect
The loop calls
$mode rununtil the first word of the result of$mode getRunResultafter that run is notCompleted.$modeis a handle returned bypw::Application begin ExtrusionSolver $block, and$mode endis called after the loop terminates, presumably to clean things up.