public void Alter(ISchematicDiagramClass schematicDiagramClass, ESRI.ArcGIS.esriSystem.IPropertySet propertySet)
        {
            m_diagramClass = schematicDiagramClass;

            try
            {
                m_description = propertySet.GetProperty("DESCRIPTION").ToString();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "property DESCRIPTION");
            }

            try
            {
                m_parentNodeClassName = propertySet.GetProperty("PARENTNODECLASS").ToString();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "property PARENTNODECLASS");
            }
            try
            {
                m_targetNodeClassName = propertySet.GetProperty("TARGETNODECLASS").ToString();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "property TARGETNODECLASS");
            }

            try
            {
                m_targetLinkClassName = propertySet.GetProperty("TARGETLINKCLASS").ToString();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "property TARGETLINKCLASS");
            }

            try
            {
                m_distance = (double)propertySet.GetProperty("DISTANCE");
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "property DISTANCE");
            }
        }
Beispiel #2
0
        public void Alter(ISchematicDiagramClass schematicDiagramClass, ESRI.ArcGIS.esriSystem.IPropertySet propertySet)
        {
            m_diagramClass = schematicDiagramClass;

            try
            {
                m_description = propertySet.GetProperty("DESCRIPTION").ToString();
            }
            catch { }

            try
            {
                m_reducedNodeClassName = propertySet.GetProperty("REDUCEDNODECLASS").ToString();
            }
            catch { }

            try
            {
                m_superspanLinkClassName = propertySet.GetProperty("SUPERSPANLINKCLASS").ToString();
            }
            catch { }


            try
            {
                m_lengthAttributeName = propertySet.GetProperty("LENGTHATTRIBUTENAME").ToString();
            }
            catch { }

            try
            {
                m_keepVertices = (bool)propertySet.GetProperty("KEEPVERTICES");
            }
            catch { }


            try
            {
                m_linkAttribute = (bool)propertySet.GetProperty("LINKATTRIBUTE");
            }
            catch { }

            try
            {
                m_linkAttributeName = propertySet.GetProperty("LINKATTRIBUTENAME").ToString();
            }
            catch { }
        }