cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Bedrock

Bug in WebLink? Function "ListViews()" does not work with combined 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?

Tags (2)
Announcements