Roadmap 0.13, Market watch builds

MW.52 PartCraft scripts: expect lines that state what the built part must meet, checked on every build

  • Feature
  • Built · in the lab
  • PartCraft

From MWClaim #3530 (statements in a script that state spatial conditions a model must meet). A part written as a script (.pcscript) says how the part is built, but not what must stay true about the result: that it still fits the envelope, keeps a wall thickness, stays one piece. A change to a parameter can break that with no word from the program. Build: expect lines in the script format and in the part: expect volume, area, size x, size y, size z, mass, bodies or wall (the thinnest wall, by the print check) compared with a number or an expression of the parameters (<, <=, >, >=, =, with a tolerance, or between two values), and an optional note. They are kept with the part, shown as a list Expectations on the Parameters tab with a tick or the measured value beside each, and checked after every rebuild; one that fails is listed under Problems with its numbers. Save as script writes them and Open script reads them back unchanged. The command line check reports a failed expectation as an error (exit code 1), and info lists them. Parts and scripts without expect lines behave as before. PartCraft. Not built: expectations about distances between named faces, clearances between parts of an assembly, expectations in CraftScript, Lua or Python scripts. Untested: Exact Solids, large parts where the wall check is slow.

From: a Discord member

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.