Select to view content in your preferred language

Error during generating Schematic Diagram in ArcGIS Server 9.3.1

2789
2
06-29-2010 07:17 AM
RajeshMane
New Contributor
Hello Sir,

I am using ArcGIS server 9.3.1 and schematics. Since diagram and its related configuration completed in proper way. We are using Server context object to generate diagram. Passing the features in Ienumfeature.since below is the code which passes feature to standardbuildercontext methos to intialise selection for generating diagram. Please see the attached code txt written in server context. All features are getting selected in MXD as we passing selection from client side.and it worked.

    class EnumObjectConverter : IEnumObject
    {
        public EnumObjectConverter(IEnumFeature enumFea)
        {
            ef = enumFea;
        }
        private IEnumFeature ef;

        IObject IEnumObject.Next()
        {
            return ef.Next() as IObject;
        }

        void IEnumObject.Reset()
        {
            ef.Reset();
        }
    }
}

code is throwing when coming to below line
pSchematicDiagram = pSchDiagramClass.SchematicBuilder.GenerateDiagram(DiagramName, pSchematicDiagramContainer, set, ctx, null);

As this is being tested in desktop and worked fine. We are unable to figured out exact root cause. Please assist in this case.

Or any other methos on which can generate diagram on ArcGIS server. I have also tried GP tools sample available in EDN. But that did not help us.

Regards,
Rajesh Mane
Projetc Lead (Utility GIS Solutions)
RMSI india pvt LTD.
Tags (2)
0 Kudos
2 Replies
RickAnderson
Occasional Contributor III
Why does the schematic server sample not help you?  It shows 1 way of allowing the user to select features and generate a diagram all via GP.
0 Kudos
RajeshMane
New Contributor
Hello,

This issue has been resolved. It was license bug. We were wrong license file. There is no bug in attached code.
0 Kudos