Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Change the i to 0 in the lines:
aszNames = (char**)calloc(1, sizeof(char*)); aszNames[0] = (char*)calloc(PRO_NAME_SIZE, sizeof(char));ProWstringToString(aszNames[0], pro_unitSystem.name);
//Set the selected unit system
err = ProUIOptionmenuSelectednamesSet(szDlgName, "optUnits", 1, aszNames);free(aszNames[0]);
free(aszNames);
Greetings Lars