xml - how to make the connection between group shape id in Visio? -


i facing problem when using xpath read visio xml file (.vdx). create custom stencil grouping 2 sub shapes. instance shape consist of 2 sub shapes b , c. when create 2 instances of a1(consist of b1 , c1) , a2(consist of b2 , c2). connect tag in xml doesn't show relationship of a1 , b1. instead, shows b1 , b2 connected.

please take @ xml below, image shape id a1 1 (sub shape id 3, 4), a2 2 (sub shape id 5, 6)

<shpaes>    <shape id ="1" name="shapea1" type="group" master="12">       <shapes>         <shape id ="3" type="group" master="12">         <shape id ="4" type="group" master="12">               </shapes>    </shape>     <shape id ="2" name="shapea2" type="group" master="12">       <shapes>         <shape id ="5" type="group" master="12">         <shape id ="6" type="group" master="12">               </shapes>    </shape>    <shape id ="7" name="connector" type="group" master="12">    </shape> </shapes>   <connects>  <connect topart="3" tocell="pinx" tosheet="3" frompart="12" fromcell="beginx"     fromsheet="7"/>  <connect topart="3" tocell="pinx" tosheet="5" frompart="12" fromcell="endx" fromsheet="7"/> </connects> 

i want tosheet attribute in connect "1" , "2" represent group shape id rather subshape id.

please let me know should in visio

thank !!

when group shape generic hidden group provides no geometry (what when select subshapes , hit ctrl-g), can easy inadvertently connect subshapes rather outer group shape. appears happened in case.

the problem generic hidden group shape's selectmode set 1 (select group first), allows user select (or glue to) subshapes of group. setting selectmode of group 0 (select group only) solves problem. selectmode can changed directly in shapesheet window or behavior dialog (available in developer tab in visio 2010 , later).


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -