Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all 1374 articles
Browse latest View live

Save Mxd Document using C# code

$
0
0
Hi My requirement is to Open an Arc map application and close it automatically through C# coding.

For that I Wrote below code

IDocument pDoc = new MxDocumentClass();
pApp = pDoc.Parent;
pApp.OpenDocument(sMxdFileName);

if (pApp != null)
{

pApp.Shutdown();
}
// pApp.saveDocument is not working

Everything is fine , But before shutdown statement is executing , In Map same dialog box like save changes to Mxd and Yes or No Buttons are avaialble there. We should able to handle that control also through coding before execute the Shutdoen statement.i.e we should close the document opened with affected changes.

can u please suggest me the code for that

How to display point features w.r.t field values of a polygon file in arcgis 9.3.1 ?

$
0
0
I have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate this two fields respectively (Fig)

Attachment 23756

What i like to do is.......If i select school & Zn2 in the comboboxes and click the "Show" button...... only schools which fall under the Zn2 polygon should be displayed. I m a newbie to both arcobjects & to this forum. Any sort of comment will be of a great help. Trying it for the past two days

(ArcGIS Version 9.3.1, VBA )
Attached Thumbnails
Click image for larger version

Name:	stackex.PNG‎
Views:	N/A
Size:	4.1 KB
ID:	23756  

Question regarding Using directives

$
0
0
Getting started in ArcObjects 10.1 SDK...

Within Visual Studio 2010, I entered in the following for Using directives:
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.Desktop;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Framework;

I tried creating an IMaps variable by entering:
IMaps pMaps = pMxDocument.Maps;

But I am getting an error "The type or namespace name 'IMaps' could not be found (are you missing a using directive or an assembly reference?)". Based on Intellisense, I don't see what other directives I should use. This seems like it should have an obvious answer which I am missing.

System.IO.FileNotFoundException was unhandled

$
0
0
Hi.

I am trying to migrate a console application from 9.3.1 to 10.1 but dont know this is giving an System.IO.FileNotFoundException was unhandled error.Please help anyone..

I have tried below web but no help so far.
http://resources.arcgis.com/en/help/...000002ns000000



-------------------------------------------------------------------------------------------------------------------------------
System.IO.FileNotFoundException was unhandled
Message=Could not load file or assembly 'ESRI.ArcGIS.System, Version=9.3.0.1770, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified.
Source=USNG
FileName=ESRI.ArcGIS.System, Version=9.3.0.1770, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86
FusionLog==== Pre-bind state information ===

LOG: DisplayName = ESRI.ArcGIS.System, Version=9.3.0.1770, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86
(Fully-specified)
LOG: Appbase = file:///P:/batch/J716120/USNG_1_0_0_2_DEV/USNG_Code/USNG/bin/Debug/
LOG: Initial PrivatePath = NULL

===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: ESRI.ArcGIS.System, Version=9.3.0.1770, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86

StackTrace:

at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:



-----------------------------------------------------------------------------------------------------------------------------

error BC30456: 'esriLicenseProductCodeArcView' is not a member of 'ESRI.ArcGIS.esriSystem.esriLicenseProductCode'.

----------------------------------------------------------------------------------------------------------------------------

Convert GraphicsLayer to Annotation Feature Layer

$
0
0
Namaste,
I am trying to create an Annotation Feature Layer from a GraphicsLayer. I have used CompositeGraphicsLayer to create the IGraphicsLayer and have drawn some graphic elements on it (Triangle Element, Line element etc). Trying to convert graphics layer into Annotation Feature Layer using the below code, but I am getting an exception "Object reference not set to an instance of an object" at the mentioned line below. Request someone to please help me in solving this issue or provide me with sample code to convert Graphics Layer to Annotation Layer.

IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspaceFactory.OpenFromFile(@"J:\GIS\DGN\PersonalGDB.mdb", 0);
ISpatialReferenceFactory3 spRefFact = new SpatialReferenceEnvironmentClass();
ISpatialReference spatialReference = spRefFact.CreateESRISpatialReferenceFromPRJFile(@"J:\GIS\DGN\56k.prj");
m_mapControl.SpatialReference = spatialReference;

