<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Jari,</p>
I noticed that FCPage:CalcLastMeasure() can be extremely slow on
huge and crowded scores.<br>
The code snippet below that only calculates the last measure of a
page on an 80 pages score<b> took about 5 seconds</b> on a very fast
PC. The orchestra score had about 16000 frame assignments and more
than 60000 entries.<br>
<br>
Workaround: <br>
I use FCPage:GetFirstSystem() instead, then retrieve the first
measure and calculate the last measure on the last page where a
measure was found. This is calculated instantly (0.000s).<br>
<br>
Best,<br>
Jan<br>
<br>
local pages=finale.FCPages()<br>
pages:LoadAll()<br>
print(pages.Count)<br>
for page in each(pages) do<br>
local i=page:CalcLastMeasure() --calculate last measure number<br>
end<br>
<br>
Running [Unnamed Script] ======><br>
80<br>
<======= [Unnamed Script] succeeded (Processing time: <b>5.056 s</b>).<br>
</body>
</html>