Dear all,
I am using AGX SDK (VB2008) to build a customized interface
I create one button to add the shpaefile as featurelayer into AGX
code:
Dim TestLayer As FeatureLayer
TestLayer=FeatureLayer.OpenShapefile("C:\test.shp")
map.ChildItems.Add(TestLayer)
I also create another button to remove it
code:
TestLayer.RemoveFromParent()
TestLayer.ClearCache()
TestLayer.Disconnect()
But when I remove the shapefile and want to add it again, I got this error message:
"Failed to create a valid association from a featurelayer to a table"
I am not quite understand what is that mean, can anyone help me here?
Thanks a lot in advance.
Ethan