Open Table of Contents

ET GeoWizards Scripting

Spider Diagram Attribute Link
(Go to the main page of the function)

Creates a Spider Diagram between the points of a Center Points dataset and the features in the destination layer (points, polygons, or polylines) based on the values in the link fields in both datasets. The created polylines will connect the Centers to the destination features if the values in the link fields are the same.

Syntax    

Dim ET As  New ETGW_Core
Set variable =  ET.SpiderDiagramLink(pCentersFeatureClass, sCentersLink, pDestinationsFeatureClass, sDestLink, _
                                                sOutFileName, bClosest, bMiddle, dCutOff, sMessage)

The PointDistance method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pCentersFeatureClass Required. An IFeatureClass object (Must be a point feature class)
sCentersLink Required. A String representing the link field in the centers feature class.
pDestinationsFeatureClass Required. An IFeatureClass object (Point, Polyline or Polygon  feature class). 
sDestLink Required. A String representing the link field in the destinations feature class.
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
bClosest Optional. A Boolean - if True, only the closest destination feature to the center will be connected
bMiddle Optional. A Boolean - the value depends on the type of the destination feature class:
  • Point  - not used
  • Polyline
    • False = Connect  the Center to closest point on the polyline (Default)
    • True =Connect  the Center to the middle point of the polyline
  • Polygon
    • False = Connect  the Center to the closest point on the polygon boundary (Default)
    • True = Connect the Center to the centroid of the polygon.
dCutOff Optional. A Double representing  the maximum distance between a Center and a Destination to be used. Destinations that a further than this distance from any Center will not be linked to a Center
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned.