UserDefinedPropertyDefinition is an offline object, i.e. its properties are initialized once during creation and not updated after every change in database. Because of this, it is necessary to call the method after object modification to have the changes visible in the parts database.