Hi RAS,
You can set your nodes properties as follows when you want that their MeasureUnits should never change.
********
Node some_node;
some_node.MeasurementUnit = MeasureUnits.Inch;
some_node.InheritContainerMeasureUnits = false;
********
The above code will ensure that the MeasureUnit for the Node "some_node" will always remain to "Inch" irrespective of Model's MeasureUnits.
Attached with this mail is my sample file for the same.
Let me know if you shall need any further clarifications here.
Happy Coding!
-Ajeet
Diagram_WF_MeasureUnits_5ed96624.zip