dynamic connectors in .vdx files

Started by #9370, September 03, 2010, 10:38:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

#9370

Hello,

currently I try to understand vdx files, because in future I want to generate my own. I now have problems with dynamic connectors.
When defining them like 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?

Thanks,
/#9370

#9370

Hello,

is there nobody who has an idea? It happens with Visio 2007 and 2010...

Thanks,
#9370

Paul Herber

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

#9370

yeah - but it does not work...

Thanks,
#9370

Nikolay

Don't you think it would be a bit too optimistic to expect Visio to auto-route connectors for you? ;D
Simply put, Visio does not support auto-routing dynamic connectors from XML.
You need to "draw" connectors yourself.

#9370

Hi Nikolay,

what do you mean by "draw connectors yourself"? I define the master and then inhrerit the shapes in the page section. Is there something else to do? When moving a node, the connector is shown and also moved, so the connection itself works, but the connector is not shown after opening the file with Visio.
In case I have to define all the coordinates, how do I calculate them? The corresponding node coordinates are slightly different...

Thanks,
Mathias

Nikolay

Hmm... Then maybe I was wrong, and Visio does auto-create and auto-route connectors from XML. Actually I'm not that sure about that now.
What I meant is in case you create dynamic connector shapes, you shouldn't have any troubles.
I have no idea how to calculate coordinates for these connectors though :(

#9370