Model.hm_gethmfileuserprofile#
- Model.hm_gethmfileuserprofile(filename)#
Returns the user profile information saved in the specified database. The string is comprised of 3 parts, application, profile and subprofile.
For example:
RadiossBlock
Block140
- Parameters:
filename (hwString) – The full path and filename of the database file. Paths with spaces must be enclosed in quotes.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:userProfile (str)
Example#
Get the user profile for C:temptest.hm#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_gethmfileuserprofile(filename="C:\temp\test.hm") print("userProfile", result.userProfile)