Advertisement
ilyakharlamov

Text Along a Connector’s Path in Visio 2010 save me as .vdx

Oct 14th, 2012
7,278
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.27 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--  
  3.  
  4.   SAVE ME AS align.vdx FILE and Open in Visio 2010
  5.  
  6. -->
  7. <VisioDocument xmlns="http://schemas.microsoft.com/visio/2003/core" xmlns:vx="http://schemas.microsoft.com/visio/2006/extension" xmlns:v14="http://schemas.microsoft.com/office/visio/2010/extension" start="190" metric="0" DocLangID="1033" buildnum="6022" version="14.0" xml:space="preserve">
  8.   <StyleSheets>
  9.     <StyleSheet ID="0" NameU="No Style" Name="No Style"/>
  10.     <StyleSheet ID="1" NameU="Text Only" Name="Text Only" LineStyle="3" FillStyle="3" TextStyle="3"/>
  11.     <StyleSheet ID="3" NameU="Normal" Name="Normal" LineStyle="0" FillStyle="0" TextStyle="0"/>
  12.     <StyleSheet ID="4" NameU="Guide" Name="Guide" LineStyle="3" FillStyle="3" TextStyle="3"/>
  13.     <StyleSheet ID="6" NameU="Connector" Name="Connector" LineStyle="3" FillStyle="3" TextStyle="3"/>
  14.   </StyleSheets>
  15.   <Pages>
  16.     <Page ID="0" NameU="Page-1" ViewScale="1.2715657552083" ViewCenterX="3.81640625" ViewCenterY="7.96875">
  17.       <Shapes>
  18.         <Shape ID="1" NameU="Dynamic connector" Type="Shape" LineStyle="6" FillStyle="6" TextStyle="6">
  19.           <XForm>
  20.             <PinX F="GUARD((BeginX+EndX)/2)">4.099467750832647</PinX>
  21.             <PinY F="GUARD((BeginY+EndY)/2)">7.601320824655908</PinY>
  22.             <Width F="GUARD(EndX-BeginX)">5.301064498334707</Width>
  23.             <Height F="GUARD(EndY-BeginY)">0.2973583506881834</Height>
  24.             <LocPinX F="GUARD(Width*0.5)">2.650532249167354</LocPinX>
  25.             <LocPinY F="GUARD(Height*0.5)">0.1486791753440917</LocPinY>
  26.           </XForm>
  27.           <XForm1D>
  28.             <BeginX>1.448935501665293</BeginX>
  29.             <BeginY>7.452641649311817</BeginY>
  30.             <EndX>6.75</EndX>
  31.             <EndY>7.75</EndY>
  32.           </XForm1D>
  33.           <TextXForm>
  34.             <TxtPinX F="GUARD(User.TextPin)">2.624847156600471</TxtPinX>
  35.             <TxtPinY F="GUARD(User.TextPin)">0.3896417072997101</TxtPinY>
  36.             <TxtWidth F="MAX(TEXTWIDTH(TheText),5*Char.Size)">1.483918070118924</TxtWidth>
  37.             <TxtHeight F="TEXTHEIGHT(TheText,TxtWidth)">0.2444939358181424</TxtHeight>
  38.             <TxtLocPinX F="TxtWidth*0.5">0.7419590350594619</TxtLocPinX>
  39.             <TxtLocPinY F="TxtHeight*0.5">0.1222469679090712</TxtLocPinY>
  40.             <TxtAngle F="User.TextAngle">-0.03446910099950851</TxtAngle>
  41.           </TextXForm>
  42.           <vx:Layout/>
  43.           <v14:Layout />
  44.           <Line>
  45.             <LineWeight Unit="PT" F="Inh">0.003472222222222222</LineWeight>
  46.             <LinePattern F="Inh">1</LinePattern>
  47.             <EndArrowSize F="Inh">2</EndArrowSize>
  48.             <EndArrow>13</EndArrow>
  49.             <BeginArrowSize F="Inh">2</BeginArrowSize>
  50.           </Line>
  51.           <Misc>
  52.             <NoAlignBox>1</NoAlignBox>
  53.             <DynFeedback>2</DynFeedback>
  54.             <GlueType>2</GlueType>
  55.             <BegTrigger F="_XFTRIGGER(Dynamic connector!EventXFMod)">1</BegTrigger>
  56.             <EndTrigger F="_XFTRIGGER(Dynamic connector!EventXFMod)">1</EndTrigger>
  57.             <ObjType>2</ObjType>
  58.             <NoLiveDynamics>1</NoLiveDynamics>
  59.           </Misc>
  60.           <User NameU="angPathEnd" ID="1">
  61.             <Value Unit="DA">-0.03446910099950851</Value>
  62.           </User>
  63.           <v14:User NameU="angPathEnd" ID="1">
  64.             <v14:Value Unit="DA" F="ANGLEALONGPATH(Geometry1.Path,User.pathFraction)">-0.03446910099950851</v14:Value>
  65.           </v14:User>
  66.           <User NameU="pntPathEnd" ID="2">
  67.             <Value Unit="PNT">PNT(3.3663654675135,0.36407211037167)</Value>
  68.           </User>
  69.           <v14:User NameU="pntPathEnd" ID="2">
  70.             <v14:Value Unit="PNT" F="POINTALONGPATH(Geometry1.Path,User.pathFraction)">PNT(3.3663654675135,0.36407211037167)</v14:Value>
  71.           </v14:User>
  72.           <User NameU="TextAngle" ID="3">
  73.             <Value Unit="DA" F="User.angPathEnd+GRAVITY(User.angPathEnd)">-0.03446910099950851</Value>
  74.           </User>
  75.           <User NameU="TextPin" ID="4">
  76.             <Value Unit="PNT" F="PNT(PNTX(User.pntPathEnd)-TxtLocPinX*COS(User.angPathEnd),PNTY(User.pntPathEnd)-TxtLocPinX*SIN(User.angPathEnd))">PNT(2.6248471566005,0.38964170729971)</Value>
  77.           </User>
  78.           <User NameU="txtState" ID="5">
  79.             <Value>2</Value>
  80.           </User>
  81.           <User NameU="pathFraction" ID="6">
  82.             <Value Unit="DL">0.6385385071962257</Value>
  83.           </User>
  84.           <v14:User NameU="pathFraction" ID="6">
  85.             <v14:Value Unit="DL" F="((User.txtState-1)/2)+((1-((User.txtState-1)/2))*TxtWidth/PATHLENGTH(Geometry1.Path))">0.6385385071962257</v14:Value>
  86.           </v14:User>
  87.           <Control NameU="TextPosition" ID="1">
  88.             <X>-1.096875</X>
  89.             <Y>-1.35</Y>
  90.             <XDyn F="Controls.TextPosition">-1.096875</XDyn>
  91.             <YDyn F="Controls.TextPosition.Y">-1.35</YDyn>
  92.             <XCon F="IF(OR(STRSAME(SHAPETEXT(TheText),&quot;&quot;),HideText),5,0)">0</XCon>
  93.             <YCon>5</YCon>
  94.             <Prompt>Reposition Text</Prompt>
  95.           </Control>
  96.           <Act NameU="Row_1" ID="1">
  97.             <Menu>Text Orientation</Menu>
  98.           </Act>
  99.           <Act NameU="Row_2" ID="2">
  100.             <Menu>Position by Control Handle</Menu>
  101.             <Action F="SETF(GetRef(TxtPinX),&quot;SETATREF(Controls.TextPosition)&quot;)+SETF(GetRef(TxtPinY),&quot;SETATREF(Controls.TextPosition.Y)&quot;)+SETF(GetRef(TxtAngle),0)+SETF(GetRef(Controls.TextPosition.YCon),0)+SETF(GetRef(User.txtState),0)">0</Action>
  102.             <Checked F="User.txtState=0">0</Checked>
  103.           </Act>
  104.           <v14:Act NameU="Row_2" ID="2">
  105.             <v14:FlyoutChild>1</v14:FlyoutChild>
  106.           </v14:Act>
  107.           <Act NameU="Row_3" ID="3">
  108.             <Menu>Start Arrow</Menu>
  109.             <Action F="SETF(GetRef(TxtPinX),&quot;GUARD(User.TextPin)&quot;)+SETF(GetRef(TxtPinY),&quot;GUARD(User.TextPin)&quot;)+SETF(GetRef(TxtAngle),&quot;User.TextAngle&quot;)+SETF(GetRef(Controls.TextPosition.YCon),5)+SETF(GetRef(User.txtState),1)+SETF(GetRef(Para.HorzAlign),User.txtState-1)">0</Action>
  110.             <Checked F="User.txtState=1">0</Checked>
  111.           </Act>
  112.           <v14:Act NameU="Row_3" ID="3">
  113.             <v14:FlyoutChild>1</v14:FlyoutChild>
  114.           </v14:Act>
  115.           <Act NameU="Row_4" ID="4">
  116.             <Menu>Mid Arrow</Menu>
  117.             <Action F="SETF(GetRef(TxtPinX),&quot;GUARD(User.TextPin)&quot;)+SETF(GetRef(TxtPinY),&quot;GUARD(User.TextPin)&quot;)+SETF(GetRef(TxtAngle),&quot;User.TextAngle&quot;)+SETF(GetRef(Controls.TextPosition.YCon),5)+SETF(GetRef(User.txtState),2)+SETF(GetRef(Para.HorzAlign),User.txtState-1)">0</Action>
  118.             <Checked F="User.txtState=2">1</Checked>
  119.           </Act>
  120.           <v14:Act NameU="Row_4" ID="4">
  121.             <v14:FlyoutChild>1</v14:FlyoutChild>
  122.           </v14:Act>
  123.           <Act NameU="Row_5" ID="5">
  124.             <Menu>End Arrow</Menu>
  125.             <Action F="SETF(GetRef(TxtPinX),&quot;GUARD(User.TextPin)&quot;)+SETF(GetRef(TxtPinY),&quot;GUARD(User.TextPin)&quot;)+SETF(GetRef(TxtAngle),&quot;User.TextAngle&quot;)+SETF(GetRef(Controls.TextPosition.YCon),5)+SETF(GetRef(User.txtState),3)+SETF(GetRef(Para.HorzAlign),User.txtState-1)">0</Action>
  126.             <Checked F="User.txtState=3">0</Checked>
  127.           </Act>
  128.           <v14:Act NameU="Row_5" ID="5">
  129.             <v14:FlyoutChild>1</v14:FlyoutChild>
  130.           </v14:Act>
  131.           <Char IX="0">
  132.             <Font F="Inh">4</Font>
  133.             <Size F="Inh">0.1111111111111111</Size>
  134.           </Char>
  135.           <Connection IX="0">
  136.             <X>1.009801490764285</X>
  137.             <Y>0.2544640093417829</Y>
  138.           </Connection>
  139.           <Para IX="0">
  140.             <SpLine F="Inh">-1.2</SpLine>
  141.             <HorzAlign>1</HorzAlign>
  142.           </Para>
  143.           <Geom IX="0">
  144.             <NoFill>1</NoFill>
  145.             <MoveTo IX="1">
  146.               <X>0</X>
  147.               <Y>0</Y>
  148.             </MoveTo>
  149.             <LineTo IX="2">
  150.               <X>1.676064498334707</X>
  151.               <Y>0.4223583506881852</Y>
  152.             </LineTo>
  153.             <LineTo IX="3">
  154.               <X>5.301064498334707</X>
  155.               <Y>0.2973583506881834</Y>
  156.             </LineTo>
  157.           </Geom>
  158.           <v14:Geom  IX="0"/>
  159.           <Text>Right Click -&gt; Text Orientation </Text>
  160.         </Shape>
  161.       </Shapes>
  162.     </Page>
  163.   </Pages>
  164. </VisioDocument>
Advertisement
Comments
  • Mouthpear
    1 year
    # text 0.25 KB | 0 0
    1. I just came here from another site where you posted a link to this. I would like to know how you exported from Visio/made this file. I have my own version (of this Connector) that I would like to share to the site. I just don't know how to export all the data.
Add Comment
Please, Sign In to add comment
Advertisement