如何使用 C# 在 Enterprise Architect 中访问状态机图元素的操作和属性
How to access Operations and Attributes of a State Machine diagram element in Enterprise Architect using C#
我需要使用 C# 获取状态机图的图对象的属性和操作。但我无法在图表内或元素本身内找到这些东西
要获取属性和操作的详细信息,您需要遍历元素 的属性和方法集合。
对于属性:
foreach (EA.Attribute att in currentElement.Attributes)
{
}
对于操作:
foreach (EA.Method att in currentElement.Methods)
{
}
更多优惠请参考Attributes and Operations
我需要使用 C# 获取状态机图的图对象的属性和操作。但我无法在图表内或元素本身内找到这些东西
要获取属性和操作的详细信息,您需要遍历元素 的属性和方法集合。
对于属性:
foreach (EA.Attribute att in currentElement.Attributes)
{
}
对于操作:
foreach (EA.Method att in currentElement.Methods)
{
}
更多优惠请参考Attributes and Operations