Parent Object: StockMaterial Defined in namespace "adsk::cam" and the header file is <Cam/StockMaterials/StockMaterial.h>
Description
Gets and sets the hardness unit of the stock material. Returns an empty string when no unit is set (including legacy materials with unitless hardness). Standard hardness scales such as "HRC", "HRA", and "HB" are supported, as well as custom unit names. When setting a hardness unit, a hardness value must already be set. Clearing the unit while a hardness value is set is not allowed. Legacy unitless hardness can be read but cannot be created or saved via import or update.