基本的な利用方法
ObjectType定数値はEnterprise Architectのオブジェクトの種類を判別するために利用されます。
 
例:
EA.ObjectType treeSelectedType = repository.GetTreeSelectedItemType();
switch (treeSelectedType)
{
    case EA.ObjectType.otElement:
    {
        // Code for when an element is selected
        EA.Element element;
        element = repository.GetTreeSelectedObject() as EA.Element;
 
        break;
    }
 
    case EA.ObjectType.otPackage:
    {
        // Code for when a package is selected
        EA.Package package;
        package = repository.GetTreeSelectedObject() as EA.Package;
         
        break;
    }
}
 
 
有効な値
有効な定数値は以下の通りです。それぞれの値が指す要素は、先頭のotを削除したEnterprise ArchitectのAPIのオブジェクト型に一致します。otNoneは利用されていません。
 
- otNone = 0
 - otProject = 1
 - otRepository = 2
 - otCollection = 3
 - otElement = 4
 - otPackage = 5
 - otModel = 6
 - otConnector = 7
 - otDiagram = 8
 - otRequirement = 9
 - otScenario = 10
 - otConstraint = 11
 - otTaggedValue = 12
 - otFile = 13
 - otEffort = 14
 - otMetric = 15
 - otIssue = 16
 - otRisk = 17
 - otTest = 18
 - otDiagramObject = 19
 - otDiagramLink = 20
 - otResource = 21
 - otConnectorEnd = 22
 - otAttribute = 23
 - otMethod = 24
 - otParameter = 25
 - otClient = 26
 - otAuthor = 27
 - otDatatype = 28
 - otStereotype = 29
 - otTask = 30
 - otTerm = 31
 - otProjectIssues = 32
 - otAttributeConstraint = 33
 - otAttributeTag = 34
 - otMethodConstraint = 35
 - otMethodTag = 36
 - otConnectorConstraint = 37
 - otConnectorTag = 38
 - otProjectResource = 39
 - otReference = 40
 - otRoleTag= 41
 - otCustomProperty = 42
 - otPartition = 43
 - otTransition = 44
 - otEventProperty = 45
 - otEventProperties = 46
 - otPropertyType = 47
 - otProperties = 48
 - otProperty = 49
 - otSwimlaneDef = 50
 - otSwimlanes = 51
 - otSwimlane = 52
 - otModelWatcher = 53
 - otScenarioStep = 54
 - otScenarioExtension = 55
 - otParamTag= 56
 - otProjectRole= 57
 - otDocumentGenerator= 58
 - otMailInterface= 59
 - otSimulation = 60
 - otTemplateBinding = 61
 - otTemplateParameter = 62
 - otSearchWindow = 63
 - otSelection = 64
 - otContext = 65
 - otTypeInfoProperties = 66
 - otTypeInfoProperty = 67
 - otFeatureLink = 68