<div dir="ltr">If you are trying to delete groups from multistaff instruments, don't. Those groups are controlled by the Score Manager.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 22, 2021 at 1:11 PM Simon Leclerc <<a href="mailto:simon@prodsl.ca">simon@prodsl.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">It does work, Jan. Thank you!<br><div>
<div dir="auto" style="text-align:start;text-indent:0px"><span style="text-indent:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px"><div style="overflow-wrap: break-word;"><div><div><br><font color="#000000"><span>And you’re right to remind me of the backward approach when deleting. Important factor.</span></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-style:normal"><br></span></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-style:normal">I have another question regarding this:</span></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-style:normal"><br></span></div><div><font color="#000000">When the group is deleted, if I use the command “Reset all groups & Brackets”, the group re-appears.</font></div><div><font color="#000000">There must be a class somewhere telling Finale that by defaut, those staves should be grouped.</font></div><div><font color="#000000">It does not seem to be part of the FCStaff class.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Any idea which one?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-style:normal"><br></span></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><span style="font-family:"Times New Roman",serif;font-size:16px">¯\_(</span><span style="font-family:"MS Gothic";font-size:16px">ツ</span><span style="font-family:"Times New Roman",serif;font-size:16px">)_/¯</span></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><span style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px"><div style="overflow-wrap: break-word;"><div><br></div><div>Simon Leclerc</div><div><br></div></div></span></div></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><br></div></div></span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div>
</div>
<div><br><blockquote type="cite"><div>On August 22, 2021, at 13:15, Jan Angermüller <<a href="mailto:jan@angermueller.com" target="_blank">jan@angermueller.com</a>> wrote:</div><br><div>
  
    
  
  <div>
    When deleting from a collection class always use eachbackwards()
    instead of each() and never save the collection afterwards.<br>
    This code should work:<br>
    <div><br>
    </div>
    <blockquote type="cite">
      <div>if finenv.FinaleVersion >= 2011 then</div>
      <div><br>
      </div>
      <div>  groups = finale.FCGroups(0, 0)</div>
      <div>  groups:LoadAll()</div>
      <div><br>
      </div>
      <div>  for g in each<b>backwards</b>(groups) do</div>
      <div><br>
      </div>
      <div>    if g:GetItemID() == 18 then</div>
      <div><br>
      </div>
      <div>      g:DeleteData()</div>
      <div><br>
      </div>
      <div>    end</div>
      <div>  end</div>
      end</blockquote>
    <br>
    <br>
    Jan<br>
  </div>

_______________________________________________<br>JWLua mailing list<br><a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br><a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br></div></blockquote></div><br></div>_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>