Model.hm_gethmfileversion#

Model.hm_gethmfileversion(filename)#

Returns the binary file version string for a specified database. The string is comprised of 2 parts, major-minor, where:

major is the major file version. It is itself comprised of two parts, release.binary.

minor is the minor file version.For example: 13.02-110

Parameters:

filename (hwString) – The full path and filename of the database file. Paths with spaces must be enclosed in quotes.

Returns:

Example#

Get the file version for C:temptest.hm#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_gethmfileversion(filename="C:\temp\test.hm")

print("fileVersion", result.fileVersion)