<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Jan<br>
    <br>
    <span id="result_box" class="" lang="en"><span class="">Here is an
        example</span> <span class="">that works with</span> <span
        class="">2 half-notes</span> <span>in</span> the first measure.<br>
    </span><span id="result_box" class="short_text" lang="en"><span
        class="">There are 2</span> <span class="">important things :<br>
        -  LineID : </span></span><span id="result_box"
      class="short_text" lang="en"><span class="">that</span> <span>is
        the index</span> <span class="">of the smartline (</span></span><span
      id="result_box" class="short_text" lang="en"><span>it'</span><span>s
        possible to have</span> <span>any line</span> <span>for</span>
      <span class="">glissando</span><span> - </span></span><span
      id="result_box" class="short_text" lang="en"><span><span
          id="result_box" class="short_text" lang="en"><span>but</span>
          <span>how do you know</span> <span class="">which one is
            right</span></span>)<br>
        - NoteID : </span></span><span id="result_box" class=""
      lang="en"><span>that</span> <span>is</span> <span>the position
        of the</span> <span class="">note in the chord<br>
        <br>
        -----------------------------------------<br>
        local function
        createSmartShape(staff,measure,leftnoteentry,rightnoteentry)<br>
            local smartshape = finale.FCSmartShape()<br>
            smartshape.ShapeType = finale.SMARTSHAPE_GLISSANDO <br>
            smartshape.EntryBased = true<br>
            smartshape.MakeHorizontal = false<br>
            smartshape.BeatAttached= false<br>
            smartshape.PresetShape = true<br>
            smartshape.Visible = true<br>
            smartshape.LineID= 1<br>
        <br>
            local leftseg = smartshape:GetTerminateSegmentLeft()<br>
            leftseg:SetMeasure(measure)<br>
            leftseg.Staff = staff<br>
            leftseg:SetEntry(leftnoteentry)<br>
            leftseg.NoteID = 1<br>
        <br>
            local rightseg = smartshape:GetTerminateSegmentRight()<br>
            rightseg:SetMeasure(measure)<br>
            rightseg.Staff = staff<br>
            rightseg:SetEntry(rightnoteentry)<br>
            rightseg.NoteID = 1<br>
        <br>
            smartshape:SaveNewEverything(NULL,NULL)<br>
        end<br>
        <br>
        local noteentrycell = finale.FCNoteEntryCell(1, 1)<br>
        noteentrycell:Load()<br>
        local leftnoteentry = noteentrycell:FindEntryStartPosition(0,1)<br>
        local rightnoteentry =
        noteentrycell:FindEntryStartPosition(2048,1)<br>
        <br>
        createSmartShape(1,1,leftnoteentry,rightnoteentry)<br>
      </span></span><br>
    <span id="result_box" class="" lang="en"><span class=""><span
          id="result_box" class="" lang="en"><span class="">-----------------------------------------<br>
            <br>
            <br>
            Chris<br>
          </span></span></span></span>
  </body>
</html>