One method is to duplicate the functionality of the dim scripts.
Analog to this story:
The major part of the dim scripts is data collection.
That data you have at hand.
The last value might be an issue, the side is relative to the actual pointer position.
With DimAligned.js as example:
The data is collected in ‘this.data’ as a new RDimAlignedData.
The last case of DimAligned.prototype.pickCoordinate creates the operation and finally cast it.
The other method would be to preset all the data and parse it to the dim script.
Analog to this story:
Regards,
CVH