SQL、Link 到元素特征

SQL, Link to Element Feature

我有两个 class。 class1 的一个属性连接到 class2 的另一个属性。这是在一个 class 附近的连接器上下文菜单的帮助下完成的,它被称为 Link 到元素特征 。在连接器的另一侧对 select 另一个 class 的另一个属性进行同样的操作。所以连接器直接连接两个属性而不是 classes 本身。我还没有找到存储此信息的表,所以我找不到合适的 SQL 来查找连接(或未连接)的属性。

这里是使用Link to..

做笔记的方法
  • PDATA1 = 'Attribute'
  • PDATA2 = t_attribute.ID 属性
  • PDATA3 = 属性名称
  • PDATA4 有 'Yes'(我不记得它的用途所以你可以忽略它

第一个 SQL:

SELECT PDATA2 FROM t_object WHERE Object_Type='Note' AND PDATA1 = 'Attribute'

会给你身份证。把它放在另一个 SQL:

SELECT * FROM t_attribute WHERE ID = (above SQL)

你有属性的详细信息。或者,如果您想找到未映射的,只需使用现有属性 ID 从第一个找到的 ID 构建一个剖析。

对于使用 Link to... 的关联,这有点棘手。首先,任何此类连接器都将相关信息存储在 t_connector.StyleEx 中,例如

LFEP={69A30E17-23AB-4641-9573-9BDBAA988D52}L;

LF<dir>P=<guid><pos>; connector is attached to attribute/operation <dir> = S or E meaning Start (source) or End (target) <guid> = ea_guid of t_attribute or t_operation

<pos> is the edge (L or R) where the connector had been attached to in the moment when the link has been created. This is a superfluous information since the renderer will attach the link to whatever place is relevant.

There can be one LFSP, one LFEP or both be present in one StyleEx property

(来自我的内幕书)

现在您可以使用 SQL 或(我喜欢的)小脚本来过滤该信息,因为执行复杂的 SQL 字符串操作不是我的专长。