Table Arrangement Blooper Reel

For future reference when another broken Table Arrangement comes along, here is an AI2 app to download a broken .scm file from this board, and report on its Table Arrangement anomalies. The sample run is off the file in my prior post, Screen1.scm of APP_03.



Table_Arrangement_Scanner.aia (12.0 KB)

The app downloads an unzipped .scm file, trims three lines of non-JSON, and extracts the remains as a dictionary (Form).


Because there's a lot of work to do, I used a global list to act as a work queue for the analysis, one object per item, starting from the Form. I use a Clock Timer to process each object, and to show progress.

I did not pay too much attention to which parts of each object I stacked, since they would all be reached eventually and the sub-objects would eventually come up for analysis.

Since I remove the top of my queue each cycle, it must eventually deplete, and we are done.

I add the component type to each name I extract, to insure uniqueness.

We are only interested in TableArrangements in this little app.

We collect all the subcomponents of the Table Arrangements, and build up a dictionary of all its (row,column) pairs and their components.
A duplicate or broken (-1) pair is flagged as an error.

1 Like