CombineTerritoryAreas

The CombineTerritoryAreas method combines the objects within each territory into a single complex polygon.

 

Syntax

object.CombineTerritoryAreas

object.CombineTerritoryAreas( CreateObjsOnAnotherLayer, LayerName, LineColor, LineStyle, LineWidth, IDMethod, IndexStartVal, CreatePID, _
         CreateSID, CreateAttrib1, CreateAttrib2, PIDPrefix, SIDPrefix, Attrib1Prefix, Attrib2Prefix, PIDSuffix, SIDSuffix, Attrib1Suffix, Attrib2Suffix )

 

Parameter

Type

Description

CreateObjsOnAnotherLayer

Boolean

optional; True to place combined objects on a new layer

LayerName

String

optional; layer name for the new layer

LineColor

mvColor

optional; line color

LineStyle

String

optional; line style name

LineWidth

Double

optional; line width

IDMethod

mvIDCreationMethod

optional; ID creation method

IndexStartVal

Integer

optional, index start value

CreatePID

Boolean

optional; true to assign PID to objects

CreateSID

Boolean

optional; true to assign SID to objects

CreateAttrib1

Boolean

optional; true to assign Attrib1 to objects

CreateAttrib2

Boolean

optional; true to assign Attrib2 to objects

PIDPrefix

String

optional; PID prefix

SIDPrefix

String

optional; SID prefix

Attrib1Prefix

String

optional; Attrib1 prefix

Attrib2Prefix

String

optional; Attrib2 prefix

PIDSuffix

String

optional; PID suffix

SIDSuffix

String

optional; SID suffix

Attrib1Suffix

String

optional; Attrib1 suffix

Attrib2Suffix

String

optional; Attrib2 suffix

 

Example

    'CombineTerritoryAreas

    'Create a new layer with each territory combined into a single polygon named "Combined1", "Combined2", etc.

    TerritoryMap.CombineTerritoryAreas(CreateObjsOnAnotherLayer:=True, IDMethod:=mvIDCreationPrefixIndexSuffix, _

        IndexStartVal:=1, CreatePID:=True, PIDPrefix:="Combined")

 

Used by: TerritoryMap Object