|
POST
|
You can use My.ThisAddIn, which gives you access to AddInID, Author, Company, Date, Description, IDs, Name, and Version MsgBox(My.ThisAddIn.Description & vbNewLine & My.ThisAddIn.Version & vbNewLine & My.ThisAddIn.Author)
... View more
05-22-2013
05:14 AM
|
0
|
0
|
1146
|
|
POST
|
That is an old link you're looking at. Instead, start at the ArcObjects Help section and explore the many topics and tutorials included.
... View more
05-22-2013
04:52 AM
|
0
|
0
|
1699
|
|
POST
|
Here's an example of how to add several inputs for the Intersect Tool
ESRI.ArcGIS.Geoprocessor.Geoprocessor GP = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();
GP.OverwriteOutput = true;
IGPUtilities2 gpUtils = new GPUtilitiesClass();
IFeatureClass inFeature1 = gpUtils.OpenFeatureClassFromString(@"E:\Test.gdb\states");
IFeatureClass inFeature2 = gpUtils.OpenFeatureClassFromString(@"E:\Test.gdb\us_rivers");
IGpValueTableObject vt = new GpValueTableObjectClass();
//vt.SetColumns(1);
vt.SetColumns(2);
object weight;
weight = 1 as object;
object obj1 = inFeature1;
vt.AddRow(ref obj1);
vt.SetValue(0, 1, ref weight);
object obj2 = inFeature2;
vt.AddRow(ref obj2);
vt.SetValue(1, 1, ref weight);
ESRI.ArcGIS.AnalysisTools.Intersect intersect = new ESRI.ArcGIS.AnalysisTools.Intersect();
intersect.in_features = vt;
intersect.out_feature_class = "E:\testout.shp";
GP.Execute(intersect, null);
... View more
05-20-2013
07:58 AM
|
0
|
0
|
1023
|
|
POST
|
I'm attempting to convert the example that Kelly wrote to add the basemap gallery basemaps to the map in a dropdown button into AMD. I'm running into a problem with getting the base maps added to the button. In this function, the ForEach loop fires, but the children aren't added. I've created a fiddler with the new code and original code commented out. function createBasemapGallery() { var basemapGallery = new BasemapGallery({ showArcGISBasemaps: true, map: map }); connect.connect(basemapGallery, 'onLoad', function () { array.forEach(basemapGallery.basemaps, function (basemap) dom.byId('basemapMenu').addChild(new dijit.MenuItem({ label: basemap.title, onClick: lang.hitch(this, function(){ this.basemapGallery.select(basemap.id); }) })); }); }); }
... View more
05-17-2013
12:11 PM
|
0
|
10
|
5429
|
|
POST
|
Glad to help. Don't forget to click the check mark on the post that answered your question.
... View more
05-17-2013
09:18 AM
|
0
|
0
|
1156
|
|
POST
|
You should get in the practice of starting a new thread when your question isn't directly related to the original question. Your Township field is a string field and needs quotes. if (cLng([SECTION]) = 15) AND (TOWNSHIP] = "034N") then
... View more
05-17-2013
09:15 AM
|
0
|
0
|
3045
|
|
POST
|
ken, you beat me to it. should I be concerned that we think alike? Do you have access to my computer? Are you watching me? lol... no really, are you? What was that about great minds?
... View more
05-17-2013
07:50 AM
|
0
|
0
|
1384
|
|
POST
|
You shouldn't need an extra loop for this. Is the code structured such that if they don't select a year, it will default to the current year? You could do something like this
Private Sub cmdMap_Click()
Dim UserValue As String
Dim Value As String
Dim Year As String
Dim pDoc As IDocument
Dim pApp As IApplication
Set pDoc = New MxDocument
Set pApp = pDoc.Parent
If cboYear.Text = "" then
Year = Year(Date)
Else
Year = cboYear.Text
End If
If cboStations.Text = "Annual" Then
Select Case cboDistrict.Text
Case "Abilene"
pApp.OpenDocument ("K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\" & Year & "\Abilene\Abilene_Base_Map.mxd")
Case "Amarillo"
pApp.OpenDocument ("K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\" & Year & "\Amarillo\Amarillo_Base_Map.mxd")
Case "Atlanta"
Depending on how your districts are set up, you could also get rid of the Select Case section and use something like this
If cboStations.Text = "Annual" Then
pApp.OpenDocument ("K:\TASS\4_MAPPING_DATA_SUPPORT\Traffic_Mapping\District_Maps\" & Year & "\" & cboDistrict.Text & "\" & cboDistrict.Text & "_Base_Map.mxd")
... View more
05-17-2013
07:15 AM
|
0
|
0
|
1384
|
|
POST
|
Apparently there are a couple of bugs in Maplex for 10.1, which should have been fixed with SP 1. See this thread.
... View more
05-17-2013
04:00 AM
|
0
|
0
|
1156
|
|
POST
|
Thanks. If you're open for more suggestions, in the "What's new in Version 3.5" section, there are links to new samples that have been rewritten using the new "on" event listening and other to use the AMD style. The links go to the full page version of the code instead of their sample page, which would make it easier to view the code and download the zipped project.
... View more
05-16-2013
01:17 PM
|
0
|
0
|
2097
|
|
POST
|
It does run correctly if you use the line <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/"></script>
... View more
05-16-2013
10:22 AM
|
0
|
0
|
451
|
|
POST
|
Correct, we re-arranged and removed several sample categories to make the TOC more manageable and useful to those not already familiar with it. Old categories, like Widgets and Layout, will not be coming back. We didn't actually remove any samples. As Kelly pointed out, you can still find old samples via search. If you'd previously bookmarked a sample, that link will still work as well. That's pretty odd reasoning. For those coming to the page as new user, how will they even know that there are additional samples that they can search for? Maybe you should include text on the Samples Overview page stating this. The selection of which samples were dropped is perplexing. The basic Find and Identify samples aren't included while Query samples remain. There are still some broken links using search, too. For example, in the search for "query", the first returned result, "Download content in JSON format using esri.request" is a 404 page
... View more
05-16-2013
10:08 AM
|
0
|
0
|
2097
|
|
POST
|
The samples page has been updated to JS 3.5 and the categories have been rearranged. However, many samples from previous versions are missing in the TOC, even though they have been updated to JS 3.5, like Info Window with Chart. Are these going to show up in the TOC and will some of the missing categories (like Widgets and Layout) return? While I am happy that to see the new Code Assist plug-ins are already available, I'm surprised the API and SDK aren't available for download yet.
... View more
05-16-2013
08:33 AM
|
0
|
8
|
4034
|
|
POST
|
Here's a quick example. [ATTACH=CONFIG]24370[/ATTACH] I set the transparency of the DEM layer to 50% and kept the transparency of the Hillshade layer at 100%. You can play around with the different color ramps for the DEM and edit them to create precisely the colors you'd like. Take a look at this and this help topics
... View more
05-16-2013
05:16 AM
|
0
|
0
|
3613
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|