Deleting articles by scripting

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:44

Delete active article

  <ShellCommand(CanExecute:="Ena_IsEditingArticleText")> _

  Public Overridable Sub ArtSpike()

    If Fred.HasActiveArticle Then

      ActiveArticle.Spike()

    End If

End Sub

Note: this method displays the dialog box.

Delete article by id silently

Dim login As EditorialLogin = Editorial.EditorialLogin.Get()

login.ArticleObjSpike(selectedobject.Id, NothingFalse)

ApplicationBase.Current.RaiseInternalAlert(GNClient.TriggerCause.Create, "article", selectedobject.Id)

Note: SpikeSelectedObjects won't work with articles because of geometry reference.