使用 SQL 在 Sparx EA 中检索当前选定的对象

Retrieve current selected object in Sparx EA with SQL

在 SQL 中,我想检索当前在项目浏览器中选择的对象。

select 
    obj.ea_guid as CLASSGUID,
    obj.object_type as CLASSTYPE,
    obj.*
    from t_object as obj
    where obj.object_ID = #OBJECTID#

这个有专门的词吗?类似于 #PACKAGE# 用于获取当前所选包的 id,我尝试了 #OBJECT##OBJECTID#。但其中 none 有效。

或任何其他方法?

按照 manual

中的说明使用 #CurrentElementID#