This issue was solved. The new shape must has same connection ports as the shape to be replaced.
Error with Shape.ReplaceShape method

Jeanne
96
Reputation points
Hi all,
I am working on replacing shapes (shp) with a saved master (mst) in My Shapes. Shape.ReplaceShape method was used. From the watch window, both shp and mst have correct values and types. However, invalid parameter error was received. I searched help document and googled but couldn’t find any help.
Thank you in advance.
Jeanne
Accepted answer
-
1 additional answer
Sort by: Most helpful
-
Dave Patrick 341K Reputation points MVP
2020-12-08T20:48:45.353+00:00 Might try them over here in dedicated office development forums.
https://social.msdn.microsoft.com/Forums/Lync/en-US/home?category=officedev--please don't forget to Accept as answer if the reply is helpful--
-
You're welcome.
--please don't forget to
Accept as answer
if the reply is helpful--