<div dir="ltr">Hi Jari, <div><br></div><div>I'm having difficulty using StaffSystem's CreateFreezeSystem and FCFreezeSystem. Apparently they have to be used together somehow "<span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px">The </span><a class="" href="http://www.finaletips.nu/frameworkref/class_f_c_staff_system.html" title="The class for a staff system on a page. " style="color:rgb(70,101,162);font-weight:bold;font-family:Roboto,sans-serif;font-size:14px;line-height:22px">FCStaffSystem</a><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px"> object must also be updated to match the frozen systems."  Could you provide a basic example of say freezing all systems in a part?</span></div><div><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px">I'm working on a script that cycles through all parts making 4 measures per system.  I got most of the logic down, but I don't understand this dual-updating of sorts and saving.  Where am I going wrong?</span></div><div><span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px"><br></span></div><div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px">allparts = finale.FCParts()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px">allparts:LoadAll()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px">for onepart in each (allparts) do</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">        </span>onepart:SwitchTo()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre"> </span>local staffsystems = finale.FCStaffSystems()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">       </span>staffsystems:LoadAll()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">     </span>local multimeasurerests = finale.FCMultiMeasureRests()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">     </span>multimeasurerests:LoadAll()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">        </span>local i = 1</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">        </span>for ss in each(staffsystems) do</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">    </span>    mmrLengths = 0</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">               </span>for mmr in each(multimeasurerests) do -- take into account MMR</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">             </span>    if ss:ContainsMeasure(mmr.StartMeasure) then</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">         </span>    <span class="" style="white-space:pre">    </span>mmrLengths = mmrLengths + (mmr.EndMeasure - mmr.StartMeasure) -- actual length - 1</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">         </span>    end</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">          </span>end</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">                </span>-- finale.FCStaffSystems.UpdateFullLayout() -- takes a long time</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">   </span>    ss:SetFirstMeasure_(i)</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">               </span>i = i + 4 + mmrLengths + 1</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">         </span>ss:SetNextSysMeasure_(i)</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">           </span>ss:CreateFreezeSystem(true)</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">                </span>ss:Save()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">          </span>-- local fs = finale.FCFreezeSystem() -- not sure how this works together</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">          </span>-- fs.NextSysMeasure = i</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">           </span>-- fs:Save()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">       </span>end</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px"><span class="" style="white-space:pre">        </span>onepart:SwitchBack()</span></font></div><div style><font color="#000000" face="Roboto, sans-serif"><span style="font-size:14px;line-height:22px">end</span></font></div></div></div>