Visio .vdx 文件中的动态连接器
目前我正在尝试理解 .vdx 文件,因为将来我想生成自己的文件。我在使用动态连接器时遇到问题。当按如下方式定义它们时:
<Shape ID="46" Type="Shape" Master="10">
<Geom IX="0">
<MoveTo IX='1'></MoveTo><LineTo IX='23'></LineTo></Geom>
</Shape>
....
<Connect FromSheet="45" FromCell="BeginX" FromPart="9" ToSheet="1" ToCell="PinX" ToPart="3" />
<Connect FromSheet="45" FromCell="EndX" FromPart="12" ToSheet="23" ToCell="PinX" ToPart="3" />
它们不会显示。移动节点后,将显示连接器。我缺少什么?
从 Visio 生成的 .vdx 文件中获取最小设置时,会出现很多坐标,我想避免这些坐标:
<Shape ID="47" Type="Shape" Master="10">
<XForm>
<PinX F="Inh">1.669258233656828</PinX>
<PinY F="Inh">7.519214852067909</PinY>
</XForm>
<XForm1D>
<BeginX F="_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)">1.737275462308963</BeginX>
<BeginY F="_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)">7.671541057367827</BeginY>
<EndX F="_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)">1.601241005004693</EndX>
<EndY F="_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)">7.366888646767992</EndY>
</XForm1D>
<Geom IX="0">
<LineTo IX="2"><X>-0.1664424255025283</X><Y>-0.3046524105998358</Y></LineTo>
</Geom>
</Shape>
在 .vdx 文件中使用动态连接器的最佳和最简单的方法是什么?
编辑:使用 Visio 2010 效果要好得多,并且大多数时间都会显示连接器。所以它看起来确实像 Visio 错误......
Currently I am trying to understand .vdx files, because in the future I want to generate my own. I'm having problems with dynamic connectors. When defining them as follows:
<Shape ID="46" Type="Shape" Master="10">
<Geom IX="0">
<MoveTo IX='1'></MoveTo><LineTo IX='23'></LineTo></Geom>
</Shape>
....
<Connect FromSheet="45" FromCell="BeginX" FromPart="9" ToSheet="1" ToCell="PinX" ToPart="3" />
<Connect FromSheet="45" FromCell="EndX" FromPart="12" ToSheet="23" ToCell="PinX" ToPart="3" />
they are not displayed. After moving a node, the connectors are displayed. What am I missing?
When taking the minimal settings from a Visio generated .vdx file, there are lots of coordinates, which I want to avoid:
<Shape ID="47" Type="Shape" Master="10">
<XForm>
<PinX F="Inh">1.669258233656828</PinX>
<PinY F="Inh">7.519214852067909</PinY>
</XForm>
<XForm1D>
<BeginX F="_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)">1.737275462308963</BeginX>
<BeginY F="_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)">7.671541057367827</BeginY>
<EndX F="_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)">1.601241005004693</EndX>
<EndY F="_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)">7.366888646767992</EndY>
</XForm1D>
<Geom IX="0">
<LineTo IX="2"><X>-0.1664424255025283</X><Y>-0.3046524105998358</Y></LineTo>
</Geom>
</Shape>
What is the best and easiest way to work with dynamic connectors in .vdx files?
EDIT: With Visio 2010 it is much better, and the connectors are shown most of the time. So it really looks like a Visio bug...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据连接文档:
在不受信任的情况下XML 文件,当 Visio 打开文件时,它使用 Connect 元素来设置形状的粘合公式,类似于 Automation 中的 GlueTo 方法。但是,几何图形不会更新,因此可能需要手动重新布线连接器。
According to Connect documentation:
In untrusted XML files, when Visio opens the file, it uses the Connect elements to set glue formulas for shapes, similar to the GlueTo method in Automation. However, geometry will not be updated, so connectors may need to be manually rerouted.
在 Visio 2010 中,会显示连接器,因此看起来这是 Visio 早期版本中的错误。
With Visio 2010, the connectors are displayed, so it looks like it was a bug in an earlier version of Visio.