POST
|
hi, if I remember it's : if (map.get_Layer(i) is ESRI.ArcGIS.Carto.IGroupLayer) you can use this link to compare VB and C#, if you need to translate code : http://www.harding.edu/fmccown/vbnet_csharp_comparison.html Vincent
... View more
04-29-2011
04:54 AM
|
0
|
0
|
645
|
POST
|
Hi, ICommandItem.Style will give you the information for arcmap desktop. IToolbarItem.Style will give you the information for ArcEngine. I think you just need to define Style property when you create your toolbar Vincent
... View more
11-18-2010
08:15 AM
|
0
|
0
|
510
|
POST
|
hi, i never used it, but if i read doc, it could be something like this :
dim test as IExportOperation = new ExportOperation()
dim itfDatasetName as IDatasetName = test.GetOptions(featureClass, "Your layer name", False, False, 0, true, esriExportTableOptions.esriExportAllRecords)
test.ExportFeatureClass(itfDatasetName, nothing, nothing, GeoDefFeaturclass, OutFeatureClassName,0) Vincent
... View more
11-14-2010
07:52 AM
|
0
|
0
|
126
|
POST
|
Hi, you should get your feature from a cursor with a queryfilter. From your searched feature, you can get x,y with feature's envelope Vincent
... View more
11-11-2010
07:59 AM
|
0
|
0
|
116
|
POST
|
I'm pretty sure my syntax is not correct here. Can someone verify and let me know? SECT, RDIR, RNG, TDIR, and TWP are all string values. spatialFilter.WhereClause = "SECT = '" + featureID + "' AND RDIR = '" + RDIR + "' AND RNG = '" + RNG + "' TDIR = '" + TDIR + "' TWP = '" + TWP; thank you.. Hi, som "AND" word are missing "' AND TDIR = '" + TDIR + "' AND TWP = '" + TWP
... View more
11-02-2010
06:46 AM
|
0
|
0
|
217
|
POST
|
hi, replace "open" by "openfromfile" ouputWorkspace = outputWorkspaceFactory.OpenFromFile(outputfilePath, 0); Vincent N.B. in workspacefactory documentation you can find this note: "The "DATABASE" property is optional and is required for ArcSDE instances that manage multiple databases (for example, SQL Server)." Not your case.
... View more
11-01-2010
08:41 AM
|
0
|
0
|
179
|
POST
|
Hi Uday, be sure you created your extensionclass class with this link : http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/6caed32d-8baf-4771-8bb4-2f350b7f0d7a.htm After this, implement IRelatedObjectClassEvents2 in this class. Add GUI from this class to your EXTCLSID (and not CLSID) field in "GDB_ObjectClasses". (ex: MainFeatureClass = {123456-...}, related table = {123456-...}) Be sure your extension was correctly registered. With this, RelatedObjectChanged should be fire when you modify a data in related table. Vincent P.S. I don't think i forgot something, but it's possible. I wrote this by memory.
... View more
10-12-2010
04:53 AM
|
0
|
0
|
577
|
POST
|
You're right James, i was talking about IRelatedObjectClassEvents2 and RelatedObjectChanged event, sorry. James's links are good. But what i'm saying, it's from James's link : http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/6caed32d-8baf-4771-8bb4-2f350b7f0d7a.htm you need to add the class extension GUID of your featureClass to your related table. In a PGDB you will find this in EXTCLSID field of a "GDB_" table. But in FGDB you can't do this manually. That's why you need to use "ChangeClassExtension" method from the James's link. You need to add GUID of your featureclass, and use same GUID for your related table to this featureclass. When you are leaving you FGDB and want use your featureclass outside of your extension, don't forget to remove EXTCLSID from your Featureclass and related table, else you will not be able to open your featureclass. Just pass an empty GUID to "ChangeClassExtension" method. that worked fine for me. Vincent
... View more
10-07-2010
07:25 PM
|
0
|
0
|
577
|
POST
|
Hi, you must set the same EXTCLSID for your FeatureClass and your related table in your geodatabase. Vincent
... View more
10-07-2010
08:08 AM
|
0
|
0
|
577
|
POST
|
Hi, maybe you need to compile your project with x86 . Replace "Any CPU" by "X86" in your project property. Vincent
... View more
09-15-2010
11:41 AM
|
0
|
0
|
285
|
POST
|
Hi, do you have same error! if not,your problem is maybe in your Create event of your extensionclass. When "Store" is called Create event is fire. If your Create event is not fire, be sure your related table got same EXTCLSID of your FeatureClass, with this Create event will be call.
... View more
09-15-2010
06:45 AM
|
0
|
0
|
552
|
POST
|
here code in C# to zoom on your element. will not probably work in your code, but technic is the same. public static void ZoomIn(IMxDocument _itfMxDocument,
IGeometry _itfGeometrie)
{
if (_itfGeometrie != null)
{
IEnvelope itfEnveloppe = _itfGeometrie.Envelope;
_itfMxDocument.ActiveView.Extent = itfEnveloppe;
_itfMxDocument.ActiveView.Refresh();
}
} Esri example is : Dim dX As Double, dY As Double
dX = 1
dY = 1
Dim pPoint As IPoint
pPoint = New PointClass
pPoint.PutCoords(dX, dY)
AxMapControl1.CenterAt(pPoint) maybe use PutCoords to add your coordinate in your point objet. Vincent
... View more
09-13-2010
08:44 AM
|
0
|
0
|
248
|
POST
|
hi, i already tried to do that 1 year ago, but never succeed to costumize the attribute context menu. You can modify content of Attribute window with "IObjectInspector" in an extensionClass, but i don't think you can manage context menu. you can also manage children table with IRelatedObjectClassEvents2 in attribute window but maybe i'm wrong about context menu. Vincent
... View more
09-10-2010
10:40 AM
|
1
|
0
|
165
|
POST
|
hi, did you tried update cursor. Set pTabCursor = pStTab.Table.update(Nothing, false)
Set pRow = pTabCursor.NextRow
While Not pRow Is Nothing
Set pPoint = New Point
pPoint.x = pRow.Value(10)
Debug.Print pPoint.x
pPoint.y = pRow.Value(11)
pPoint.PutCoords pRow.Value(10), pRow.Value(11)
pPoint.Project pGCS
pRow.Value(12) = pPoint.y
pRow.Value(13) = pPoint.x
pTabCursor.UpdateRow(pRow)
Set pRow = pTabCursor.NextRow
Wend
... View more
09-06-2010
07:44 AM
|
0
|
0
|
456
|
POST
|
Hi, be sure you compile your code with x86 propertie and not Any CPU propertie. You need this to run your application on a 64 bit machine. Vincent
... View more
08-20-2010
12:12 PM
|
0
|
0
|
717
|
Title | Kudos | Posted |
---|---|---|
1 | 09-10-2010 10:40 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|