如何让Sparx EA 13.5的SysML图标题显示正确模型元素类型?
Fixing SysML Diagram Title Element Type in Sparx EA 13.5
I’ve run into this exact quirk with EA’s default title templates before—here’s how to get those brackets showing the correct model element type instead of [package]:
1. Fix a Single Diagram
- Right-click on the blank area of your target SysML diagram, then select Properties from the context menu.
- Switch to the Title tab in the properties window.
- You’ll likely see a title format like
[Package] : #NAME#. Replace[Package]with[Element Type]—this pulls the type of the element your diagram is attached to (e.g.,[Activity],[Block],[UseCase]). - If you’d rather display the diagram’s formal type (like "Activity Diagram") instead of the underlying element type, use
[Diagram Type]instead. - Click OK to save, and your diagram title will update right away.
2. Set a Default for All New Diagrams
To avoid fixing every diagram manually, update the project-wide default template:
- Go to the top menu bar, select Settings > Project Options.
- In the popup window, switch to the Diagrams tab.
- Find the Default Diagram Title field. Swap out
[Package]for[Element Type](or[Diagram Type], based on your preference). - Click Apply then OK—all new SysML diagrams you create will now use this corrected title format automatically.
Quick Troubleshooting Tip
If [Element Type] still shows [package], double-check that your diagram is attached to the right SysML element:
- Go back to the diagram’s Properties window, switch to the General tab.
- Use the Element dropdown to select the correct SysML element (e.g., the Activity this diagram represents) and save the change.
内容的提问来源于stack exchange,提问作者David
相关产品推荐
相关产品推荐

