<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    That's fantastic, Chris ! Thanks a lot.<br>
    The PresetShape=true is indeed irritating.<br>
    <br>
    Have you also been successful in attaching a notehead-attached
    smartshape, like the glissando or the tab slide ?<br>
    I have only been able to clone them, but not to create them. Or the
    created glissandi turned out to be entry-based (="Attach to Notes")
    with buggy behaviour, but not "Attach to Noteheads"-glissandi.<br>
    In January 2015 I posted the glissando attachment question, but
    unfortunately never got an answer from Jari.<br>
    <br>
    Best,<br>
    Jan<br>
    <br>
    <div class="moz-cite-prefix">Am 28.06.2016 um 18:20 schrieb Chris:<br>
    </div>
    <blockquote
      cite="mid:5f3b8038-eab5-b8a7-da88-fbc8c1f65cbd@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hello Jan<br>
      <br>
      Here is a sample that works.<br>
      But I don't understand why<span id="result_box" class="short_text"
        lang="en"><span class=""></span> <span class="">it's necessary
          to put "PresetShape" to "true"</span></span><br>
      <br>
      ---------------------------------<br>
      <pre class="moz-signature" cols="72">local function createLine()
        local csld = finale.FCCustomSmartLineDef()
        csld.Horizontal = true
        csld.LineStyle = finale.CUSTOMLINE_SOLID
        csld.StartArrowheadStyle = finale.CLENDPOINT_HOOK
        csld.StartHookLength = -1451
        csld.EndArrowheadStyle = finale.CLENDPOINT_HOOK
        csld.EndHookLength = -1451
        csld.LineWidth = 363

        csld:SaveNew()

        return csld.ItemNo
end

local function createSmartShape(staff,measure,lineID)
        local smartshape = finale.FCSmartShape()
        smartshape.ShapeType = finale.SMARTSHAPE_CUSTOM
        smartshape.EntryBased = false
        smartshape.MakeHorizontal = true
        smartshape.BeatAttached= true
        smartshape.Visible = true
        smartshape.PresetShape = true
        smartshape.LineID= lineID

        local leftseg = smartshape:GetTerminateSegmentLeft()
        leftseg:SetMeasure(measure)
        leftseg:SetMeasurePos(0)
        leftseg:SetStaff(staff)
        leftseg:SetEndpointOffsetX(0)
        leftseg:SetEndpointOffsetY(30)

        local rightseg = smartshape:GetTerminateSegmentRight()
        rightseg:SetMeasure(measure)
        rightseg:SetMeasurePos(4096)
        rightseg:SetStaff(staff)
        rightseg:SetEndpointOffsetX(0)
        rightseg:SetEndpointOffsetY(30)

        smartshape:SaveNewEverything(NULL,NULL)
end

local lineID = createLine()
createSmartShape(1,1,lineID)

---------------------------------

Best regards

Chris</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>