Logos 7 API

Pastor Scamman
Pastor Scamman Member Posts: 40 ✭✭
edited November 2024 in English Forum

Hi,

Does Logos 7 still include an API. I found an old page with info for Logos 4 COM API, but that reference library is no longer included with Logos 7. I'd like to create a custom macro in Word that will grab Bible verses from Logos. I am aware of the SmartTags extension for Word, but I'd like to do my own thing.

Thank you,

Evan

Comments

  • Pieter J.
    Pieter J. Member Posts: 533 ✭✭

    Hi,

    Logos 7 does still work with the API. It is located on Windows in C:\Users\%USERNAME%\AppData\Local\Logos\System\LogosCom.exe

    You can Reference LogosCom.exe from VBA using the browse button.

    Hope this help


    'When using the Launcher the Logos Logo popup
    'To avoid this make Logos a global variable and connect only once

    Sub ToStartUsingLauncher()
        Dim Launcher As LogosLauncher
        Dim Logos As LogosApplication
        
        Set Launcher = New LogosLauncher
        Launcher.LaunchApplication
        
        While Logos Is Nothing
            Set Logos = Launcher.Application
        Wend
        
        Dim CopyBibleVerses As LogosCopyBibleVerses
        Dim LogosCopyBibleVersesRequest As LogosCopyBibleVersesRequest
        Dim LogosDataTypeParsedReferenceCollection As LogosDataTypeParsedReferenceCollection
        Dim LogosDataTypeParsedReference As LogosDataTypeParsedReference
        
        Set CopyBibleVerses = Logos.CopyBibleVerses
        Set LogosCopyBibleVersesRequest = CopyBibleVerses.CreateRequest
        
        Text = "Get the References fro Gen 1:1 and Mat 1:1"
        Set LogosDataTypeParsedReferenceCollection = _
            Logos.DataTypes.GetDataType("bible").ScanForReferences(Text)
        
        For Each LogosDataTypeParsedReference In LogosDataTypeParsedReferenceCollection
            'ref = LogosDataTypeParsedReference.Reference.Render("long")
            LogosCopyBibleVersesRequest.Reference = LogosDataTypeParsedReference.Reference
            Debug.Print CopyBibleVerses.GetText(LogosCopyBibleVersesRequest)
        Next
       
    End Sub



  • Pastor Scamman
    Pastor Scamman Member Posts: 40 ✭✭

    I don't have that file. I'm guessing that it's a legacy file left over from an older version of Logos. My machine has a fresh installation of 7.

  • JT (alabama24)
    JT (alabama24) MVP Posts: 36,523

    Have you checked out all the links on this page in the wiki?

    macOS, iOS & iPadOS |Logs| Install
    Choose Truth Over Tribe | Become a Joyful Outsider!

  • Mark Barnes
    Mark Barnes Member Posts: 15,432 ✭✭✭

    I don't have that file. I'm guessing that it's a legacy file left over from an older version of Logos. My machine has a fresh installation of 7.

    I freshly installed the latest version of Logos 7 on 15 March, and I have that file.

    This is my personal Faithlife account. On 1 March 2022, I started working for Faithlife, and have a new 'official' user account. Posts on this account shouldn't be taken as official Faithlife views!

  • Pastor Scamman
    Pastor Scamman Member Posts: 40 ✭✭