Problem with PlotEngine?

Problem with PlotEngine?

D_D_K
Advocate Advocate
780 Views
2 Replies
Message 1 of 3

Problem with PlotEngine?

D_D_K
Advocate
Advocate

Hi,

I have set up the details y similar to this post,

my case is the drawings are on the model

however i can only view 1 result instead of multiple at the same time:

 

 

 

 

 

 

 

for (i = 1 to 3) {
    if (i == 1) {
          beginPlot();
	  beginDocument() //true
		beginsheet(); //true
    }
          beginPage()  //i=1 but return eInvalidEngineState 
	  beginGenerateGraphics()
	  endGenerateGraphics()
	  endPage()
}
endsheet();
endDocument()
endPlot()

 

 

 

 

 

 

 after run code , i get the error eInvalidEngineState right at the beginning page

if i keep running then the interface shows only 1 drawing and all buttons locked( i need to esc).

 

Did I put it in the wrong order?

 

Thanks you!

0 Likes
781 Views
2 Replies
Replies (2)
Message 2 of 3

tbrammer
Advisor
Advisor

This is not enough "code" to see the problem. Can you post a buildable sample?
In general it looks OK - although I would prefer this:

beginPlot();
beginDocument()
beginsheet()
for all pages {
     beginPage()
     beginGenerateGraphics()
     endGenerateGraphics()
     endPage()
}
endsheet()
endDocument()
endPlot()

 


Thomas Brammer ● Software Developer ● imos AG ● LinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

0 Likes
Message 3 of 3

D_D_K
Advocate
Advocate

Hi sir,

Thanks for the reply, I was thinking view in same model/layout is not supported, so i switched to view each frames instead.

I'll try rebuilding the code in the next days. 😅

0 Likes