<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Jari,<br>
    <div class="moz-forward-container"> <br>
      FCNote:CalcRightsidePlacement() sometimes returns incorrect
      results.<br>
      I have attached two identical looking first measures with one note
      on the left and on the right side, so I would expect a false and a
      true result when calling CalcRightsidePlacement().<br>
      <br>
      But it doesn't:<br>
      the "OK" document return false / true while the "Error" document
      returns false / false.<br>
      The note flags look identical to me. (or did I overlook anything?)<br>
      The "OK" document was derived directly from the default document,
      the "Error" document is an excerpt from an orchestra score.<br>
      <br>
      I don't see a workaround for this at the moment.<br>
      If I had direct access to the downstem 2nd and the upstem 2nd
      flag, I could write something.<br>
      But currently these flags are not available for reading/writing.<br>
      <br>
      Code snippet:<br>
      local musicregion=finale.FCMusicRegion()<br>
      musicregion:SetFullDocument()<br>
      for entry in eachentry(musicregion) do<br>
          for note in each(entry) do<br>
              print(note:CalcRightsidePlacement())<br>
          end<br>
      end<br>
      <br>
      Running [Unnamed Script] ======> --OK document<br>
      false<br>
      true<br>
      <======= [Unnamed Script] succeeded (Processing time: 0.005 s).<br>
      <br>
      Running [Unnamed Script] ======> --Error Document<br>
      false<br>
      false   --!!wrong!!<br>
      <======= [Unnamed Script] succeeded (Processing time: 0.005 s).<br>
      <br>
      For file size reasons I have attached the files in Fin2012 format.
      They were originally Fin2014.5 files.<br>
      <br>
      Best,<br>
      Jan<br>
    </div>
  </body>
</html>