ObjectType Enum

The ObjectType enumeration identifies Enterprise Architect object types even when referenced through a Dispatch interface.

For example:

Object ob = Repository.GetElementByID(13);

if ( ob.ObjectType == otElement )

;

else if( ob.ObjectType == otAuthor )

...

All of the following are valid enumeration values:

otAttribute
otAttributeConstraint
otAttributeTag
otAuthor
otClient
otCollection
otConnector
otConnectorConstraint
otConnectorEnd
otConnectorTag
otConstraint
otCustomProperty
otDatatype
otDiagram
otDiagramLink
otDiagramObject
otEffort
otElement
otEventProperties
otEventProperty
otFile
otIssue
otMethod
otMethodConstraint
otMethodTag
otMetric
otModel
otNone

otPackage
otParameter
otPartition
otProject
otProjectIssues
otProjectResource
otProperties
otProperty
otPropertyType
otReference
otRepository
otRequirement
otResource
otRisk
otRoleTag
otScenario
otScenarioExtension
otScenarioStep
otStereotype
otSwimlane
otSwimlaneDef
otSwimlanes
otTaggedValue
otTask
otTerm
otTest
otTransition