|
POST
|
You can resolve your problem with this code by reading the help for this tool. Look at the syntax section in the help file, the parameters in your code are incorrect for the CreateMosaicDataset tool. If you actually scroll to the bottom of the help file you'll see a sample of code using the tool. It's all the help file...
... View more
03-17-2015
03:14 PM
|
1
|
0
|
2619
|
|
POST
|
Sean, Thanks for the link to that page, useful stuff! Duncan
... View more
03-17-2015
11:23 AM
|
0
|
0
|
2011
|
|
POST
|
Just been looking at your code. Why don't you use an update cursor instead of the store()? I've always understood store() is simple to use but had poor performance. At some point in the past I picked up on the Using statement and ComReleaser and I now code using these. They are supposed to ensure the correct release of cursors, below is some sample code: ' For ArcGIS 10 using VS 2010 you need to import the following
Imports ESRI.ArcGIS.ADF.Connection.Local
Imports ESRI.ArcGIS.ADF
Dim pQueryFilter As IQueryFilter
pQueryFilter= New QueryFilterClass
pQueryFilter.WhereClause = "ID = 1"
Using releaser As New ComReleaser
Dim pFeatureCursor As IFeatureCursor
pFeatureCursor = pFeatureclass.Update(pQueryFilter, True)
releaser.ManageLifetime(pFeatureCursor)
Dim pFeature As IFeature
pFeature = pFeatureCursor.NextFeature
While pFeature IsNot Nothing
' Do something with pFeature
pFeatureCursor.UpdateFeature(pFeature)
pFeature = pFeatureCursor.NextFeature
End While
End Using
... View more
03-17-2015
03:50 AM
|
1
|
3
|
2011
|
|
POST
|
OK it's ArcMap being ArcMap... Out of pure frustration I closed ArcMap down, opened it up, went to the tool and navigated to the help file (CHM), this time it just worked... To test it was relative I copied the entire folder structure to a new location, deleted the old one and it opened when I clicked on Tool Help. aahaahahahaha!!!!! Note to self - 4 years later and I'm finding my own solutions! - I used .\Help\myhelp.chm
... View more
03-16-2015
01:07 PM
|
0
|
0
|
1960
|
|
POST
|
Yes. As mentioned above "...In my script tool properties I have ticked on under the general tab Store relative path names"
... View more
03-16-2015
11:22 AM
|
0
|
0
|
1960
|
|
POST
|
All, Having a really knotty problem and I was wondering if anyone could confirm if this is a bug in 10.3 or I'm not doing it right? I have created a script tool and an associated CHM help file. In my script tool properties I have ticked on under the general tab Store relative path names. I know this is working as my script is in a sub-folder. I have organized my folder such that my CHM file is in a sub folder called Help (not unreasonable!) but when ever I click on the Tool help button on the tool script interface it opens up a blank window and then the item description page in my internet browser. I have tried: Placing the CHM file in the same folder as the tbx file syntax of \Help\myhelp.chm syntax of ..\Help\myhelp.chm syntax of .\myhelp.chm syntax of ..\SCTTool\Help\myhelp.chm Nothing works! So is the path to the CHM file absolute and the relative path name is ignored? This is on my c:\ drive and when I double click on the CHM file it opens as expected.
... View more
03-16-2015
11:04 AM
|
0
|
3
|
5966
|