在页面中添加(主)形状时,在Microsoft Visio 2013 x64中将一些(主)形状添加到另一个(主)形状 [英] Add some (Master) Shapes to another (Master) Shape in Microsoft Visio 2013 x64 when add a (Master) Shape to the Page

查看:149
本文介绍了在页面中添加(主)形状时,在Microsoft Visio 2013 x64中将一些(主)形状添加到另一个(主)形状的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Microsoft Visio 2013 x64 中创建一个新的主形状,如 UML类模板中的类主形状

将Class Master Shape添加到页面时,它会自动附加两个Member和一个Separator Master Shapes。此外,可以在其中添加更多成员和分隔符主形状。

我认为它通过一些书面VBA代码本身添加了其他主形状; 然而,当我检查时 UML类(公制)模板的文件在以下完整路径中,我得到它不使用VBA代码,完全没有。

I want to create a new Master Shape in the Microsoft Visio 2013 x64 like the Class Master Shape in the UML Class Stencil.
When add the Class Master Shape to a page, it appends two Member and one Separator Master Shapes in itself automatically. Furthermore, can add more Member and Separator Master Shapes in it.
I was thinking that it adds other Master Shapes in itself by some written VBA codes; however, when I checked the file of the UML Class (Metric) Stencil in the following full path, I got that it uses no VBA codes, not at all.

D:\Program Files\Microsoft Office\Office15\Visio Content\1033\USTRME_M.VSSX



文件扩展名为Visio Stencil(.vssx)而不是Visio Macro-Enabled Stencil(.vssm);因此,它不能有VBA代码。

我知道我可以通过在ShapeSheet的Actions部分添加一些新行来做某事;但是,它不存在任何动作行为类形状添加新的成员和分隔符主形状。

图1 [ ^ ]

图1 - 上下文菜单中有两个附加选项的分隔符形状,没有任何相关行在ShapeSheet中

图2 [ ^ ]

图2 - 显示栏以插入分隔符形状

图3 [ ^ ]

图3 - 在上下文菜单中有两个附加选项且ShapeSheet中没有任何相关行的成员形状

图4 [ ^ ]

图4 - 显示栏以插入会员形状

当我点击人民币点击放置在页面中的类形状时,它在上下文菜单中有两个新选项:

- 显示模板参数

- 显示刻板印象

我看到相关的动作部分行。

< a href =http://i.stack.imgur.com/0Srrq.jpg>图5 [ ^ ]

图5 - 另外两个类的形状上下文菜单中的选项ShapeSheet中的相关行

当我点击添加类形状的成员和分隔符形状时,可以看到插入成员/分隔符之前/后的;但是,当我直接在页面上添加成员和分隔符主形状(不在类形状中)时,当我点击它们时,在上下文菜单中看不到额外的选项。

图6 [ ^ ]

图6 - 上下文菜单中没有其他选项的分隔符形状

图7 [ ^ ] />
图7 - 上下文菜单中没有其他选项的成员形状

我检查了他们的ShapeSheet,但找不到上述任何相关行动作。

现在,我的问题是 如何创建一个新的主形状,能够接受其他一些没有任何VBA代码的主形状,如由Microsoft创建的UML类模板中的类形状?


The file extension is "Visio Stencil (.vssx)" instead of "Visio Macro-Enabled Stencil (.vssm)"; so, it can't have VBA codes.
I know that I can do something by adding some new Rows in the Actions Section of the ShapeSheet; however, it doesn't exist any action Rows to add fresh Member and Separator Master Shapes for Class Shape.
Figure 1[^]
Figure 1 - Separator Shape with two additional options in the Context Menu and without any related rows in the ShapeSheet
Figure 2[^]
Figure 2 - Display a Bar to insert Separator Shape
Figure 3[^]
Figure 3 - Member Shape with two additional options in the Context Menu and without any related rows in the ShapeSheet
Figure 4[^]
Figure 4 - Display a Bar to insert Member Shape
When I do RMB click on a Class Shape that is placed in the page, it has two new options in the Context Menu:
- Show Template Parameter
- Show Stereotype
And I see related Actions' Section Rows for them.
Figure 5[^]
Figure 5 - Class Shape with two additional options in the Context Menu and related rows in the ShapeSheet
When I do RMB click on the Member and Separator Shapes in added Class Shape, can see "Insert "Member/Separator" before/after"; however, when I add Member and Separator Master Shapes on the page directly (not in the Class Shape), when I do RMB click on them, can't see extra options in the Context Menu.
Figure 6[^]
Figure 6 - Separator Shape with no additional options in the Context Menu
Figure 7[^]
Figure 7 - Member Shape with no additional options in the Context Menu
I checked their ShapeSheet and can't find any related rows for above-mentioned actions.
Now, my question is that how can I create a new Master Shape with the ability to accept some other Master Shapes without any VBA codes like Class Shape in the UML Class Stencil that is created by Microsoft?

推荐答案

检查以下链接:

- StackOverflow [ ^ ]

- Office开发中心 [ ^ ]
Check the following Links:
- StackOverflow[^]
- Office Dev Center[^]


这篇关于在页面中添加(主)形状时,在Microsoft Visio 2013 x64中将一些(主)形状添加到另一个(主)形状的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