Pages: 1
- Sujet précédent - erreur "objects this class cannot be ..." dans la topologie - Sujet suivant
#1 Sun 19 September 2010 17:39
- geogeek
- Juste Inscrit !
- Date d'inscription: 19 Aug 2010
- Messages: 6
erreur "objects this class cannot be ..." dans la topologie
salut,
aprés que j'ai presque fini un projet développé sur ARCGIS ENGINE 9.3 donc toutes les opérations d'éditions marchent très bien, j'ai décidé d'ajouter des topologies, mais lorsque j'essaie de créer une object de couche qui participe dans la topologie, je me trouve avec un erreur "objects this class cannot be updated outside an edit session [la couche]" le même erreur survient quand j'ai essayé d'ajouter un geometric network
tandis que dans le code j'ouvre une session d'édition avec pWorkspaceEdit.StartEditOperation()
y a t-il une solution pour ce problème ??
merci pour toute proposition
merci d'avance
Hors ligne
#2 Mon 20 September 2010 12:54
- geogeek
- Juste Inscrit !
- Date d'inscription: 19 Aug 2010
- Messages: 6
Re: erreur "objects this class cannot be ..." dans la topologie
je pense que j'ai trouvé une partie de la solution :
Problem
Xiao Zhou colleagues a business trip editing graphics system reflects the Times "Objects in this class cannot be updated outside an edit session" error, the problem I found the next line is I find out the reasons for, and Oh! Procedural issues.
When a feature class participated in a topology (or Geometry Network) after the implementation of the feature classes to create elements, modify graphic elements or attributes may appear in this exception: 'Objects in this class cannot be updated outside an edit session'
Reason
This is due to ArcEngine License to use the application due to insufficient permissions. In ArcEngine application which need to be edited by ArcSDE License'ArcGIS Engine Enterprise Geodatabase ', or ArcEditor, or ArcInfo.
Solution
In ArcEngine application LicenseInitializer.InitializeApplication in the process increase the Geodatabase editing privileges.
Public As Boolean
'... ...
licenseStatus = CheckOutLicensesesriLicenseProductCode.esriLicenseProductCodeEngineGeoDB
licenseStatus = CheckOutLicensesesriLicenseProductCode.esriLicenseProductCodeEngine
'... ...
End Function
As my colleagues in the field mission, the program can not modify, remove topological rules wrong, but this bug is to be submitted.
cet article est traduit du lien http://blog.chinaunix.net/u/15722/showart_1777805.html
mais j'ai pas su comment insérer ces deux lignes dans la dite fonction pour augmenter les privilèges tandis que la même fonction dans le projet est :
Public Function InitializeApplication(ByVal productCodes As esriLicenseProductCode(), ByVal extensionLics() As esriLicenseExtensionCode) As Boolean
'Cache product codes by enum int so can be sorted without custom sorter
m_requestedProducts = New List(Of Integer)()
For Each code As esriLicenseProductCode In productCodes
Dim requestCodeNum As Integer = CInt(code)
If Not m_requestedProducts.Contains(requestCodeNum) Then
m_requestedProducts.Add(requestCodeNum)
End If
Next
AddExtensions(extensionLics)
Return Initialize()
End Function
merci pour toute proposition
Hors ligne
Pages: 1
- Sujet précédent - erreur "objects this class cannot be ..." dans la topologie - Sujet suivant