A-script. Remove all REMs from model formulas

118 viewsScripting
0

Problem
There are cases when you want to quickly delete all formulas’s comments of a model.
Below I show my solution in the form of an Action script. This A-script uses RegEx that matches both single-line and multi-line comments of model’s formulas. I have hidden the search pattern from you for now so that you yourself think about developing your own pattern, seeing my working solution.

Changed status to publish
0

Screenshot of the A-script:
*

*

Good luck

Changed status to publish
0

Solution demo
This two-matrix model is a simplified version of the real one. The script-button on the canvas serves as a simplifying tool for showing the results of the A-script. I cancel the A-script action using Ctrl+Z.
*

*

Changed status to publish