Working with different unit types and measurements
When working with objects such as table cells you sometimes need to combine measurements of different unit types. For example, if I wanted to calculate the width of a cell including the cell stroke I could possibly be trying to combine the width in millimeters to the stroke in points.
I could change the users viewPreferences to a single unit type then change them back afterwards but this seems very clunky and if there are problems with the script it leaves the users InDesign settings in a bit of a mess.
What is the best way to work with measurements in this way?