I used ArcObjects for .NET to create a schematic dataset, then a schematic diagram class (aka "schematic template" in the UI) wherein I load feature classes.
To do that, I followed the sample: "Create A Standard Builder Schematic Diagram Class From Scratch".
But when I generate diagrams, I get from ArcMap a "missing spatial reference" warning.
So how to set the spatial reference?
In ArcMap, it's possible in the properties of the schematic template. But using ArcObjects, I can't find an interface of the class SchematicDiagramClass to set the ISpatialReference.
I would appreciate any help on that.
Thanks!
Solved! Go to Solution.
OK, I finally found a solution in the sample called "Create A Schematic Diagram Class Entirely Based On Custom Queries From Scratch". I needed to create a shape field object (IField) to set the spatial reference of my ISchematicElementClass objects.
Now I get the schematic diagram spatial referenced. Problem solved, thanks a lot for the help!