you run that code in the python script editor, or you make a python shelf button with that code, and use that to run it. for it to work, the python file i have in the first post, must be in your maya scripts directory. python is a case sensitive language, so that could be your problem. if it works the UI looks like this
take this python file drop it in your maya scripts directory. than make a shelf button with this python code. import fbxExporterfbxExporter.UI() if move to orgin is checked off, it will move meshes to 0,0,0 x,y,z in the fbx files. The Script uses the object names for the fbx file names.