parameters: (filename)
docstring: called when freecad opens a file.
docstring_summary: called when freecad opens a file.
docstring_tokens: called when freecad opens a file .
function: def open(filename):
      """called when freecad opens a file."""
      PathLog.track(filename)
      docname = os.path.splitext(os.path.basename(filename))[0]
      doc = FreeCAD.newDocument(docname)
      insert(filename, doc.Name)
function_tokens: def open ( filename ) : PathLog . track ( filename ) docname = os . path . splitext ( os . path . basename ( filename ) ) [ 0 ] doc = FreeCAD . newDocument ( docname ) insert ( filename , doc . Name )