IFeatureClass pAnnoFeatureClass = CreateStandardAnnotationClass(featureWorkspace, null, "ANNO_LAYER1001", m_mapControl.SpatialReference, 1, esriUnits.esriDecimalDegrees, "");
IFeature pFeature; //= pAnnoFeatureClass.CreateFeature();
IFeatureCursor pFCursor;
pFCursor = pAnnoFeatureClass.Update(null, false);
IAnnotationFeature pAnnoFeature ;//= pFeature as IAnnotationFeature;
IGraphicsContainer pGrContainer = layer as IGraphicsContainer;
pGrContainer.Reset();
IElement element = pGrContainer.Next();
// IGraphicElement pGraphicElement;
pFeature = pFCursor.NextFeature();
while (element != null)
{
// pGraphicElement = element as IGraphicElement;
//pGrElement.SpatialReference = m_mapControl.SpatialReference;
//pAnnoFeature.Annotation = pGraphicElement as IElement;
//(pAnnoFeature as IFeature).Store();
element.Geometry.SpatialReference = m_mapControl.SpatialReference;
pAnnoFeature = pFeature as IAnnotationFeature;
// pGraphicElement = pAnnoFeature.Annotation as IGraphicElement;
// pGraphicElement.SpatialReference = m_mapControl.SpatialReference;

// EXCEPTION : Object reference not set to an instance of an object
pAnnoFeature.Annotation = element; //pGraphicElement as IElement;
pFCursor.UpdateFeature(pAnnoFeature as IFeature);

pFeature = pFCursor.NextFeature();
element = pGrContainer.Next();
}

//**********************************************************
I have used the same CreateStandardAnnotationClass example provided in the "Creating annotation and dimension feature classes" in ESRI Help to create Annotation Feature Class.

public IFeatureClass CreateStandardAnnotationClass(IFeatureWorkspace featureWorkspace, IFeatureDataset featureDataset,
string className, ISpatialReference spatialReference, int referenceScale, esriUnits
referenceScaleUnits, string configKeyword)
{
// Create an annotation class and provide it with a name.
ILabelEngineLayerProperties labelEngineLayerProperties = new LabelEngineLayerPropertiesClass();
IAnnotateLayerProperties annotateLayerProperties = (IAnnotateLayerProperties) labelEngineLayerProperties;
annotateLayerProperties.Class = "Annotation Class 1";

// Get the symbol from the annotation class. Make any changes to its properties
// here.
ITextSymbol annotationTextSymbol = labelEngineLayerProperties.Symbol;
ISymbol annotationSymbol = (ISymbol)annotationTextSymbol;

// Create a symbol collection and add the default symbol from the
// annotation class to the collection. Assign the resulting symbol ID
// to the annotation class.
ISymbolCollection symbolCollection = new SymbolCollectionClass();
ISymbolCollection2 symbolCollection2 = (ISymbolCollection2)symbolCollection;
ISymbolIdentifier2 symbolIdentifier2 = null;
symbolCollection2.AddSymbol(annotationSymbol, "Annotation Class 1", out symbolIdentifier2);
labelEngineLayerProperties.SymbolID = symbolIdentifier2.ID;

// Add the annotation class to a collection.
IAnnotateLayerPropertiesCollection annotateLayerPropsCollection = new AnnotateLayerPropertiesCollectionClass();
annotateLayerPropsCollection.Add(annotateLayerProperties);

// Create a graphics layer scale object.
IGraphicsLayerScale graphicsLayerScale = new GraphicsLayerScaleClass();
graphicsLayerScale.ReferenceScale = referenceScale;
graphicsLayerScale.Units = referenceScaleUnits;

// Create the overposter properties for the standard label engine.
IOverposterProperties overposterProperties = new BasicOverposterPropertiesClass();


// Instantiate a class description object.
IObjectClassDescription ocDescription = new AnnotationFeatureClassDescriptionClass();
IFeatureClassDescription fcDescription = (IFeatureClassDescription)ocDescription;

// Get the shape field from the class description's required fields.
IFields requiredFields = ocDescription.RequiredFields;
int shapeFieldIndex = requiredFields.FindField(fcDescription.ShapeFieldName);
IField shapeField = requiredFields.get_Field(shapeFieldIndex);
IGeometryDef geometryDef = shapeField.GeometryDef;
IGeometryDefEdit geometryDefEdit = (IGeometryDefEdit)geometryDef;
geometryDefEdit.SpatialReference_2 = spatialReference;

// Create the annotation layer factory.
IAnnotationLayerFactory annotationLayerFactory = new FDOGraphicsLayerFactoryClass();

// Create the annotation feature class and an annotation layer for it.
IAnnotationLayer annotationLayer = annotationLayerFactory.CreateAnnotationLayer
(featureWorkspace, featureDataset, className, geometryDef, null,
annotateLayerPropsCollection, graphicsLayerScale, symbolCollection, false,
false, false, true, overposterProperties, configKeyword);

// Get the feature class from the feature layer.
IFeatureLayer featureLayer = (IFeatureLayer)annotationLayer;
IFeatureClass featureClass = featureLayer.FeatureClass;

return featureClass;
}

