<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I have found out that when you copy (Save as...) the repeat bracket
to a new measure, the new repeat bracket will behave correctly and
not hide when calling sep:AssureStaffPlacement(1) .<br>
So there seems be some measure cell flag that says that the repeat
bracket should hide. But I can't access it.<br>
When I now delete the old repeat bracket in measure 5 and run the
script again to copy back from measure 6 to measure 5, the new
repeat bracket will again behave false and hide. So the "Hide" flag
is not reset by deleting the repeat bracket, but still seems to be
active in the background.<br>
<br>
The result:<br>
- the first repeat bracket is again hidden<br>
- but the copied repeat bracket is fine<br>
<img src="cid:part1.6A34ACC5.A189A9BA@angermueller.com" alt=""><br>
<br>
Here is the new test code (applied to the document from the email
2/7/2019):<br>
<br>
local endrep=finale.FCEndingRepeat()<br>
if endrep:Load(5) then --i.e. load bracket in measure 5<br>
endrep.IndividualPositioning=true --not really required here as
it is already true in the document, just for better understanding<br>
local sep=endrep:CreateSeparatePlacements()<br>
local s=sep:AssureStaffPlacement(1) -- i.e. create separate
placement element for staff 1 -> this leads to the hiding<br>
<br>
--Now save to measure 6 and see what happens<br>
endrep:SaveAs(6)<br>
local meas=finale.FCMeasure()<br>
meas:Load(6)<br>
meas.RepeatBracketFlag=true --make the new repeat bracket active<br>
meas:Save()<br>
local sep=endrep:CreateSeparatePlacements()<br>
local s=sep:AssureStaffPlacement(1) --DOES NOT hide the second
repeat bracket<br>
<br>
--try again with loading<br>
local endrep=finale.FCEndingRepeat()<br>
if endrep:Load(6) then <br>
endrep.IndividualPositioning=true<br>
local sep=endrep:CreateSeparatePlacements()<br>
local s=sep:AssureStaffPlacement(1) --DOES NOT hide the
second repeat bracket<br>
end<br>
end<br>
<br>
Anyone any ideas?<br>
<br>
Jan<br>
</body>
</html>