POST
|
Sorry for the confusion - I mentioned other users (ie. users in other threads, not users of my code) had experienced the same issue with SDE database feature classes, but I'm only using PGDB feature classes and tables. However, you may be on to something regarding the explicit cast of the IDataset to a ESRI.ArcGIS.Geodatabase.IDataset. I'll give this a try. Thanks James
... View more
10-24-2011
02:39 AM
|
0
|
0
|
356
|
POST
|
Hi James, Thanks for replying to my post - the code that returns an empty string doesn't involve a loop through the layers in the TOC, I'm using this property to get the full file path to my featureclass by simply casting the featureclass as an IDataset and then getting the Workspace.PathName property from this, ie. Dim pDataset as IDataset Set pDataset = pFeatureClass Dim pWorkspace as IWorkspace Set pWorkspace = pDataset.Workspace 'This does not get set to Nothing Dim sPath as String sPath = pWorkspace.PathName 'This returns an empty string even though pWorkspace is set The feature class is a personal geodatabase featureclass, I'm not dealing with SDE featureclasses so unfortunately your second post doesn't apply, but thanks for looking into this. James
... View more
10-18-2011
12:42 AM
|
0
|
0
|
356
|
POST
|
I have a frustrating unpredictable situation where for some reason (which I have yet discovered the reason) when I call IWorkspace.PathName I get an empty string. I am solely dealing with personal GDB feature classes - no remote database workspaces involved. I initially thought it was down to the fact that I had a large number of layers loaded in my TOC all located in my PGDB, so removed all of the unnecessary layers before calling the code. This appears to sort the problem for 99% of the time, but hasn't solved it completely. I'm running 9.3 on XP (32 and 64-bit) and get the empty string returned on both platforms. I've noticed users finding this occurring with SDE databases but not with PGDBs - has anyone experienced this? Thanks James
... View more
10-12-2011
08:28 AM
|
0
|
5
|
591
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|