old_contents: # -*- coding: utf-8 -*-
  """
  Expose the HFSS Windows COM API.
  
  Example Usage
  -------------
  >>> import hycohanz as hfss
  >>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
  >>> hfss.quit_application(oDesktop)
  
  """
  
  from __future__ import division, print_function, unicode_literals, absolute_import
  
  import warnings
  
  import win32com.client
  
  warnings.simplefilter('default')
  
  def setup_interface():
      """
      Set up the COM interface to the running HFSS process.
      
      Returns
      -------
      oAnsoftApp : pywin32 COMObject
          Handle to the HFSS application interface
      oDesktop : pywin32 COMObject
          Handle to the HFSS desktop interface
      
      Example Usage
      -------------
      >>> import Hyphasis as hfss
      >>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
      
      """
      # I'm still looking for a better way to do this.  This attaches to an 
      # existing HFSS process instead of creating a new one.  I would highly 
      # prefer that a new process is created.  Apparently 
      # win32com.client.DispatchEx() doesn't work here either.
      oAnsoftApp = win32com.client.Dispatch('AnsoftHfss.HfssScriptInterface')
  
      oDesktop = oAnsoftApp.GetAppDesktop()
  
      return [oAnsoftApp, oDesktop]
      
  def quit_application(oDesktop):
      """
      Exit HFSS.
  
      Parameters
      ----------
      oDesktop : pywin32 COMObject
          HFSS Desktop object.
      
      Returns
      -------
      None
      
      Example Usage
      -------------
      >>> import Hyphasis as hfss
      >>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
      >>> hfss.quit_application(oDesktop)
      
      """
      oDesktop.QuitApplication()
  
  def new_project(oDesktop):
      """
      Create a new project.  The new project becomes the active project.
      
      Parameters
      ----------
      oDesktop : pywin32 COMObject
          HFSS Desktop object in which to create the new project.
          
      Returns
      -------
      oProject : pywin32 COMObject
          The created HFSS project.
          
      """
      oProject = oDesktop.NewProject()
      
      return oProject
  
new_contents: # -*- coding: utf-8 -*-
  """
  Expose the HFSS Windows COM API.
  
  Example Usage
  -------------
  >>> import hycohanz as hfss
  >>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
  >>> hfss.quit_application(oDesktop)
  
  """
  
  from __future__ import division, print_function, unicode_literals, absolute_import
  
  import warnings
  
  import win32com.client
  
  warnings.simplefilter('default')
  
  def setup_interface():
      """
      Set up the COM interface to the running HFSS process.
      
      Returns
      -------
      oAnsoftApp : pywin32 COMObject
          Handle to the HFSS application interface
      oDesktop : pywin32 COMObject
          Handle to the HFSS desktop interface
      
      Example Usage
      -------------
      >>> import Hyphasis as hfss
      >>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
      
      """
      # I'm still looking for a better way to do this.  This attaches to an 
      # existing HFSS process instead of creating a new one.  I would highly 
      # prefer that a new process is created.  Apparently 
      # win32com.client.DispatchEx() doesn't work here either.
      oAnsoftApp = win32com.client.Dispatch('AnsoftHfss.HfssScriptInterface')
  
      oDesktop = oAnsoftApp.GetAppDesktop()
  
      return [oAnsoftApp, oDesktop]
      
  def quit_application(oDesktop):
      """
      Exit HFSS.
  
      Parameters
      ----------
      oDesktop : pywin32 COMObject
          HFSS Desktop object.
      
      Returns
      -------
      None
      
      Example Usage
      -------------
      >>> import Hyphasis as hfss
      >>> [oAnsoftApp, oDesktop] = hfss.setup_interface()
      >>> hfss.quit_application(oDesktop)
      
      """
      oDesktop.QuitApplication()
  
  def new_project(oDesktop):
      """
      Create a new project.  The new project becomes the active project.
      
      Parameters
      ----------
      oDesktop : pywin32 COMObject
          HFSS Desktop object in which to create the new project.
          
      Returns
      -------
      oProject : pywin32 COMObject
          The created HFSS project.
          
      """
      oProject = oDesktop.NewProject()
      
      return oProject
  
  def set_active_editor(oDesign, editorname="3D Modeler"):
      """
      Set the active editor.
      
      Parameters
      ----------
      oDesign : pywin32 COMObject
          The HFSS design upon which to operate.
      editorname : str
          Name of the editor to set as active.  As of this writing "3D Modeler" 
          is the only known valid value.
      
      Returns
      -------
      oEditor : pywin32 COMObject
          The HFSS Editor object.
          
      """
      oEditor = oDesign.SetActiveEditor(editorname)
      
      return oEditor
  
subject: Implement the interface to SetActiveEditor() (Issue #9).