Model.hm_getdiameterfromfile#
- Model.hm_getdiameterfromfile(thickness, dvstfile)#
Returns the diameter for the specified thickness from the DVST file.
- Parameters:
thickness (double) – The thickness for which diameter is required
dvstfile (hwString) – The diameter vs. thickness file name.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:diameter (double)
Example#
Get the diameter for a thickness of 1.0 from the file#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getdiameterfromfile(thickness=0.1, dvstfile="d:\my_dvstfile.txt") diameter = result.diameter print("diameter", diameter)