<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877335#M495</link>
    <description>&lt;P&gt;I opened it in Notepad++ in administrator mode and manually changed it to reference 2024 instead of 2021 and it seemed to work after i did that. before this it was just erroring out and saying the library was invalid.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 23:39:35 GMT</pubDate>
    <dc:creator>rheece_turner</dc:creator>
    <dc:date>2024-07-03T23:39:35Z</dc:date>
    <item>
      <title>acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12872879#M491</link>
      <description>&lt;DIV class=""&gt;When i try and add Autocad 2024 as a reference in excel using acax24enu.tbl its importing it as autocad 2021 type library instead of 2024&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Jul 2024 04:36:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12872879#M491</guid>
      <dc:creator>rheece_turner</dc:creator>
      <dc:date>2024-07-02T04:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12873997#M492</link>
      <description>&lt;P&gt;Correct. The ActiveX tlb has not changed. No new features were added.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 14:43:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12873997#M492</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-07-02T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12875004#M493</link>
      <description>&lt;P&gt;It was not working for 2024, i went through that file as txt and changed the 2021 to 2024 and restarted, that seemed to fix it&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 01:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12875004#M493</guid>
      <dc:creator>rheece_turner</dc:creator>
      <dc:date>2024-07-03T01:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12876355#M494</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13472339"&gt;@rheece_turner&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It was not working for 2024, i went through that file as txt and changed the 2021 to 2024&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean by that? What file? You should just go to &lt;FONT color="#0000FF"&gt;Tools&amp;gt;References&lt;/FONT&gt; and select the correct tlb.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xl acad reference.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1382880iC59878BB001FDEED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xl acad reference.png" alt="xl acad reference.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:47:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12876355#M494</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-07-03T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877335#M495</link>
      <description>&lt;P&gt;I opened it in Notepad++ in administrator mode and manually changed it to reference 2024 instead of 2021 and it seemed to work after i did that. before this it was just erroring out and saying the library was invalid.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 23:39:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877335#M495</guid>
      <dc:creator>rheece_turner</dc:creator>
      <dc:date>2024-07-03T23:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877341#M496</link>
      <description>&lt;P&gt;I would strongly recommend against modifying a tlb like that. The tlb still references 2024 dll's. The only reason you might get an error is if you tried to use it to start a different version of acad. If you just do what I showed in the screenshot, it should work. Then use the following sub to instantiate an acad object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;
Public Function GetAcad(Optional ver As String) As AcadApplication
    ' support multiple acad versions.
    'Sample ver for AutoCAD 2023 ' ".24.2"
    On Error Resume Next
    Dim acApp As AcadApplication
    Dim clsid As String
    clsid = "AutoCAD.Application"
    If Not ver = "" Then
        clsid = clsid &amp;amp; ver
    End If
    Set acApp = GetObject(, clsid)
    If acApp Is Nothing Then
        Set acApp = CreateObject(clsid)
    End If
    Set GetAcad = acApp
End Function&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 23:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877341#M496</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-07-03T23:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877345#M497</link>
      <description>&lt;P&gt;yeah i know i'm kind of forcing it into doing what i want to do. everyone at my work is on the current AutoCAD 2025 with regular updates, except for a few people who are all on the same version of 2024. everything runs smoothly on the 2025 version it was just throwing up errors saying it was the wrong library or that AutoCAD wasn't open even though it was. thanks for your help, ill try and implement this and see if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 23:51:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12877345#M497</guid>
      <dc:creator>rheece_turner</dc:creator>
      <dc:date>2024-07-03T23:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: acax24enu.tbl is referencing as Autocad 2021 type library instead of 2024</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12886784#M498</link>
      <description>&lt;P&gt;a dvb is a compiled file, not just the text you see in the ide. It gets compiled for the specific version of acad you're using and won't work on other versions. When you open up a dvb for 2024 in 2025, it automatically gets the reference to the acad tlb updated to the current version of the tlb. You can't use a dvb for 2024 on 2025 without it being upgraded, and therefore unusable to 2024. You need a separate dvb for 2025 and one for 2024. If&amp;nbsp; you are trying to create an instance of acad in Excel, then your xl code has to account for different versions. You either have to develop two spreadsheets, one that references acad 2024 and one that references acad 2025, or determine at runtime which acad tlb to reference. If you want to do it programmatically, you can use the function below. It requires setting a reference to "Microsoft Visual Basic for Applications Extensibility 5.3".&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;
Public Function SetReferenceByFile(FilePath As String, Optional DisplayErrors As Boolean) As VBIDE.Reference
    'returns True if successful in setting a reference in the current dvb,
    'given the FilePath of a tlb, olb, dll. The DisplayErrors option determines
    'whether or not an error message will be displayed upon erroring.
    On Error GoTo ErrorHandler
    Dim objVB As Object  'VBE
    Dim objRef As VBIDE.Reference
    Dim objRefs As VBIDE.References
    Dim strPath As String
    
    Set objVB = AcadApplication.VBE
    Set objRef = objVB.ActiveVBProject.References.AddFromFile(FilePath)
    SetReferenceByFile = True
    GoTo Finish:
ErrorHandler:
    If Err.Number = 32813 Then
        'reference was already set, just return the reference
         Set objRefs = objVB.ActiveVBProject.References
         For Each objRef In objRefs
             If objRef.FullPath = FilePath Then
                 Set SetReferenceByFile = objRef
             End If
         Next objRef
    Else
        If DisplayErrors = True Then
            MsgBox Err.Number &amp;amp; ", " &amp;amp; Err.Description, vbExclamation, "SetReferenceByFile."
        Else
        
        End If
        Set SetReferenceByFile = Nothing
    End If
Finish:
    Set objVB = Nothing
    Set objRef = Nothing
End Function&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acax24enu-tbl-is-referencing-as-autocad-2021-type-library/m-p/12886784#M498</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-07-09T14:36:01Z</dc:date>
    </item>
  </channel>
</rss>

