API Support for DrawingDoc.ReplaceViewModel()

I'm using SolidWorks 2023 and using Visual Studio 2017 and C# to access the API.

 

I am using the example provided online here but the example is failing on the actual call ReplaceViewModel() with a return value of false.

https://help.solidworks.com/2023/english/api/sldworksapi/Replace_View_Model_Example_CSharp.htm

 

 

Note that I modified the example to use the correct paths for the locations of the example files.

There is supposedly an outstanding SPR (818790) about this but I can't seem to find this.

 

Can anyone provide assistance?

 

Thanks.

B.