Hi:

Your code should read:

SetLayer(CTR_Layer)
ExportArcViewShape(CTR_SetName, "c:\\ESRI\\" + CTR_SetName + ".shp",
{{"Fields", field_list[1]}})

Hope that helps.

Maptitude Mapping Software <http://www.caliper.com>  Group Moderator



--- In [email protected], "1shark" <buglmuck@...> wrote:
>
>
> When I use string variables to assign the 'layer|selectionset' to
ExportArcViewShape, the GISDK fails with non specific error.
>
> The following is the code, and you can see that the very same string
variable concatenation worked for the functions called just prior to the
ExportArcViewShape
>
> ----------------------------------------
> SetDisplayStatus(CTR_Layer + "|" + CTR_SetName, "Active")
>
> SetIconColor(CTR_Layer + "|" + CTR_SetName, ColorRGB(65535,0,0))
>
> field_list = GetFields(, "All")
>
> ExportArcViewShape(CTR_Layer + "|" + CTR_SetName, "c:\\ESRI\\" +
CTR_SetName + ".shp", {{"Fields", field_list[1]}})
> ------------------------------------------
>
> If I remove the argument, let it default, it exports all elements (not
what I want)
>
> Anybody have any idea what I'm missing?
>
> Thanks
>

Reply via email to