<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create schematic attribute as associated field using ArcObjects? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705435#M18882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look to the snippets we recently shared on arcgis.com &lt;A href="http://www.arcgis.com/home/item.html?id=a8be26357b944dfdbbd69a55818dcc88"&gt;here&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;The Generate A Diagram From A Map Selection.snippet file should help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2014 13:17:29 GMT</pubDate>
    <dc:creator>Anne-YvonneBlin</dc:creator>
    <dc:date>2014-09-08T13:17:29Z</dc:date>
    <item>
      <title>How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705422#M18869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to automate the complete creation of a schematic template with ArcObjects SDK for Java (10.2).&lt;/P&gt;&lt;P&gt;I've managed to create the GDB, the schematic dataset and the schematic diagram class (template).&lt;/P&gt;&lt;P&gt;Then, I created a schematic element class associated with a feature class taken from the same GDB, which works.&lt;/P&gt;&lt;P&gt;I would like to share a field "NAME" between the feature class and the schematic element class, in order to label the nodes of a schematic diagram.&lt;/P&gt;&lt;P&gt;So, I tried that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISchematicElementClass nodeSchematicElementClass = schematicDataset.createSchematicElementClass("NODE", esriSchematicElementType.esriSchematicNodeType);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeSchematicElementClass.setSchematicDataSourceByRef(schematicDataSource);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeSchematicElementClass.alterAssociatedObjectClass(schematicDataSource, nodeFeatureClass.getObjectClassID());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeSchematicElementClass.setGeometryType(esriGeometryType.esriGeometryPoint);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeSchematicElementClass.setExternalQueryEvaluationMode(esriSchematicExternalQueryEvaluationMode.esriSchematicQueryBuildEvaluation);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeSchematicElementClass.setQueryString("SELECT * FROM NODE");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; schematicDiagramClass.associateSchematicElementClass(nodeSchematicElementClass);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UID associatedFieldUID = new UID();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; associatedFieldUID.setValue("{7DE3A19D-32D0-41CD-B896-37CA3AFBD88A}"); // taken from the file ...\Desktop10.2\bin\configuration\CLSID\esri.clsid.ecfg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISchematicAttribute schematicAttribute = nodeSchematicElementClass.createSchematicAttribute("NAME", associatedFieldUID);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I get the following ArcObjects error in the last line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutomationException: 0x80040a28 - Additional field can't be added : NAME in 'Esri Schematics'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the same error with any other field name.&lt;/P&gt;&lt;P&gt;Does anybody have a solution? Am I doing something wrong with my attribute field association?&lt;/P&gt;&lt;P&gt;I would appreciate any help! Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 15:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705422#M18869</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-02T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705423#M18870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin&lt;/P&gt;&lt;P&gt;There is a sample in ArcObjects Help for .NET that should help you: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p85000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p85000000"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p85000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hopping this help&lt;/P&gt;&lt;P&gt;Anne-Yvonne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 11:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705423#M18870</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-05T11:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705424#M18871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Anne-Yvonne, thanks for your reply.&lt;/P&gt;&lt;P&gt;Actually, I was inspired by this .NET sample to write my Java code. &lt;/P&gt;&lt;P&gt;I used the same method: after creating the ISchematicElementClass, the UID corresponding to the SchematicAttributeAssociatedField class is created, then I invoke the function createSchematicAttribute with the field name and this UID.&lt;/P&gt;&lt;P&gt;So, maybe it's not the right time to invoke this function. I don't see how/when to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 12:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705424#M18871</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-05T12:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705425#M18872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Several questions to make sure I understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the node schematic feature class you want to create by code, you specified a SQL Query to get all the nodes in your NODE GIS feature class. Does this mean that you expect to generate diagrams containing all those features as schematic node features in each of your diagrams? No problem with that but, in that case, you must know that you are taking control on the node features that will be built in your diagrams (the Standard builder will not longer manage them.)&lt;/LI&gt;&lt;LI&gt;You want to create a schematic attribute which values will be retrieved from the NAME field of the NODE GIS feature class you are querying. In this case, you must create a SchematicAttributeField instead of a SchematicAttributeAssociatedField (SchematicAttributeAssociatedField is designed to be used for features that are fully controlled by the Standard builder, not those returned by query). The code below should help you creating this SchematicAttributeField;&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;''' Create a field SchematicAttribute on a given SchematicElementClass&lt;/P&gt;
