While this isn't my realm of expertise, I did notice that you have a number as the first character of the mesh(?) name (e.x. "1germhelm"). I remember something about dialogs not working with numbers (Armagan uses dialog IDs ending with "_a", "_b", etc.). And it also violates the standard programming rule of not being allowed to have a number start a variable name. Maybe that is the cause of your error.