title: Copy-Paste issue of smartArt in Powerpoint 2007/2010
body: <p>I am working on powerpoint 2007/2010 in C++. I need to delete smart art objects of a smart art which is actually copied from original one.
  I use the following piece of code.</p>
  
  <pre><code>PPT::_SlidePtr pNewSlide=mDummyPresentation-&gt;Slides-&gt;AddSlide(1, PPT::ppLayoutBlank);
  shp-&gt;Copy();
  pNewSlide-&gt;Shapes-&gt;Paste();
  PPT::ShapePtr pSmartArt=pNewSlide-&gt;Shapes-&gt;Item(1);
  if(pSmartArt)
  {
      long int counter = pSmartArt-&gt;GroupItems-&gt;Count;
      for(long int k = 0; k &lt; counter; k++)
      {
          pSmartArt-&gt;GroupItems-&gt;Item(1L)-&gt;Delete();
      }
  }
  </code></pre>
  
  <p>Issue I am facing is that I get count as zero even though the smart art has objects in it.
  If I code the same thing in VB, I face no issues.
  Could anyone please through some light on how to resolve the issue?</p>
  
  <p>Thanks in advance,
  Holla</p>