parameters: (fileName)
docstring: called when freecad opens an PlmXml file
docstring_summary: called when freecad opens an PlmXml file
docstring_tokens: called when freecad opens an PlmXml file
function: def open(fileName):
      """called when freecad opens an PlmXml file"""
      global FreeCAD_On,FreeCAD_Doc
      import FreeCAD,os
      docname = os.path.splitext(os.path.basename(fileName))[0]
      doc = FreeCAD.newDocument(docname)
      message='Started with opening of "'+fileName+'" file\n'
      FreeCAD.Console.PrintMessage(message)
      FreeCAD_Doc = doc
      FreeCAD_On = True
      parse(fileName)
      resolveRefs()
function_tokens: def open ( fileName ) : global FreeCAD_On , FreeCAD_Doc import FreeCAD , os docname = os . path . splitext ( os . path . basename ( fileName ) ) [ 0 ] doc = FreeCAD . newDocument ( docname ) message = 'Started with opening of "' + fileName + '" file\n' FreeCAD . Console . PrintMessage ( message ) FreeCAD_Doc = doc FreeCAD_On = True parse ( fileName ) resolveRefs ( )