Select to view content in your preferred language

How to set spatial reference to a schematic diagram class with Arcobjects?

5469
10
Jump to solution
01-27-2015 02:35 AM
KevinLECOCQ
Deactivated User

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!

0 Kudos
10 Replies
KevinLECOCQ
Deactivated User

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!

0 Kudos