&lt;P&gt;''' &amp;lt;/summary&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;param name="schElementClass"&amp;gt;The SchematicElementClass where the field attribute is created&amp;lt;/param&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;param name="AttributeName"&amp;gt;The ISchematicAttributeField name&amp;lt;/param&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;param name="EvalMode"&amp;gt;The EvaluationMode for the created schematic attribute&amp;lt;/param&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;param name="StorageMode"&amp;gt;The StorageMode for the created schematic attribute&amp;lt;/param&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;param name="value"&amp;gt;The FieldNames for the created schematic attribute&amp;lt;/param&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;returns&amp;gt;The created ESRI.ArcGIS.Schematic.ISchematicAttributeField&amp;lt;/returns&amp;gt;&lt;/P&gt;
&lt;P&gt;''' &amp;lt;remarks&amp;gt;The UID.Value is a contant GUID value for the ISchematicAttributeField type of schematic attribute&amp;lt;/remarks&amp;gt;&lt;/P&gt;
&lt;P&gt;Public Function CreateAttributeFieldForElementClass(ByVal schElementClass As ESRI.ArcGIS.Schematic.ISchematicElementClass, ByVal AttributeName As String, ByVal EvalMode As ESRI.ArcGIS.Schematic.esriSchematicAttributeEvaluationMode, ByVal StorageMode As ESRI.ArcGIS.Schematic.esriSchematicAttributeStorageMode, ByVal value() As String) As ESRI.ArcGIS.Schematic.ISchematicAttributeField&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim schAttribute As ESRI.ArcGIS.Schematic.ISchematicAttribute = Nothing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ' create an ISchematicAttribute&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim pUid As ESRI.ArcGIS.esriSystem.UID = New ESRI.ArcGIS.esriSystem.UID()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pUid.Value = "{E1902BB0-6070-4EE2-995A-DB86FAC5EEB0}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; schAttribute = schElementClass.CreateSchematicAttribute(AttributeName, pUid)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Return Nothing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim schAttributeMngt As ESRI.ArcGIS.Schematic.ISchematicAttributeManagement = TryCast(schAttribute, ESRI.ArcGIS.Schematic.ISchematicAttributeManagement)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ' the StorageMode must be set before the EvaluationMode&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ' consistenty is checked when the EvaluationMode is set&lt;/P&gt;
&lt;P&gt;&amp;nbsp; schAttributeMngt.StorageMode = StorageMode&lt;/P&gt;
&lt;P&gt;&amp;nbsp; schAttributeMngt.EvaluationMode = EvalMode&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Catch&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ' an error is returned if the StorageMode and EvaluationMode are not consistent&lt;/P&gt;
&lt;P&gt;&amp;nbsp; End Try&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ' cast SchematicAttribute into ISchematicAttributeField and set its properties&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim schAttField As ESRI.ArcGIS.Schematic.ISchematicAttributeField = TryCast(schAttribute, ESRI.ArcGIS.Schematic.ISchematicAttributeField)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If (schAttField IsNot Nothing) Then&lt;/P&gt;
&lt;P&gt;&amp;nbsp; schAttField.FieldNames = value&lt;/P&gt;
&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Return schAttField&lt;/P&gt;
&lt;P&gt;End Function&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;This being said, the message you get looks strange; &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;Additional field can't be added : NAME in 'Esri Schematics'"&lt;/EM&gt;... According to me, this has nothing to do with AttributeAssociatedField type vs &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;AttributeField type. Could you have a look on the schematic feature classes created under schematic dataset? Is your new NODE schematic feature class already created? Does it already contain a NAME field? Here are the steps to verify that:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;OL style="margin: 0 0 1.2em; list-style-position: outside; list-style-image: initial; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;LI&gt;&lt;SPAN&gt;Start ArcCatalog and expand the schematic dataset in Catalog tree.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Right-click the schematic dataset in Catalog tree.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Click &lt;SPAN class="uicontrol" style="font-size: 12px; font-weight: bold;"&gt;Show/Hide Schematic Classes.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 13:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705425#M18872</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-05T13:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705426#M18873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, by using an SQL query when creating the node schematic element class, I expect to generate a diagram containing every node of my feature class. When you say that the standard builder will no longer manage them, that's to say node features selection has no effect on the diagram generation? Actually, in addition to this attribute issue, I don't manage to create a schematic diagram because I don't see how to instantiate (in java) a ISchematicStandardBuilder in order to use the generateDiagram function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 08:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705426#M18873</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-08T08:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705427#M18874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And OK, I will try to &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;create a SchematicAttributeField instead of a SchematicAttributeAssociatedField.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Now, in ArcCatalog, I see my schematic dataset containing a schematic template, containing the schematic NODE and EDGE feature classes I created, so that's a good start.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 08:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705427#M18874</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-08T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705428#M18875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right, selecting features prior to generate the diagram have no impact when configuring queries on your schematic feature classes. If you want to generate diagram from a selection set of features in your map, you should let the standard builder running in its full "standard" mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 08:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705428#M18875</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-08T08:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705429#M18876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Except if you want to work from a selection set of features... In this case, you need to associate your schematic feature class to the desired GIS feature class (NODE in your case, I guess), remove the SQL query you specified for your schematic class and create a &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;SchematicAttributeAssociatedField instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;How do you want to work exactly (from a features selection set or from queries?)? Why are you coding your dataset configuration; that is, the creation of your diagram template, schematic feature classes from scratch? Why are you not working within Dataset Editor?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;&lt;SPAN&gt;Did you read and try the Schematics tutorials &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//004z00000066000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//004z00000066000000&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;and the Schematics videos &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;&lt;A href="http://resources.arcgis.com/en/communities/schematics/01n600000012000000.htm" title="http://resources.arcgis.com/en/communities/schematics/01n600000012000000.htm"&gt;Getting started with Schematics in videos | ArcGIS Resource Center&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 09:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705429#M18876</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-08T09:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705430#M18877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried to create a SchematiAttributeField instead of a attribute associated field and the createSchematicAttribute function works.&lt;/P&gt;&lt;P&gt;So I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UID attributeFieldUID = new UID();&lt;/P&gt;&lt;P&gt;attributeFieldUID.setValue(SCHEMATIC_ATTRIBUTE_FIELD_UID);&lt;/P&gt;&lt;P&gt;ISchematicAttribute schematicAttribute = schematicElementClass.createSchematicAttribute(fieldName, attributeFieldUID);&lt;/P&gt;&lt;P&gt;ISchematicAttributeManagement schematicAttributeManagement = (ISchematicAttributeManagement)schematicAttribute;&lt;/P&gt;&lt;P&gt;schematicAttributeManagement.setEvaluationMode(esriSchematicAttributeEvaluationMode.esriSchematicAttributeBuildEvaluation);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;schematicAttributeManagement.setStorageMode(esriSchematicAttributeStorageMode.esriSchematicAttributeFieldStorage);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;But now I have the following error when casting the ISchematicAttribute to ISchematicAttributeManagement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;java.lang.ClassCastException: com.esri.arcgis.schematic.SchematicAttributeField cannot be cast to com.esri.arcgis.schematic.ISchematicAttributeManagement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;However, when I look in the Schematic Dataset Editor, I get the attribute field well created. The Storage mode is set to Field and the Evaluation mode to "on genete/update", so that's what I expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 09:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705430#M18877</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-08T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705431#M18878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I prefer the SQL query method, but actually it doesn't matter as I want to associate all GIS features to schematic features.&lt;/P&gt;&lt;P&gt;I'm trying to automate the schematic dataset, template and diagram creation by code because I have to create a lot of geodatabases containing each one a geometric network and a schematic diagram based on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 09:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705431#M18878</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-08T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705432#M18879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's up to you to do so... but it looks to be quite complex. In your case, I would have coded the diagram template creation and configure it to simply work with the Standard builder with the AutoCreateElementClasses option turned on.&lt;/P&gt;&lt;P&gt;Then I would have called GenerateDiagram on ISchematicBuilder while the InitialObjects for the input ISchematicBuilderContext parameter is initialized with the whole set of geometric network edges. Indeed, working with the only edges in input is often sufficient for the Standard builder to generate diagrams corresponding to the entire GN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 11:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705432#M18879</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-08T11:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705433#M18880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Please be aware that specifying SQL queries on each of your schematic feature classes is ok but it's a real hard work. SQL Queries will be not enough, you will have also to specify unique &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;identifiers for each of the &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;schematic features belonging to those feature classes, specify the from and to node identifiers for the link schematic features your expect in your diagram, and so on...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;If your GIS data is organized into a Geometric Network, the Standard builder doesn't need all those stuffs, it is designed to directly deal with any set of GN features, decode the network topology, and create the expected schematic nodes and links with generic identifiers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 11:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705433#M18880</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-08T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705434#M18881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks for your explanations. So in my simple case, it seems clear it's better to use the standard builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don't know how to create a ISchematicStandardBuilder, as there is no SchematicStandardBuilder object class in Java, and the function schematicDataset.getSchematicBuilder() returns an ISchematicBuilder which is not castable to ISchematicStandardBuilder. So, for example, I can't turn on the option "AutoCreateElementClasses".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried instantiating with ISchematicStandardBuilderProxy:&lt;/P&gt;&lt;P&gt;ISchematicStandardBuilder schematicStandardBuilder = new ISchematicStandardBuilderProxy();&lt;/P&gt;&lt;P&gt;but I have a NullPointerException when calling:&lt;/P&gt;&lt;P&gt;schematicStandardBuilder.setAutoCreateElementClasses(true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to create a standard builder using Java?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 12:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705434#M18881</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-08T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705435#M18882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look to the snippets we recently shared on arcgis.com &lt;A href="http://www.arcgis.com/home/item.html?id=a8be26357b944dfdbbd69a55818dcc88"&gt;here&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;The Generate A Diagram From A Map Selection.snippet file should help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 13:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705435#M18882</guid>
      <dc:creator>Anne-YvonneBlin</dc:creator>
      <dc:date>2014-09-08T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create schematic attribute as associated field using ArcObjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705436#M18883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this helpful set of samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the "Create A Standard Builder Schematic Diagram Class From Scratch" snippet, we must instanciate a SchematicStandardBuilder object like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objectType = Type.GetTypeFromProgID("esriSchematic.SchematicStandardBuilder");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Schematic.ISchematicStandardBuilder pSchStandardBuilder;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (objectType == null) return null;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pSchStandardBuilder = Activator.CreateInstance(objectType) as ESRI.ArcGIS.Schematic.ISchematicStandardBuilder;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;So, I found an equivalent way in Java to calling Activator.CreateInstance:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;ISchematicStandardBuilder schematicStandardBuilder = (ISchematicStandardBuilder)Class.forName("esriSchematic.SchematicStandardBuilder").newInstance();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;At this line, I get a "java.lang.ClassNotFoundException: esriSchematic.SchematicStandardBuilder" exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Does it means that it's not possible to create a Java instance of the SchematicStandardBuilder class?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 14:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-schematic-attribute-as-associated/m-p/705436#M18883</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-09-08T14:31:26Z</dc:date>
    </item>
  </channel>
</rss>

