hello. big prob..
the command BindXrefs work fine if i use
<CommandMethod("ProgAR")> _
but not working if if use :
<CommandMethod("ProgAR", CommandFlags.Session)> _
in this i have added the lockdocument for all transaction.
but this code not work... :
If CollIdXref.Count > 0 Then
Try
dwg.Database.BindXrefs(CollIdXref, True)
Catch ex As Exception
okErr = True
MsgBox("Erreur lors de la liaison des Xref" & vbCrLf & "--> Essayer de lier le premier niveau", _
vbOKOnly & vbCritical, _
"Erreur Système")
End Try
End If
i have adde this :
Dim LockDoc As DocumentLock = dwg.LockDocument
and after :
LockDoc.Dispose()
LockDoc = Nothing
but not working. the xref is not bind....
Anyone know why ?
i dont catch exexption for lock error....
HI i have added the trans.commit() so the action of BindXref or Purge() is valide and take effect....
Tnaks for me 🙂