text: from __future__ import print_function
  from __future__ import absolute_import
  from __future__ import division
  
  import scriptcontext as sc
  
  import compas_rhino
  
  
  __commandname__ = "AGS_form_inspector_off"
  
  
  def RunCommand(is_interactive):
      if 'AGS' not in sc.sticky:
          compas_rhino.display_message('AGS has not been initialised yet.')
          return
  
      scene = sc.sticky['AGS']['scene']
  
      objects = scene.find_by_name('Form')
      if not objects:
          compas_rhino.display_message("There is no FormDiagram in the scene.")
          return
      form = objects[0]
  
      form.inspector_off()
  
  
  # ==============================================================================
  # Main
  # ==============================================================================
  
  if __name__ == '__main__':
  
      RunCommand(True)
  