gp.Execute(new MakeTableView()
{
in_table = $@"Database Connections\[email protected]\TESTGIS.SOME_POLY",
out_view = "SOME_POLY",
where_clause = "STATUS = 'INCLUDED'",
workspace = defaultSDEWorkspace
}, null);
Please consider the code above. I can run it perfectly and get my results in a temp view. However, there is another option - field_info
which require an object
type and I have tried to fit different types of instance into this parameter but it still fail...
The type I have tried: ESRI.ArcGIS.Carto.FieldInfoSetClass
, ESRI.ArcGIS.Carto.FieldInfoClass
I don't see any standard doc about this method and option... Anyone can save me out? Provided a sample code snippet that I have attempted
var fieldInfoSet = new FieldInfoSetClass();
fieldInfoSet.Add("Drawing_number", new FieldInfoClass()
{
Alias = "DN",
Visible = true,
ValueAsRatio = false
});
var tableView = gp.Execute(new MakeTableView()
{
in_table = $@"Database Connections\[email protected]\TIS2GIS.XANTHUS_DATASET\TIS2GIS.XANTHUS_POLY",
out_view = "XATNHUS_POLY2",
where_clause = "Drawing_number = 'INCLUDED'",
workspace = defaultSDEWorkspace,
field_info = fieldInfoSet
}, null);
Also, I cannot get any useful information from exception message/error code.
- H_RESULT: -2147467259
- Message: Error HRESULT E_FAIL has been returned from a call to a COM component.