POST
|
Hi LawrenceNitz, Could you send the test data to this email address ArcGISEarth_Feedback@esri.com? so we can use it to debug to find out the problem. Thanks, Chao
... View more
03-08-2021
01:27 AM
|
0
|
0
|
384
|
POST
|
I know to set "helpContextID" property in DAML, but how to set myown URL to a real id ?
... View more
08-18-2018
06:33 AM
|
0
|
0
|
440
|
POST
|
Recently, I used the SDK to make a small plug-in. I need to get the URL of the layer when adding the layer. In fact, only when the type of the layer is ServiceLayer can I get the URL. But if I want to add a local data, similar to "C:\temp\test.shp", but in the Layer property can not get the URL (or Path, DataSource and other properties), so, is the SDK designed like this or still can use other method to get the URL. Attach some code (Sure, is URL property, not URI property ) LayersAddedEvent.Subscribe(AddLayer, false); private void AddLayer(LayerEventsArgs args) { List<Layer> layerList = args.Layers as List<Layer>; if (layerList != null && layerList.Count != 0) Layer layer = layerList[0] as Layer; string url = GetLayerUrl(layer); } private string GetLayerUrl(Layer layer) { // Determine whether the layer has URL property, if has, get URL value. return layer?.GetType()?.GetProperty("URL")?.GetValue(layer) as string; }
... View more
08-16-2018
02:12 AM
|
0
|
2
|
951
|
POST
|
Maybe the documentation with sample below would help: How to add a context menu using the Visual Studio Integration tools http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000000v9000000 Implementing a property page for an ArcGIS Engine application http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000037z000000 Regards, Chelsea
... View more
06-29-2012
04:00 PM
|
0
|
0
|
287
|
POST
|
Hello, Please use ESRI.ArcGIS.AxControls assembly if you are using the Engine controls; use ESRI.ArcGIS.ADF Assembly to replace the utilities assembly. Details please refer to the links: How to migrate ArcGIS 9.3 Desktop and Engine stand-alone applications to ArcGIS 10 http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/How_to_migrate_ArcGIS_9_3_Desktop_and_Engine_stand_alone_applications_to_ArcGIS_10/0001000002ns000000/ ESRI.ArcGIS.ADF Assembly http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Overview/000200002pnn000000/ Regards, Chelsea
... View more
06-29-2012
03:44 PM
|
0
|
0
|
421
|
POST
|
Here's the detailed info: (a)create a query property page by using IQueryPropertyPage interface (b)Put the query property page in a property sheet by using AddPage method of the IComPropertySheet interface (c)Display the property sheet in the application by using the EditProperties method of IComPropertySheet interface. Sample codes with which I can open the query builder for rasters on my end successfully, please note the code is for demonstration purposes and please modify if necessary: String fullPath = @"C:\temp\testhillshade"; // Please modify the path here String path = Path.GetDirectoryName(fullPath); String filename = Path.GetFileName(fullPath); // Set up the Shapefile query //IWorkspaceFactory workspaceFactory = new ShapefileWorkspaceFactory(); //IWorkspace workspace = workspaceFactory.OpenFromFile(path, 0); //IFeatureWorkspace featureWorkspace = (IFeatureWorkspace)workspace; //IFeatureClass featureClass = featureWorkspace.OpenFeatureClass(filename); //Open raster workspacefactory IWorkspaceFactory workspaceFactory = new RasterWorkspaceFactory(); IWorkspace workspace = workspaceFactory.OpenFromFile(path, 0); //Raster dataset IRasterWorkspace RasterWorkspace = (IRasterWorkspace)workspace; IRasterDataset rasterDS = RasterWorkspace.OpenRasterDataset(filename); //Raster layer ESRI.ArcGIS.Carto.IRasterLayer rasterLayer = new ESRI.ArcGIS.Carto.RasterLayer(); rasterLayer.CreateFromDataset(rasterDS); IQueryPropertyPage pQueryPropertyPage = new QueryPropertyPageClass(); pQueryPropertyPage.Table = rasterLayer as ITable; ISet pSet = new SetClass(); pSet.Add(rasterLayer); IComPropertySheet pSheet = new ComPropertySheetClass(); pSheet.AddCategoryID(new UID()); pSheet.AddPage(pQueryPropertyPage); pSheet.Title = "query"; if (pSheet.EditProperties(pSet, ArcMap.Application.hWnd)) { } Here are also documents talking about the property page: Extending ArcObjects:Creating Property Pages http://edndoc.esri.com/arcobjects/9.2/CPP_VB6_VBA_VCPP_Doc/COM/ExtendAO/PropertyPages.htm#Implementing_a_property_page_in_Visual_Basic How to open a layer's property pages using VBA in ArcMap http://resources.arcgis.com/content/kbase?fa=articleShow&d=17082 Hope this helps, Chelsea
... View more
06-26-2012
09:59 AM
|
0
|
0
|
189
|
POST
|
Hello, Starting from 10, stand-alone ArcGIS applications must locate an appropriate ArcGIS product installation before any ArcObjects code (including license initialization) is called. Details please refer to the link below: ArcObjects runtime binding for VC++ developers http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/ArcObjects_runtime_binding_for_VC_developers/000100000nmm000000/ After adding the runtime binding to your code, you should be good to go. Regards, Chelsea
... View more
06-25-2012
10:23 AM
|
0
|
0
|
227
|
POST
|
1) Is your machine 64 or 32 bit? If it is 64bit, change the Target Platform to x86 to see if it would help. 2) Check License control or IAoinitialize code to see if the license is initialized successfully. Chel
... View more
04-23-2012
09:59 AM
|
0
|
0
|
151
|
POST
|
Hello there, There's an enhancement below addresses the same issue: NIM059046 Add the ability to customize the Attribute Table window buttons in ArcMap Customize Mode. The status of the enhancement is "New" which means Esri Dev team is reviewing the enhancement. Hope this helps. Chelsea
... View more
02-28-2012
03:19 PM
|
0
|
0
|
256
|
POST
|
1) Check : Control Panel > User Accounts > Change User Account Settings Make sure it's "Never Notify" 2) If the setting is "Never Notify", confirm the installation and license authorization (you might have already done this) 3) Try some Engine sample applications from ESRI Resources Center or Sample folder (depends on your application type) ESRI Resources Center: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html [ArcGIS Installation foler]\DeveloperKit10.0\Samples\ArcObjectsNet If you cannot run the samples, you might need to do a reinstallation. Hope this helps. Chelsea
... View more
01-12-2012
01:28 PM
|
0
|
0
|
113
|
POST
|
More information is needed in order to help further: 1) Please try the dockable window from ESRI Sample: Simple logging dockable window with a custom context menu http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Sample_Simple_logging_dockable_window_with_a_custom_context_menu/00010000048s000000/ 2) Please check User Account Control setting on Win7 machine, make sure it's "Never Notify: 3) Set the target platform as "x86" 4) Test on other Win 7 machines. Thanks, Chel.
... View more
01-11-2012
01:10 PM
|
0
|
0
|
111
|
POST
|
Did the problem resolved? If not, maybe also check the User Account Setting control on Win7.. Thanks, Chel
... View more
01-11-2012
12:50 PM
|
0
|
0
|
438
|
POST
|
There's only one scene object in each ArcScene session. Therefore it is not possible to add a new "data frame" in ArcScene. Thanks, Chel.
... View more
01-11-2012
12:35 PM
|
1
|
0
|
482
|
POST
|
Hello Rodrigo: I tested your code with 9.3.1 sp2 and I can get FeatureClass object successfully. I wonder have you tested on other data? Regards, Chel
... View more
08-18-2011
04:40 PM
|
0
|
0
|
558
|
Title | Kudos | Posted |
---|---|---|
1 | 01-11-2012 12:35 PM |
Online Status |
Offline
|
Date Last Visited |
01-10-2023
05:40 AM
|