none
Calculate absolutely X coordinate child shape of GroupShape

    Question

  • Sorry for my English :)

    I try get absolutely x coordinate child shape (Freeform 39) from GroupShape

    coordinates

    My calculation: 4637017 (GroupShape X) + 5863712 (target ChildShape) = 10500729, but that calculation is incorrect, because when I added separate shape with this X (10500729) coordinate I see their located are different.

    How properly to calculate absoulutely X coordinate of child shape?




    mercredi 18 avril 2018 12:24

Réponses

  • I solved this task. All right, if we wanna to calculate absolutely position child shape on the slide to do that we can use following formula:

    absChildShapeOffset,x(y) =  childShapeOffset,x(y) + groupShapeOffset,x(y) - childShapeOffset,x(y)

    samedi 5 mai 2018 12:26

Toutes les réponses

  • Hi adamShakhabov,

    First, I want to confirm with you that for which Office Application you are developing this code?

    Then try to provide your code.

    We will try to make a test with it and try to find the issue.

    You can also try to post the picture of the actual output and desired output.

    I will try to find a way to correctly calculate the coordinate value.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    jeudi 19 avril 2018 06:04
    Modérateur

  • Actual output (xml)

    <?xml version="1.0" encoding="UTF-8"?>
    <p:sld xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
       <p:cSld>
          <p:spTree>
             <p:nvGrpSpPr>
                <p:cNvPr id="1" name="" />
                <p:cNvGrpSpPr />
                <p:nvPr />
             </p:nvGrpSpPr>
             <p:grpSpPr>
                <a:xfrm>
                   <a:off x="0" y="0" />
                   <a:ext cx="0" cy="0" />
                   <a:chOff x="0" y="0" />
                   <a:chExt cx="0" cy="0" />
                </a:xfrm>
             </p:grpSpPr>
             <p:grpSp>
                <p:nvGrpSpPr>
                   <p:cNvPr id="6" name="Group 50">
                      <a:extLst>
                         <a:ext uri="{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}">
                            <a16:creationId xmlns:a16="http://schemas.microsoft.com/office/drawing/2014/main" id="{8DB05407-77D7-499B-B344-9B1BCE58BF6F}" />
                         </a:ext>
                      </a:extLst>
                   </p:cNvPr>
                   <p:cNvGrpSpPr />
                   <p:nvPr />
                </p:nvGrpSpPr>
                <p:grpSpPr>
                   <a:xfrm>
                      <a:off x="1436819" y="1929700" />
                      <a:ext cx="1168676" cy="579718" />
                      <a:chOff x="563225" y="1336529" />
                      <a:chExt cx="1126054" cy="861088" />
                   </a:xfrm>
                </p:grpSpPr>
                <p:sp>
                   <p:nvSpPr>
                      <p:cNvPr id="7" name="Freeform 51">
                         <a:extLst>
                            <a:ext uri="{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}">
                               <a16:creationId xmlns:a16="http://schemas.microsoft.com/office/drawing/2014/main" id="{17BEC6F3-ACB3-4652-B0FE-0485FC5BC5F3}" />
                            </a:ext>
                         </a:extLst>
                      </p:cNvPr>
                      <p:cNvSpPr />
                      <p:nvPr />
                   </p:nvSpPr>
                   <p:spPr>
                      <a:xfrm>
                         <a:off x="563225" y="1336529" />
                         <a:ext cx="843676" cy="777097" />
                      </a:xfrm>
                      <a:custGeom>
                         <a:avLst />
                         <a:gdLst>
                            <a:gd name="connsiteX0" fmla="*/ 0 w 689198" />
                            <a:gd name="connsiteY0" fmla="*/ 502939 h 777098" />
                            <a:gd name="connsiteX1" fmla="*/ 130628 w 689198" />
                            <a:gd name="connsiteY1" fmla="*/ 502939 h 777098" />
                            <a:gd name="connsiteX2" fmla="*/ 130628 w 689198" />
                            <a:gd name="connsiteY2" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX3" fmla="*/ 0 w 689198" />
                            <a:gd name="connsiteY3" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX4" fmla="*/ 186190 w 689198" />
                            <a:gd name="connsiteY4" fmla="*/ 292125 h 777098" />
                            <a:gd name="connsiteX5" fmla="*/ 316818 w 689198" />
                            <a:gd name="connsiteY5" fmla="*/ 292125 h 777098" />
                            <a:gd name="connsiteX6" fmla="*/ 316818 w 689198" />
                            <a:gd name="connsiteY6" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX7" fmla="*/ 186190 w 689198" />
                            <a:gd name="connsiteY7" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX8" fmla="*/ 372380 w 689198" />
                            <a:gd name="connsiteY8" fmla="*/ 83447 h 777098" />
                            <a:gd name="connsiteX9" fmla="*/ 503008 w 689198" />
                            <a:gd name="connsiteY9" fmla="*/ 83447 h 777098" />
                            <a:gd name="connsiteX10" fmla="*/ 503008 w 689198" />
                            <a:gd name="connsiteY10" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX11" fmla="*/ 372380 w 689198" />
                            <a:gd name="connsiteY11" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX12" fmla="*/ 558570 w 689198" />
                            <a:gd name="connsiteY12" fmla="*/ 0 h 777098" />
                            <a:gd name="connsiteX13" fmla="*/ 689198 w 689198" />
                            <a:gd name="connsiteY13" fmla="*/ 0 h 777098" />
                            <a:gd name="connsiteX14" fmla="*/ 689198 w 689198" />
                            <a:gd name="connsiteY14" fmla="*/ 777098 h 777098" />
                            <a:gd name="connsiteX15" fmla="*/ 558570 w 689198" />
                            <a:gd name="connsiteY15" fmla="*/ 777098 h 777098" />
                         </a:gdLst>
                         <a:ahLst />
                         <a:cxnLst>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX0" y="connsiteY0" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX1" y="connsiteY1" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX2" y="connsiteY2" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX3" y="connsiteY3" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX4" y="connsiteY4" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX5" y="connsiteY5" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX6" y="connsiteY6" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX7" y="connsiteY7" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX8" y="connsiteY8" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX9" y="connsiteY9" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX10" y="connsiteY10" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX11" y="connsiteY11" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX12" y="connsiteY12" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX13" y="connsiteY13" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX14" y="connsiteY14" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX15" y="connsiteY15" />
                            </a:cxn>
                         </a:cxnLst>
                         <a:rect l="l" t="t" r="r" b="b" />
                         <a:pathLst>
                            <a:path w="689198" h="777098">
                               <a:moveTo>
                                  <a:pt x="0" y="502939" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="130628" y="502939" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="130628" y="777098" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="0" y="777098" />
                               </a:lnTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="186190" y="292125" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="316818" y="292125" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="316818" y="777098" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="186190" y="777098" />
                               </a:lnTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="372380" y="83447" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="503008" y="83447" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="503008" y="777098" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="372380" y="777098" />
                               </a:lnTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="558570" y="0" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="689198" y="0" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="689198" y="777098" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="558570" y="777098" />
                               </a:lnTo>
                               <a:close />
                            </a:path>
                         </a:pathLst>
                      </a:custGeom>
                      <a:solidFill>
                         <a:srgbClr val="96B2C4" />
                      </a:solidFill>
                      <a:ln>
                         <a:noFill />
                      </a:ln>
                   </p:spPr>
                   <p:style>
                      <a:lnRef idx="2">
                         <a:schemeClr val="accent1">
                            <a:shade val="50000" />
                         </a:schemeClr>
                      </a:lnRef>
                      <a:fillRef idx="1">
                         <a:schemeClr val="accent1" />
                      </a:fillRef>
                      <a:effectRef idx="0">
                         <a:schemeClr val="accent1" />
                      </a:effectRef>
                      <a:fontRef idx="minor">
                         <a:schemeClr val="lt1" />
                      </a:fontRef>
                   </p:style>
                   <p:txBody>
                      <a:bodyPr wrap="square" rtlCol="0" anchor="ctr">
                         <a:noAutofit />
                      </a:bodyPr>
                      <a:lstStyle />
                      <a:p>
                         <a:pPr algn="ctr" />
                         <a:endParaRPr lang="en-US" sz="1400" dirty="0">
                            <a:solidFill>
                               <a:srgbClr val="000000" />
                            </a:solidFill>
                         </a:endParaRPr>
                      </a:p>
                   </p:txBody>
                </p:sp>
                <p:sp>
                   <p:nvSpPr>
                      <p:cNvPr id="8" name="Freeform 52">
                         <a:extLst>
                            <a:ext uri="{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}">
                               <a16:creationId xmlns:a16="http://schemas.microsoft.com/office/drawing/2014/main" id="{D4073F8C-802F-409F-9527-6BE9826306EF}" />
                            </a:ext>
                         </a:extLst>
                      </p:cNvPr>
                      <p:cNvSpPr />
                      <p:nvPr />
                   </p:nvSpPr>
                   <p:spPr>
                      <a:xfrm>
                         <a:off x="1161362" y="1544665" />
                         <a:ext cx="527917" cy="652954" />
                      </a:xfrm>
                      <a:custGeom>
                         <a:avLst />
                         <a:gdLst>
                            <a:gd name="connsiteX0" fmla="*/ 326477 w 652954" />
                            <a:gd name="connsiteY0" fmla="*/ 403102 h 652954" />
                            <a:gd name="connsiteX1" fmla="*/ 180862 w 652954" />
                            <a:gd name="connsiteY1" fmla="*/ 511833 h 652954" />
                            <a:gd name="connsiteX2" fmla="*/ 253669 w 652954" />
                            <a:gd name="connsiteY2" fmla="*/ 511833 h 652954" />
                            <a:gd name="connsiteX3" fmla="*/ 253669 w 652954" />
                            <a:gd name="connsiteY3" fmla="*/ 620564 h 652954" />
                            <a:gd name="connsiteX4" fmla="*/ 399284 w 652954" />
                            <a:gd name="connsiteY4" fmla="*/ 620564 h 652954" />
                            <a:gd name="connsiteX5" fmla="*/ 399284 w 652954" />
                            <a:gd name="connsiteY5" fmla="*/ 511833 h 652954" />
                            <a:gd name="connsiteX6" fmla="*/ 472091 w 652954" />
                            <a:gd name="connsiteY6" fmla="*/ 511833 h 652954" />
                            <a:gd name="connsiteX7" fmla="*/ 345756 w 652954" />
                            <a:gd name="connsiteY7" fmla="*/ 239963 h 652954" />
                            <a:gd name="connsiteX8" fmla="*/ 346142 w 652954" />
                            <a:gd name="connsiteY8" fmla="*/ 240121 h 652954" />
                            <a:gd name="connsiteX9" fmla="*/ 367051 w 652954" />
                            <a:gd name="connsiteY9" fmla="*/ 284104 h 652954" />
                            <a:gd name="connsiteX10" fmla="*/ 351268 w 652954" />
                            <a:gd name="connsiteY10" fmla="*/ 308783 h 652954" />
                            <a:gd name="connsiteX11" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY11" fmla="*/ 313758 h 652954" />
                            <a:gd name="connsiteX12" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY12" fmla="*/ 240237 h 652954" />
                            <a:gd name="connsiteX13" fmla="*/ 345408 w 652954" />
                            <a:gd name="connsiteY13" fmla="*/ 241377 h 652954" />
                            <a:gd name="connsiteX14" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY14" fmla="*/ 112695 h 652954" />
                            <a:gd name="connsiteX15" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY15" fmla="*/ 188367 h 652954" />
                            <a:gd name="connsiteX16" fmla="*/ 310939 w 652954" />
                            <a:gd name="connsiteY16" fmla="*/ 188312 h 652954" />
                            <a:gd name="connsiteX17" fmla="*/ 285299 w 652954" />
                            <a:gd name="connsiteY17" fmla="*/ 146372 h 652954" />
                            <a:gd name="connsiteX18" fmla="*/ 298842 w 652954" />
                            <a:gd name="connsiteY18" fmla="*/ 120049 h 652954" />
                            <a:gd name="connsiteX19" fmla="*/ 324025 w 652954" />
                            <a:gd name="connsiteY19" fmla="*/ 32389 h 652954" />
                            <a:gd name="connsiteX20" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY20" fmla="*/ 45280 h 652954" />
                            <a:gd name="connsiteX21" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY21" fmla="*/ 70729 h 652954" />
                            <a:gd name="connsiteX22" fmla="*/ 297459 w 652954" />
                            <a:gd name="connsiteY22" fmla="*/ 74383 h 652954" />
                            <a:gd name="connsiteX23" fmla="*/ 244932 w 652954" />
                            <a:gd name="connsiteY23" fmla="*/ 142249 h 652954" />
                            <a:gd name="connsiteX24" fmla="*/ 296214 w 652954" />
                            <a:gd name="connsiteY24" fmla="*/ 226129 h 652954" />
                            <a:gd name="connsiteX25" fmla="*/ 303197 w 652954" />
                            <a:gd name="connsiteY25" fmla="*/ 228095 h 652954" />
                            <a:gd name="connsiteX26" fmla="*/ 302650 w 652954" />
                            <a:gd name="connsiteY26" fmla="*/ 230317 h 652954" />
                            <a:gd name="connsiteX27" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY27" fmla="*/ 232511 h 652954" />
                            <a:gd name="connsiteX28" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY28" fmla="*/ 312825 h 652954" />
                            <a:gd name="connsiteX29" fmla="*/ 308492 w 652954" />
                            <a:gd name="connsiteY29" fmla="*/ 312027 h 652954" />
                            <a:gd name="connsiteX30" fmla="*/ 286708 w 652954" />
                            <a:gd name="connsiteY30" fmla="*/ 275543 h 652954" />
                            <a:gd name="connsiteX31" fmla="*/ 246133 w 652954" />
                            <a:gd name="connsiteY31" fmla="*/ 275031 h 652954" />
                            <a:gd name="connsiteX32" fmla="*/ 303586 w 652954" />
                            <a:gd name="connsiteY32" fmla="*/ 353684 h 652954" />
                            <a:gd name="connsiteX33" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY33" fmla="*/ 355218 h 652954" />
                            <a:gd name="connsiteX34" fmla="*/ 311134 w 652954" />
                            <a:gd name="connsiteY34" fmla="*/ 374452 h 652954" />
                            <a:gd name="connsiteX35" fmla="*/ 324025 w 652954" />
                            <a:gd name="connsiteY35" fmla="*/ 387342 h 652954" />
                            <a:gd name="connsiteX36" fmla="*/ 328109 w 652954" />
                            <a:gd name="connsiteY36" fmla="*/ 387342 h 652954" />
                            <a:gd name="connsiteX37" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY37" fmla="*/ 374452 h 652954" />
                            <a:gd name="connsiteX38" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY38" fmla="*/ 355703 h 652954" />
                            <a:gd name="connsiteX39" fmla="*/ 348855 w 652954" />
                            <a:gd name="connsiteY39" fmla="*/ 354304 h 652954" />
                            <a:gd name="connsiteX40" fmla="*/ 406822 w 652954" />
                            <a:gd name="connsiteY40" fmla="*/ 292155 h 652954" />
                            <a:gd name="connsiteX41" fmla="*/ 365003 w 652954" />
                            <a:gd name="connsiteY41" fmla="*/ 204188 h 652954" />
                            <a:gd name="connsiteX42" fmla="*/ 355505 w 652954" />
                            <a:gd name="connsiteY42" fmla="*/ 200310 h 652954" />
                            <a:gd name="connsiteX43" fmla="*/ 355953 w 652954" />
                            <a:gd name="connsiteY43" fmla="*/ 198490 h 652954" />
                            <a:gd name="connsiteX44" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY44" fmla="*/ 194621 h 652954" />
                            <a:gd name="connsiteX45" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY45" fmla="*/ 113043 h 652954" />
                            <a:gd name="connsiteX46" fmla="*/ 341619 w 652954" />
                            <a:gd name="connsiteY46" fmla="*/ 113177 h 652954" />
                            <a:gd name="connsiteX47" fmla="*/ 366186 w 652954" />
                            <a:gd name="connsiteY47" fmla="*/ 148357 h 652954" />
                            <a:gd name="connsiteX48" fmla="*/ 406707 w 652954" />
                            <a:gd name="connsiteY48" fmla="*/ 146219 h 652954" />
                            <a:gd name="connsiteX49" fmla="*/ 370704 w 652954" />
                            <a:gd name="connsiteY49" fmla="*/ 82977 h 652954" />
                            <a:gd name="connsiteX50" fmla="*/ 360990 w 652954" />
                            <a:gd name="connsiteY50" fmla="*/ 77416 h 652954" />
                            <a:gd name="connsiteX51" fmla="*/ 344997 w 652954" />
                            <a:gd name="connsiteY51" fmla="*/ 71662 h 652954" />
                            <a:gd name="connsiteX52" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY52" fmla="*/ 71133 h 652954" />
                            <a:gd name="connsiteX53" fmla="*/ 341000 w 652954" />
                            <a:gd name="connsiteY53" fmla="*/ 45280 h 652954" />
                            <a:gd name="connsiteX54" fmla="*/ 328109 w 652954" />
                            <a:gd name="connsiteY54" fmla="*/ 32389 h 652954" />
                            <a:gd name="connsiteX55" fmla="*/ 326477 w 652954" />
                            <a:gd name="connsiteY55" fmla="*/ 0 h 652954" />
                            <a:gd name="connsiteX56" fmla="*/ 652954 w 652954" />
                            <a:gd name="connsiteY56" fmla="*/ 326477 h 652954" />
                            <a:gd name="connsiteX57" fmla="*/ 326477 w 652954" />
                            <a:gd name="connsiteY57" fmla="*/ 652954 h 652954" />
                            <a:gd name="connsiteX58" fmla="*/ 0 w 652954" />
                            <a:gd name="connsiteY58" fmla="*/ 326477 h 652954" />
                            <a:gd name="connsiteX59" fmla="*/ 326477 w 652954" />
                            <a:gd name="connsiteY59" fmla="*/ 0 h 652954" />
                         </a:gdLst>
                         <a:ahLst />
                         <a:cxnLst>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX0" y="connsiteY0" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX1" y="connsiteY1" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX2" y="connsiteY2" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX3" y="connsiteY3" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX4" y="connsiteY4" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX5" y="connsiteY5" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX6" y="connsiteY6" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX7" y="connsiteY7" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX8" y="connsiteY8" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX9" y="connsiteY9" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX10" y="connsiteY10" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX11" y="connsiteY11" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX12" y="connsiteY12" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX13" y="connsiteY13" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX14" y="connsiteY14" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX15" y="connsiteY15" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX16" y="connsiteY16" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX17" y="connsiteY17" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX18" y="connsiteY18" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX19" y="connsiteY19" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX20" y="connsiteY20" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX21" y="connsiteY21" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX22" y="connsiteY22" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX23" y="connsiteY23" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX24" y="connsiteY24" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX25" y="connsiteY25" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX26" y="connsiteY26" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX27" y="connsiteY27" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX28" y="connsiteY28" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX29" y="connsiteY29" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX30" y="connsiteY30" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX31" y="connsiteY31" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX32" y="connsiteY32" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX33" y="connsiteY33" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX34" y="connsiteY34" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX35" y="connsiteY35" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX36" y="connsiteY36" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX37" y="connsiteY37" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX38" y="connsiteY38" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX39" y="connsiteY39" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX40" y="connsiteY40" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX41" y="connsiteY41" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX42" y="connsiteY42" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX43" y="connsiteY43" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX44" y="connsiteY44" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX45" y="connsiteY45" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX46" y="connsiteY46" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX47" y="connsiteY47" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX48" y="connsiteY48" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX49" y="connsiteY49" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX50" y="connsiteY50" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX51" y="connsiteY51" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX52" y="connsiteY52" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX53" y="connsiteY53" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX54" y="connsiteY54" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX55" y="connsiteY55" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX56" y="connsiteY56" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX57" y="connsiteY57" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX58" y="connsiteY58" />
                            </a:cxn>
                            <a:cxn ang="0">
                               <a:pos x="connsiteX59" y="connsiteY59" />
                            </a:cxn>
                         </a:cxnLst>
                         <a:rect l="l" t="t" r="r" b="b" />
                         <a:pathLst>
                            <a:path w="652954" h="652954">
                               <a:moveTo>
                                  <a:pt x="326477" y="403102" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="180862" y="511833" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="253669" y="511833" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="253669" y="620564" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="399284" y="620564" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="399284" y="511833" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="472091" y="511833" />
                               </a:lnTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="345756" y="239963" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="346142" y="240121" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="361841" y="248346" />
                                  <a:pt x="370686" y="266145" />
                                  <a:pt x="367051" y="284104" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="364974" y="294367" />
                                  <a:pt x="359163" y="302996" />
                                  <a:pt x="351268" y="308783" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="313758" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="240237" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="345408" y="241377" />
                               </a:lnTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="311134" y="112695" />
                               </a:moveTo>
                               <a:lnTo>
                                  <a:pt x="311134" y="188367" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="310939" y="188312" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="294233" y="181822" />
                                  <a:pt x="283414" y="164822" />
                                  <a:pt x="285299" y="146372" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="286375" y="135829" />
                                  <a:pt x="291419" y="126588" />
                                  <a:pt x="298842" y="120049" />
                               </a:cubicBezTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="324025" y="32389" />
                               </a:moveTo>
                               <a:cubicBezTo>
                                  <a:pt x="316906" y="32389" />
                                  <a:pt x="311134" y="38161" />
                                  <a:pt x="311134" y="45280" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="311134" y="70729" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="297459" y="74383" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="269242" y="84852" />
                                  <a:pt x="248162" y="110620" />
                                  <a:pt x="244932" y="142249" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="241163" y="179149" />
                                  <a:pt x="262800" y="213149" />
                                  <a:pt x="296214" y="226129" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="303197" y="228095" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="302650" y="230317" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="311134" y="232511" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="311134" y="312825" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="308492" y="312027" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="295299" y="305131" />
                                  <a:pt x="286509" y="291248" />
                                  <a:pt x="286708" y="275543" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="246133" y="275031" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="245671" y="311676" />
                                  <a:pt x="269676" y="343362" />
                                  <a:pt x="303586" y="353684" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="311134" y="355218" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="311134" y="374452" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="311134" y="381571" />
                                  <a:pt x="316906" y="387342" />
                                  <a:pt x="324025" y="387342" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="328109" y="387342" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="335229" y="387342" />
                                  <a:pt x="341000" y="381571" />
                                  <a:pt x="341000" y="374452" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="355703" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="348855" y="354304" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="377554" y="346381" />
                                  <a:pt x="400591" y="322943" />
                                  <a:pt x="406822" y="292155" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="414093" y="256235" />
                                  <a:pt x="396400" y="220637" />
                                  <a:pt x="365003" y="204188" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="355505" y="200310" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="355953" y="198490" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="194621" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="113043" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="341619" y="113177" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="355454" y="119097" />
                                  <a:pt x="365349" y="132482" />
                                  <a:pt x="366186" y="148357" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="406707" y="146219" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="405312" y="119762" />
                                  <a:pt x="391336" y="96761" />
                                  <a:pt x="370704" y="82977" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="367609" y="80910" />
                                  <a:pt x="364364" y="79049" />
                                  <a:pt x="360990" y="77416" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="355929" y="74966" />
                                  <a:pt x="350575" y="73026" />
                                  <a:pt x="344997" y="71662" />
                               </a:cubicBezTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="71133" />
                               </a:lnTo>
                               <a:lnTo>
                                  <a:pt x="341000" y="45280" />
                               </a:lnTo>
                               <a:cubicBezTo>
                                  <a:pt x="341000" y="38161" />
                                  <a:pt x="335229" y="32389" />
                                  <a:pt x="328109" y="32389" />
                               </a:cubicBezTo>
                               <a:close />
                               <a:moveTo>
                                  <a:pt x="326477" y="0" />
                               </a:moveTo>
                               <a:cubicBezTo>
                                  <a:pt x="506785" y="0" />
                                  <a:pt x="652954" y="146169" />
                                  <a:pt x="652954" y="326477" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="652954" y="506785" />
                                  <a:pt x="506785" y="652954" />
                                  <a:pt x="326477" y="652954" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="146169" y="652954" />
                                  <a:pt x="0" y="506785" />
                                  <a:pt x="0" y="326477" />
                               </a:cubicBezTo>
                               <a:cubicBezTo>
                                  <a:pt x="0" y="146169" />
                                  <a:pt x="146169" y="0" />
                                  <a:pt x="326477" y="0" />
                               </a:cubicBezTo>
                               <a:close />
                            </a:path>
                         </a:pathLst>
                      </a:custGeom>
                      <a:solidFill>
                         <a:srgbClr val="354E5D" />
                      </a:solidFill>
                      <a:ln>
                         <a:noFill />
                      </a:ln>
                   </p:spPr>
                   <p:style>
                      <a:lnRef idx="2">
                         <a:schemeClr val="accent1">
                            <a:shade val="50000" />
                         </a:schemeClr>
                      </a:lnRef>
                      <a:fillRef idx="1">
                         <a:schemeClr val="accent1" />
                      </a:fillRef>
                      <a:effectRef idx="0">
                         <a:schemeClr val="accent1" />
                      </a:effectRef>
                      <a:fontRef idx="minor">
                         <a:schemeClr val="lt1" />
                      </a:fontRef>
                   </p:style>
                   <p:txBody>
                      <a:bodyPr rtlCol="0" anchor="ctr" />
                      <a:lstStyle />
                      <a:p>
                         <a:pPr algn="ctr" />
                         <a:endParaRPr lang="en-US" sz="1400" dirty="0">
                            <a:solidFill>
                               <a:srgbClr val="000000" />
                            </a:solidFill>
                         </a:endParaRPr>
                      </a:p>
                   </p:txBody>
                </p:sp>
             </p:grpSp>
             <p:sp>
                <p:nvSpPr>
                   <p:cNvPr id="2" name="TextBox 1">
                      <a:extLst>
                         <a:ext uri="{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}">
                            <a16:creationId xmlns:a16="http://schemas.microsoft.com/office/drawing/2014/main" id="{FB02ADD3-2D10-48CC-8013-F24FAEE8C2EC}" />
                         </a:ext>
                      </a:extLst>
                   </p:cNvPr>
                   <p:cNvSpPr txBox="1" />
                   <p:nvPr />
                </p:nvSpPr>
                <p:spPr>
                   <a:xfrm>
                      <a:off x="2057596" y="612841" />
                      <a:ext cx="849592" cy="369332" />
                   </a:xfrm>
                   <a:prstGeom prst="rect">
                      <a:avLst />
                   </a:prstGeom>
                </p:spPr>
                <p:style>
                   <a:lnRef idx="2">
                      <a:schemeClr val="dk1" />
                   </a:lnRef>
                   <a:fillRef idx="1">
                      <a:schemeClr val="lt1" />
                   </a:fillRef>
                   <a:effectRef idx="0">
                      <a:schemeClr val="dk1" />
                   </a:effectRef>
                   <a:fontRef idx="minor">
                      <a:schemeClr val="dk1" />
                   </a:fontRef>
                </p:style>
                <p:txBody>
                   <a:bodyPr wrap="none" rtlCol="0">
                      <a:spAutoFit />
                   </a:bodyPr>
                   <a:lstStyle />
                   <a:p>
                      <a:r>
                         <a:rPr lang="en-US" dirty="0" err="1" />
                         <a:t>myText</a:t>
                      </a:r>
                      <a:endParaRPr lang="en-US" dirty="0" />
                   </a:p>
                </p:txBody>
             </p:sp>
          </p:spTree>
          <p:extLst>
             <p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
                <p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="2051546456" />
             </p:ext>
          </p:extLst>
       </p:cSld>
       <p:clrMapOvr>
          <a:masterClrMapping />
       </p:clrMapOvr>
    </p:sld>
    actual output (picture)

    Desired output

    As you see to achieve this I need get absolutely X coordinate of circle element who is in group object, then set that value for my textBox (Text).

    jeudi 19 avril 2018 21:34
  • I use PowerPoint.
    jeudi 19 avril 2018 21:45
  • Hi adamShakhabov,

    I can see that your desired output is below.

    So The value of X should remain same.

    But you had mentioned that,"My calculation: 4637017 (GroupShape X) + 5863712 (target ChildShape) = 10500729, but that calculation is incorrect, because when I added separate shape with this X (10500729) coordinate I see their located are different."

    If you want to add textbox on same X axis then you need not to add anything. you just need to use same value of X.

    For an example, Here I am using Paint to show you the coordinates in real time.

    I added one line and at the both end I added a triangle.

    So assume that your 2 shapes are those 2 triangles.

    So you will notice that when I check the coordinates then value of X is same for both end.

    So you also not need to change the value of X to add other shape in same line.

    Then I again check your actual output and it looks like it is working correctly.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    vendredi 20 avril 2018 09:25
    Modérateur
  • Hi adamShakhabov,

    Is your issue is solved now?

    I find that you did not done any follow up for a long time.

    If your issue is fixed by you then I suggest you to post your solution and mark it as an answer.

    If your issue is still exist then try to refer the suggestions given by the community members.

    If you think that the suggestions given by the community member can solve your issue then mark the helpful suggestion as an answer.

    It will help us to close this thread and it also can be helpful to other community members who will meet with same kind of issues in future.

    If you have any further questions then you can let us know about it, We will try to provide you further suggestions to solve it.

    I suggest you to update the status of this thread and take appropriate actions to close it.

    Thanks for your understanding.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    mercredi 2 mai 2018 09:51
    Modérateur
  • I solved this task. All right, if we wanna to calculate absolutely position child shape on the slide to do that we can use following formula:

    absChildShapeOffset,x(y) =  childShapeOffset,x(y) + groupShapeOffset,x(y) - childShapeOffset,x(y)

    samedi 5 mai 2018 12:26