Page 1 of 1 (7 items)
This post has 6 Replies | 1 Follower

Posts 39
Pastor Scamman | Forum Activity | Posted: Tue, Mar 27 2018 11:29 AM

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

Posts 432
PJ | Forum Activity | Replied: Tue, Mar 27 2018 12:21 PM

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



Posts 39
Pastor Scamman | Forum Activity | Replied: Tue, Mar 27 2018 12:31 PM

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.

Posts 29473
Forum MVP
JT (alabama24) | Forum Activity | Replied: Tue, Mar 27 2018 12:37 PM

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

macOS, iOS & iPadOS | Logs |  Install

Posts 13417
Mark Barnes | Forum Activity | Replied: Tue, Mar 27 2018 12:42 PM

Evan Scamman:
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.

Posts 432
PJ | Forum Activity | Replied: Tue, Mar 27 2018 12:43 PM

Try extracting and using this

7357.LogosCom.zip

Posts 39
Pastor Scamman | Forum Activity | Replied: Tue, Mar 27 2018 12:51 PM

Thanks for the link. It’s working now.

Page 1 of 1 (7 items) | RSS