|
POST
|
http://gis.stackexchange.com/ is now in public beta, and even has some arcobjects questions.
... View more
07-30-2010
08:05 AM
|
0
|
0
|
1235
|
|
POST
|
This sounds like a bug. As a workaround, I'd try IFeatureclassManage.UpdateExtent.
... View more
07-23-2010
08:00 AM
|
0
|
0
|
568
|
|
POST
|
Maybe try IGeometryBridge2.InsertPoints (or AddWKSPoints).
... View more
07-21-2010
08:29 AM
|
0
|
0
|
314
|
|
POST
|
Try following the pattern in the raster subset example, but instead of creating a thread for each raster band, create a thread for each table. http://resources.esri.com/help/9.3/arcgisengine/dotnet/ViewCodePages/a520994c-1b3b-4036-a2ca-89dc76333a16SubsetRasterTool.cs.htm
... View more
07-21-2010
08:25 AM
|
0
|
0
|
435
|
|
POST
|
Did you try IAnnotateLayerPropertiesCollection2.QueryItem instead?
... View more
07-21-2010
06:26 AM
|
0
|
0
|
884
|
|
POST
|
I had originally added the column in SSMS and was playing with it there. If you add a column using arccatalog, it will add a row to the sde_column_registry table - but not if you add it using SSMS. Perhaps the way arcgis converts column values to IField types depends on whether the field is listed in the column registry.
... View more
07-13-2010
11:47 AM
|
0
|
0
|
1230
|
|
POST
|
More config info: I'm running SqlServer 32 bit (x86) on Vista 64 with INT64TYPES false. Why would you want to use a scale of 0 instead of just using an integer field? Anyway, what is your INT64TYPES value set to? By chance did add the DACOUNCIL field using SSMS (instead of ArcCatalog) ? When you look at the DACOUNCIL column in SSMS, what does it show?
... View more
07-13-2010
10:33 AM
|
0
|
0
|
1230
|
|
POST
|
The code below works for me with SqlServer 2008 arcgis 9.3.1 sp1. DField is precision 10 scale 0. Do you get the same error when running from arcmap (without arcgis server?) Maybe it's a dbms driver issue? /// <summary>
/// Occurs when this command is clicked
/// </summary>
public override void OnClick()
{
try
{
IMap map = ((IMxDocument)m_application.Document).FocusMap;
IEnvelope env = ((IActiveView)map).Extent;
env.Expand(0.5, 0.5, true);
ISegmentCollection sc = new PolygonClass();
sc.SetRectangle(env);
IFeatureLayer fLayer = map.get_Layer(0) as IFeatureLayer;
IWorkspace ws = ((IDataset)fLayer.FeatureClass).Workspace;
TestDoubleUpdate(ws,(IPolygon)sc);
((IActiveView)map).Refresh();
}
catch (Exception ex)
{
Debug.Print(ex.Message);
}
}
public static void TestDoubleUpdate(IWorkspace ws, IPolygon polygon)
{
IWorkspaceEdit wse = (IWorkspaceEdit)ws;
IFeatureClass fc = ((IFeatureWorkspace)ws).OpenFeatureClass("mydb.DBO.TestPolys");
wse.StartEditing(false);
wse.StartEditOperation();
IFeature feat = fc.CreateFeature();
feat.Shape = polygon;
feat.set_Value(feat.Fields.FindField("DField"),(Double)14.0);
feat.Store();
wse.StopEditOperation();
wse.StopEditing(true);
}
Update: is the column listed in the sde_column_registry table?
... View more
07-13-2010
09:30 AM
|
0
|
0
|
1228
|
|
POST
|
That's strange ... maybe get the geometry returned by ILegend2.QueryBounds and assign it to IElement.Geometry.
... View more
07-08-2010
08:32 AM
|
0
|
0
|
723
|
|
POST
|
Maybe try calling ITransform2D.Move(0,0) on the legend's mapsurroundframe. If 0,0 doesn't work, try moving twice, once forward, and then backwards.
... View more
07-08-2010
06:25 AM
|
0
|
0
|
723
|
|
POST
|
Are you able to do it interactively? as described here: http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Intermediate%20data%20and%20the%20scratch%20workspace
... View more
07-08-2010
06:23 AM
|
0
|
0
|
1104
|
|
POST
|
see http://gislounge.com/how-to-calculate-the-boundaries-of-an-utm-zone/
... View more
07-07-2010
09:37 AM
|
0
|
0
|
270
|
|
POST
|
Keep in mind a document can have more than one map,. An IExtension could listen for newly added mapframes and initialize a new layer listener when a new map is added. The extension could manage a list of listeners (one for each map in the document). Or it might be easier to just put it in the MapFrames's IElementProperties.CustomProperty, but I'd test to make sure objects are destroyed gracefully when mapframes are deleted. http://forums.esri.com/Thread.asp?c=93&f=993&t=246221&mc=2#752174
... View more
07-06-2010
08:42 AM
|
0
|
0
|
861
|
|
POST
|
Since you are doing this as a survey, it seems like you could have a service running in the background that periodically checks to see if arcmap is running and if so, scan to see what layers the user has in the TOC. The service would be a standalone exe, that uses IAppROT to find arcmap instances, then IDocumentDatasets to list the datasource of each layer in the document to a log file.
... View more
07-06-2010
06:41 AM
|
0
|
0
|
861
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-17-2015 10:41 AM | |
| 2 | 11-15-2012 05:22 AM | |
| 4 | 09-29-2011 08:20 AM | |
| 3 | 12-04-2015 08:50 AM | |
| 1 | 04-08-2010 09:34 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|