parameters: (feature = None, 
                     take_selection = False, 
                     create_transaction = True, 
                     callback_OK = None, 
                     callback_Cancel = None, 
                     callback_Apply = None)
docstring: Opens attachment editing dialog.
      editAttachment(feature = None, 
                     take_selection = False, 
                     create_transaction = True, 
                     callback_OK = None, 
                     callback_Cancel = None, 
                     callback_Apply = None)
      feature: object to attach/modify. If None is supplied, the object is taken from 
      selection.
      take_selection: if True, current selection is filled into first references (but only 
      if object to be attached doesn't have any references already)
      create_transaction = if False, no undo transaction operations will be done by the 
      dialog (consequently, canceling the dialog will not reset the feature to original 
      state).
      callback_OK: function to be called upon OK. Invoked after writing values to feature, 
      committing transaction and closing the dialog.
      callback_Cancel: called after closing the dialog and aborting transaction.
      callback_Apply: invoked after writing values to feature.
docstring_summary: Opens attachment editing dialog.
      editAttachment(feature = None, 
                     take_selection = False, 
                     create_transaction = True, 
                     callback_OK = None, 
                     callback_Cancel = None, 
                     callback_Apply = None)
      feature: object to attach/modify. If None is supplied, the object is taken from 
      selection.
      take_selection: if True, current selection is filled into first references (but only 
      if object to be attached doesn't have any references already)
      create_transaction = if False, no undo transaction operations will be done by the 
      dialog (consequently, canceling the dialog will not reset the feature to original 
      state).
      callback_OK: function to be called upon OK. Invoked after writing values to feature, 
      committing transaction and closing the dialog.
      callback_Cancel: called after closing the dialog and aborting transaction.
      callback_Apply: invoked after writing values to feature.
docstring_tokens: Opens attachment editing dialog . editAttachment ( feature = None take_selection = False create_transaction = True callback_OK = None callback_Cancel = None callback_Apply = None ) feature : object to attach / modify . If None is supplied the object is taken from selection . take_selection : if True current selection is filled into first references ( but only if object to be attached doesn t have any references already ) create_transaction = if False no undo transaction operations will be done by the dialog ( consequently canceling the dialog will not reset the feature to original state ) . callback_OK : function to be called upon OK . Invoked after writing values to feature committing transaction and closing the dialog . callback_Cancel : called after closing the dialog and aborting transaction . callback_Apply : invoked after writing values to feature .
function: def editAttachment(feature = None, 
                     take_selection = False, 
                     create_transaction = True, 
                     callback_OK = None, 
                     callback_Cancel = None, 
                     callback_Apply = None):
      '''Opens attachment editing dialog.
      editAttachment(feature = None, 
                     take_selection = False, 
                     create_transaction = True, 
                     callback_OK = None, 
                     callback_Cancel = None, 
                     callback_Apply = None)
      feature: object to attach/modify. If None is supplied, the object is taken from 
      selection.
      take_selection: if True, current selection is filled into first references (but only 
      if object to be attached doesn't have any references already)
      create_transaction = if False, no undo transaction operations will be done by the 
      dialog (consequently, canceling the dialog will not reset the feature to original 
      state).
      callback_OK: function to be called upon OK. Invoked after writing values to feature, 
      committing transaction and closing the dialog.
      callback_Cancel: called after closing the dialog and aborting transaction.
      callback_Apply: invoked after writing values to feature.'''
      
      import AttachmentEditor.TaskAttachmentEditor as TaskAttachmentEditor
      global taskd # exposing to outside, for ease of debugging
      if feature is None:
          feature = Gui.Selection.getSelectionEx()[0].Object
      
      try:
          taskd = TaskAttachmentEditor.AttachmentEditorTaskPanel(feature, 
                                                                 take_selection= take_selection, 
                                                                 create_transaction= create_transaction,
                                                                 callback_OK= callback_OK, 
                                                                 callback_Cancel= callback_Cancel,
                                                                 callback_Apply= callback_Apply)
          Gui.Control.showDialog(taskd)
      except TaskAttachmentEditor.CancelError:
          pass
function_tokens: def editAttachment ( feature = None , take_selection = False , create_transaction = True , callback_OK = None , callback_Cancel = None , callback_Apply = None ) : import AttachmentEditor . TaskAttachmentEditor as TaskAttachmentEditor global taskd # exposing to outside, for ease of debugging if feature is None : feature = Gui . Selection . getSelectionEx ( ) [ 0 ] . Object try : taskd = TaskAttachmentEditor . AttachmentEditorTaskPanel ( feature , take_selection = take_selection , create_transaction = create_transaction , callback_OK = callback_OK , callback_Cancel = callback_Cancel , callback_Apply = callback_Apply ) Gui . Control . showDialog ( taskd ) except TaskAttachmentEditor . CancelError : pass