将Enterprise架构师序列图转换为Visio

问题描述 投票:2回答:1

我已经使用Sparx Enterprise Architect创建了15个序列图。我的客户只希望在Visio中使用这些图。有什么工具可以将已经创建的EA图表转换为Visio?

visio enterprise-architect sequence-diagram
1个回答
0
投票

如果您的EA实例位于MS SQL Server上,则可以从Sparx EA导出形状数据,然后使用数据可视化工具(Excel导入)将其导入到Visio中>]

查询要提取:

--Create temp table of Swimlanes
WITH t_object_CTE (Object_ID, Swimlane)
AS (SELECT t_object.Object_ID, 
           Name
    FROM t_object
    WHERE Stereotype = 'Pool')

SELECT 
    do.Object_ID,
    o.Name AS ProcessStep,
    o.Object_Type,
    o.Stereotype AS ShapeType,
    do.Sequence,
    STRING_AGG(COALESCE(CAST(c.End_Object_ID AS varchar),''), ',') AS NextProcessStep, --concat across rows and replace NULL with empty string
    s.Swimlane,
    o.Phase
  FROM [SPARX].[dbo].[t_diagram] AS d
  JOIN t_diagramobjects AS do ON d.Diagram_ID = do.Diagram_ID
  JOIN t_object AS o ON do.Object_ID = o.Object_ID
  JOIN t_object_CTE AS s ON o.ParentID = s.Object_ID -- join to temp table
  LEFT JOIN t_connector AS c ON o.Object_ID = c.Start_Object_ID 
  WHERE d.NAME LIKE '%EA Prepayment%'
  GROUP BY do.Object_ID, 
    o.Name,
    o.Object_Type,
    o.Stereotype,
    do.Sequence,
    s.Swimlane,
    o.Phase
  ORDER BY do.Sequence DESC

  SELECT StereoType,
         COUNT(StereoType) as 'Count'
  FROM t_object
  GROUP BY Stereotype
  ORDER BY 'Count' DESC

Visio Data Visualizerhttps://www.microsoft.com/en-us/microsoft-365/blog/2017/05/01/automatically-create-process-diagrams-in-visio-from-excel-data/

为了对数据库结构有更深入的了解,建议购买由Thomas Kilian撰写的Inside Enterprise Architect,查询EA数据库。它是了解表结构的绝佳资源。

https://leanpub.com/InsideEA

© www.soinside.com 2019 - 2024. All rights reserved.