Line simplification

$
0
0
Hi

i'm developping an arcgis tool allowing :
* least cost route computation (cost path functions) (already done);
* simplification (weeding) of the result polyline using constraints (to be done!!).

The second point seems to be very hard because i have to respect constraints like :
* start alignment (distance fixed by user);
* end alignment (distance fixed by user) ;
* use of circle arcs with constant radius for curves (radius fixed by the user) ;
* alignment between curves (distance fixed by user);
And of course all modification of the polyline result must not cross the exclusion zones defined in the first stage.
Is there any library allowing this type of computation ?
Developements are made for AcGIS 10.0 with VS 2010 (c#)
Thanks in advance
Regards

How to use ArcMap Existing Command in C# .Net(Arcobject).

$
0
0
Hi All,

My name is Madan Burathi, I am new in Arcobject can any one please tell me how convert following VBA code to C# code.
Actually my intention is how to use Arcmap existing commands in .Net Environment. It will be a great help.


Dim pCommandItem As ICommandItem
Set pCommandItem = ThisDocument.CommandBars.Find(ArcID.Query_ZoomToSelected)
If (pCommandItem Is Nothing) Then Exit Sub
pCommandItem.Execute



Regards
Madan Burathi
Software Developer.

CreateESRISpatialReferenceFromPRJ returns The input is not a workstation prj

$
0
0
Hi,

Im getting the following error while trying to execute CreateESRISpatialReferenceFromPRJ(string prjString).
But when im using CreateESRISpatialReferenceFromPRJFile(string prjFile) with the same prj string in the file it works fine.

What does this exception means;
"the input is not a workstation prj"

Thanks,
Tom

Problem getting IComPropertyPage2 (EditorExtension) to register

$
0
0
This has been an on-going problem and decided to tackle it as I am recompiling the ArcGIS 10 code for Windows 7. I have a EditorExtension class that implements IComPropertyPage2 for the purpose of adding a tab to the EditorExtension which listens for whether the user wants to invoke the extension or not.

This is set up as an msi (for now) and when the tlb is added, the commands are registered and added properly. However, the EditorExtension is usually hit or miss and the workaround has sometimes been to go into Categories and click Category Importer. That usually works but now in Windows 7, I can't even do that. The object simply does not show up in ESRI Editor Extension.

The code is fairly old but wonder if something is fundamentally wrong or is there now a better way of doing this? How do I get it to consistently register the EditorExtension upon install?

[Guid("8ED2FF58-AAD3-48fe-9A76-182D53D964B6")]
[ClassInterface(ClassInterfaceType.None)]
[ProgId("CSUEditorExtension.EditorPropertyPage")]
public class EditorPropertyPage : ESRI.ArcGIS.Framework.IComPropertyPage2
{
public EditorPropertyPage()
{
}

#region Class Variables
private Boolean m_pageDirty;
private IComPropertyPageSite m_propPageSite;
private frmEditorExtension m_frmCSU;
private CSU.ArcGIS.AddPtrInterface.AddPtrInterface m_CSUExtension;
private const String m_sVersionEnabled = "Enabled";
private const String m_sVersionDisabled = "Disabled";
private const String m_CSUExtensionGUID = "{DEF7F6B1-B483-430D-970C-47C2E3398F5D}";
#endregion

#region COM Registration Function(s)
[ComRegisterFunction()]
[ComVisible(false)]
static void RegisterFunction(Type registerType)
{
// Required for ArcGIS Component Category Registrar support
ArcGISCategoryRegistration(registerType);

//
// TODO: Add any COM registration code here
//
}

[ComUnregisterFunction()]
[ComVisible(false)]
static void UnregisterFunction(Type registerType)
{
// Required for ArcGIS Component Category Registrar support
ArcGISCategoryUnregistration(registerType);

//
// TODO: Add any COM unregistration code here
//
}

#region ArcGIS Component Category Registrar generated code
/// <summary>
/// Required method for ArcGIS Component Category registration -
/// Do not modify the contents of this method with the code editor.
/// </summary>
private static void ArcGISCategoryRegistration(Type registerType)
{
string regKey = string.Format("HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}", registerType.GUID);
EditorPropertyPages.Register(regKey);

}
/// <summary>
/// Required method for ArcGIS Component Category unregistration -
/// Do not modify the contents of this method with the code editor.
/// </summary>
private static void ArcGISCategoryUnregistration(Type registerType)
{
string regKey = string.Format("HKEY_CLASSES_ROOT\\CLSID\\{{{0}}}", registerType.GUID);
EditorPropertyPages.Unregister(regKey);
}

#endregion
#endregion

ArcMap window size

$
0
0
I need to draw on the ArcMap window - but I have two questions:

(1) How to know the size in pixels of the ArcMap window? I need to know the size of the area where ArcMap renders the map.
(2) I also need to know how to transform coordinates to and from the local (i.e. screen coordinates of the ArcMap) and Map coordinates.

Will appreciate any help on the above!

How to programmatically change colors of CadAnnotationLayer?

$
0
0
I need to add Annotation layer from CAD file to arcmap. Unfortunately all annotations have different colors, but they must be represented in black. I've tried some methods to do it like this:

CadAnnotationLayerClass newlayer = new CadAnnotationLayerClass();
newlayer.DataSourceType = "CAD Annotation Feature Class";
newlayer.Name = "Annotations";


newlayer.FeatureClass = pFeatureWorkspace.OpenFeatureClass(System.String.Concat(fc_name,
":Annotation")); ;
//newlayer.NextFeatureAndGraphic(
ICoverageAnnotationLayer pCALayer = newlayer as ICoverageAnnotationLayer;

RgbColorClass color = new RgbColorClass();
color.Red=0;
color.Green=0;
color.Blue=0;
color.Transparency = 255;
ESRI.ArcGIS.DataSourcesFile.ICadDrawingLayers pCadDwgLayers =
(ESRI.ArcGIS.DataSourcesFile.ICadDrawingLayers)newlayer;
string colors="";




int symbolcount = pCALayer.SymbolCount;

for (int i = 0; i < symbolcount; i++)
{
//newlayer.f


pCALayer.set_FontColor(i, color);
pCALayer.TextSymbol[i].Color = color;



//newlayer.TextSymbol[i].Color.ToString();

}

but the colors of the annotations did not change. Can anyone help me with that annoying problem&

How can I sign an Addin with signtool?

$
0
0
Hello,
I am trying to sign an AddIn. I cannot easily use the ESRISignAddIn utility, because our ArcMap license is not on the same computer as the one with our certificates. So I tried to use signtool on the certificate computer, like this:

I moved the dll files of my AddIn to the certificate computer, where I signed them with signtool. Then I moved them back to the ArcMap computer. I opened the the .esriaddin file in WinZip, removed the unsigned dll files, and inserted their signed variants.

Now, when I check the properties of the dll files, they have been successfully signed.

But when double-clicking the modified .esriaddin file, the ESRI ArcGIS Add-In Installation Utility still claims that

"This Add-In file is not digitally signed".

So it is not enough that the dll files are signed. But as far as I know, the signtool command can only sign dll files, exe files, and few other kinds of files, not an entire .esriaddin file.

Any advice would be welcome.

Can a halo be added to a text element which is added to a graphic container?

$
0
0
Is there a way to programmatically add a halo to text elements that are being added to a graphic container?

Here's a sample of my code:

//
// --- Obtani the area of the polygon to get the centroid of it
//
IArea areaOfPolygon = (IArea)polygonEnvelope;
IPoint TextPoint = new PointClass();
TextPoint = areaOfPolygon.Centroid;
//
// --- Create text symbol
//
System.Drawing.Font textDrawFont = new System.Drawing.Font("Arial", 8F, FontStyle.Bold);
ESRI.ArcGIS.Display.ITextSymbol textFontSymbol = new ESRI.ArcGIS.Display.TextSymbolClass() as ESRI.ArcGIS.Display.ITextSymbol;
//
// --- Supply font property values
//
textFontSymbol.Font = ESRI.ArcGIS.ADF.COMSupport.OLE.GetIFontDispFromFont(textDrawFont) as stdole.IFontDisp;
textFontSymbol.Font.Size = 24;
textFontSymbol.Font.Bold = true;
textFontSymbol.Angle = 0.0;
textFontSymbol.Color = rgbTextColor;
//
// --- Text to be added to the graphic container
//
String sPolygonText = "Need Halo around text";
//
// --- Add text element and set properties
//
ITextElement textElement = new TextElementClass();
textElement.Text = sPolygonText;
textElement.Symbol = textFontSymbol;
//
// --- Create element, set property & add to graphic container
//
element = textElement as IElement;
element.Geometry = TextPoint;
//
// --- Cast Element to Element Property in order to give it a name
//
ESRI.ArcGIS.Carto.IElementProperties3 pTextElementProps = element as ESRI.ArcGIS.Carto.IElementProperties3;
pTextElementProps.Name = "OKC_Search";
//
// --- Add graphic text element to graphic container
//
currentGraphicsContainer.AddElement(element, 0);
//

How to modify ESRI.ArcGIS.Geometry.IPoint to get decimal degrees?

$
0
0
Hi All,
I think I have a simple question. This code returns the XY of the point clicked in feet. I would like to get it in decimal degrees. How would I modify the code?

Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace ArcMapAddin1
{
    public class HyperlinkIStreet : ESRI.ArcGIS.Desktop.AddIns.Tool
    {
        public HyperlinkIStreet()
        {
        }

        protected override void OnUpdate()
        {
        }
    //private const string USER_PROMPT_3 = "Are you sure you want to hyperlink to IStreetView?";
    private const string CAPTION_3 = "Hyperlink to IStreet";
    protected override void OnMouseDown(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg)
{
    //var result = System.Windows.Forms.MessageBox.Show(USER_PROMPT_3, CAPTION_3,
    //      System.Windows.Forms.MessageBoxButtons.YesNo,
    //      System.Windows.Forms.MessageBoxIcon.Question);
    //if (result == System.Windows.Forms.DialogResult.Yes)
    {
        //Get coordinates from MouseEventArgs
        ESRI.ArcGIS.ArcMapUI.IMxDocument mxDoc = ArcMap.Document;
        ESRI.ArcGIS.Carto.IActiveView activeView = mxDoc.FocusMap as ESRI.ArcGIS.Carto.IActiveView;
        ESRI.ArcGIS.Geometry.IPoint point = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(arg.X, arg.Y) as ESRI.ArcGIS.Geometry.IPoint;
        //Open IStreetView in default browser
        System.Diagnostics.Process.Start("http://maps.google.com/maps?q=&layer=c&cbll="
            + point.X + "," + point.Y + "&cbp=12,100,0,0,0&output=svembed&t=m&z=17");
    }
}
       

       
    }

}

Robust way for testing geometric equivalence

$
0
0
Hi all,

Can I please get some advice as to how to use IRelationalOperator on geometries from different layers with different spatial references? I have a routine which gets a test and base feature cursor from 2 layers and then iterates through each feature in the test cursor and compares it to each feature in the base cursor using IRelationalOperator::Equals to determine if a match is found. This works perfectly if the features have the same spatial reference. However if I get the same layer and export it into a different spatial reference then the routine will return False for all features.

I have tried assigning the IFeautre:Shapecopy to an IGeometry, setting the .Spatial Reference and then calling IGeometry::Project but still am not having any luck.

Any advice is appreciated.

Thanks guys

identify tool using arcobject

$
0
0
Hi there
I am using arcobject sdk 10.1. I have a map layer open in ARCMAP and i wish that on click event i can read the fields assoicated with the attribute table of the layer in the map something like identify tool. or in other words i want to know how can i use the identify tool in arcobject sdk. i am using visual studio 2010 and c sharp.thanks
nadeem

Populating ListView From shapefile

$
0
0
Hi,
I have a listview in my form I need to populate with the selected feature record, my code fill all the field in one columns, I need to show only 5 columns in my listview. here is my code so far.

Code:

Dim nCols As Integer

            nCols = pFeature.Fields.FieldCount

            For i = 2 To nCols - 1

                Me.Listsheet.Items.Add(pFeature.Fields.Field(i).Name)
                Me.Listsheet.Items.Add(pFeature.Value(i))


            Next

Regards
Attached Thumbnails
Click image for larger version

Name:	listview.jpg‎
Views:	N/A
Size:	17.8 KB
ID:	23897  

time enabled layer throug ARCobject DOTNET SDK

$
0
0
I am using ARCObject SDK 10.1 to develop a Add-in to display time enabled layer. I. following is the code that i used to dispaly time enable data layer on every second.
While my following code is work good . however there is a a problem which is not clear. when i run the following code than i assume that on every second it should display one point , but contrary to this it actually displays two point. I called this method on a timer event with values form 1 to 100. it is working but it is displaying two points as shown in the figure. I have used this code from ESRI samples. Any suggestion please.


public void UpdateCurrentTime(double progress)
{
if (progress <= 0)
progress = 0.05;
else if (progress >= 100)
progress = 0.95;


//Calculate how far into the layer to jump
ITimeDuration offsetToNewCurrentTime = m_myLayerTimeExtent.QueryTimeDuration();


offsetToNewCurrentTime.Scale(progress);

IMxDocument pMxDoc = ArcMap.Document;
IMap pMap = pMxDoc.FocusMap;
IActiveView pActiveView = pMap as IActiveView;
IScreenDisplay pScreenDisplay = pActiveView.ScreenDisplay;
ITimeDisplay pTimeDisplay = pScreenDisplay as ITimeDisplay;

ITime startTime = m_myLayerTimeExtent.StartTime;
ITime endTime = (ITime)((IClone)startTime).Clone();
((ITimeOffsetOperator)endTime).AddDuration(m_layerInterval);
ITimeExtent pTimeExt = new TimeExtentClass();
pTimeExt.SetExtent(startTime, endTime);
pTimeExt.Empty = false;
((ITimeOffsetOperator)pTimeExt).AddDuration(offsetToNewCurrentTime);



pTimeDisplay.TimeValue = pTimeExt as ITimeValue;

pActiveView.Refresh();

}

protected override void OnUpdate()
{
Enabled = true;
}
}
}

