Hi Dale, @dale
The goal of the script is to report in any imperial system or my custom units when I am in any other measurement system without having to use the command line distance settings. I want to leave the command line distance settings as they are so I can quickly compare measurements.
“You see, your script isn’t changing the unit system. Rather, it is only changing the distance display mode of the current unit system. And, the feet & inches distance display mode requires that the document’s units system be set to either inches or feet.”
Ok fair enough but previously you fixed/changed this for v6 where these scripts worked now it’s changed again.
Distance command in Rhino 6 and newer can already print the results in alternate units. So there isn’t any reason to toggle the document settings.”
I prefer not to set units in the distance command it’s too many mouse clicks and worse I often to forget to set it back when I continue modeling. I prefer to use my scripts because they allow me to not ever have to reset back to metric at the command line for measuring. Using scripts I can have the best of both worlds I might check once in metric using the regular distance command than quickly check in imperial using my scripts and not have to set Rhino back to metric which I often forget to do. I do this to make sure of sizes when designing. I can also check in imperial and still see metric sizes at the read out and can do conversions of volumes and areas not just distance and have nifty dialog boxes that popup when I need them. Also I need this for my custom units which are Palladian Tuscan or cubits.
I looked at one of my really old scripts and it did change document properties and then went into the distance command then changed back to document units. I guess I will have to do a document conversion than a reset to previous doc units. But I would like to be able to convert between any of the 25 types and especially custom units (item 11).
If you could provide an example of how to list original document properties change those to another unit setting then reset them back would greatly appreciated. I find working with the scripts less error prone for me than constantly resetting or checking document units in any of the distance or reporting commands. I pretty much club these scripts together as I am not a programmer so please bear with my ineptitudes. I attached some of my olden scripts hope you can point me in a better direction with less verbosity.
Thanks for your help and replies,
UnitConversionVBScripts.txt (4.3 KB)