Skip to main content
16-Pearl
March 23, 2020
Solved

Bug in WebLink? Function "ListViews()" does not work with combined views

  • March 23, 2020
  • 1 reply
  • 1483 views

Hi there,

 

I wrote a script that cycles through all Views of a model (Assembly or Part) and exports screenshots.

Works quite sweet. But there seems to be a problem with -at least- parts with combined views.

 

The function "ListViews()" does not work and throws an error "pfcExceptison::XToolkitInalidItem"

var mGlob = pfcCreate("MpfcCOMGlobal");
var oSession = mGlob.GetProESession();
var CurModel = oSession.CurrentModel;

CurModel.ListViews(); 

What's wrong?

Best answer by Mat

ok,

seems to be fixed in 5.0.6.0

1 reply

Mat16-PearlAuthorAnswer
16-Pearl
October 27, 2020

ok,

seems to be fixed in 5.0.6.0