Att Items From Attribute Table To Combobox

$
0
0
Hello Experts,

I am working on a Project that includes homes with customers and some specialities of buildings in attribute table.

First Of All I want to make a queries with using customers' names to zoom in customers' houses. I want to add customer name attributes from table to combobox and display selected features on map with zooming. (customer's names will take part in joined table)

Secondly i would like to add new attribute queries if requires. (not required but if i can i will query like "select from attributes" Customer Name: Tolga Ozdemir Floors: 3 etc.)

How can i perform with using Visual Basic for adding my attributes (customers name) to combobox? I have been searching for sample codes but i couldn't find it clearly.

Thanks for your help.

Tolga Ozdemir

How to replace obsolete class?

$
0
0
For insert records in Featureclass I use:

Using comReleaser As ESRI.ArcGIS.ADF.ComReleaser = New ESRI.ArcGIS.ADF.ComReleaser()
comReleaser.ManageLifetime(featureBuffer)
comReleaser.ManageLifetime(insertCursor)


I get the Warning : 'ESRI.ArcGIS.ADF.ComReleaser' is obsolete: 'The assembly containing this class is obsolete. Reference the ESRI.ArcGIS.ADF.Connection.Local assembly instead.'.

How to replace obsolete class ESRI.ArcGIS.ADF.ComRelease?
Example, please.
Viewing all 1374 articles
Browse latest View live