Tag Info

Hot answers tagged

3

Looks like this is what you are looking for: http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0048000001s1000000 System.Threading.Thread.CurrentThread.CurrentUICulture


3

Yes there is (in fact you have a choice of a property or an event to hook into): The IApplicationStatus.Initialized property changes once the application is fully initialized, and the IApplicationStatusEvents.Initialized event fires as well. It is suggested that UI changes from Add-ins only occur after application initialization, so this is just the hook ...


3

Arcobjects has two interfaces to join multiple FeatureClasses and (or) Tables: Query tables (IQueryDef) RelQueryTables The result of your join can be added to the map as a Layer if the result has a geometry column. Make sure to read this Page to check the differences of two and select the one that suites your needs


2

The easiest way to loop through layers in ArcMap is to use IEnumLayer. You get a reference to that from IMap.Layers. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000482000000 Then check the type and cast each raster layer returned by the enumerator to IRasterLayer. ...


2

Changing text fields length needs an exclusive schema lock on the dataset. Exclusive schema locks—In contrast to shared schema locks, exclusive schema locks are controlled by the developer or ArcGIS application, such as ArcMap or ArcCatalog. An exclusive lock is used to lock a geodatabase dataset or object from use by others to make the necessary ...


1

Further to Dan's answer on enumerating layers... with the UID.Value of IRasterLayer (see example UIDs here) supplied to the get_layers function you don't need to check later that it is a raster layer you're playing with, however sometimes you need to use the UID for IDataLayer which will return feature layers and raster layers, so to check this use: if ...


1

To expand on the comment by @Dan Jurgella... Don't forget to check the properties in the System.Globalization.CultureInfo class. There are static properties in that class, DefaultThreadCurrentCultureand DefaultThreadCurrentUICulture, which could help you. Also depending on what you're doing with languages, it probably wouldn't hurt to be familiar with the ...


1

Ok, I got it to work by going hog-wild with ComReleaser objects. Basically, I scanned through my code, and anytime I found anything that was at all from ArcObjects, I attached a ComReleaser to manage it. Basically, I'm just doing manual memory management. At any rate, it does seem to release the file, so long as EVERYTHING is released (even if it doesn't ...



Only top voted, non community-wiki answers of a minimum length are eligible