Autoloader plugin suddenly not working

Autoloader plugin suddenly not working

hypertent
Enthusiast Enthusiast
531 Views
6 Replies
Message 1 of 7

Autoloader plugin suddenly not working

hypertent
Enthusiast
Enthusiast

I built my new ObjectARX and DBX codes into dlls and I put them into my Autoloader. But the autoloader suddenly refused to load my new dlls. The PackageContents.xml is the same as before:

 

[code]

<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0" AutodeskProduct="AutoCAD" ProductType="Application" Name="Screenshot" AppVersion="5.0.1" Description="ABCAD64Bit for Windows 10" Author="xxx" Icon="./Contents/help/Resources/icon.ico" AppNameSpace="appstore.exchange.autodesk.com" OnlineDocumentation="http://labs.autodesk.com/utilities/ADN_Plugins" HelpFile="./Contents/help/help.htm" ProductCode="{C69D99C7-8DA6-4E37-8831-F325819B76D2}" UpgradeCode="{04B9FE5C-E71B-47DF-B623-600AADFFACC5}" SupportedLocales="Enu" FriendlyVersion="2.1.1">
<CompanyDetails Name="AAA Corp" Phone=" " Url="http://www.aaa.com/" Email="xxx@aaa.com" />
<Components Description="2019 to 2020 parts">
<RuntimeRequirements SupportPath="./Contents/Resources" OS="Win32|Win64" Platform="AutoCAD*" SeriesMin="R23.0" SeriesMax="R23.1" />
<ComponentEntry AppName="ABCAD" Version="4.9.9" ModuleName="./Contents/Win64/2019/TNTABC.arx" AppDescription="TNTABC ARX" LoadOnAutoCADStartup="True"></ComponentEntry>
<ComponentEntry AppName="ABCAD" Version="4.9.9" ModuleName="./Contents/Win64/2019/TNTABCObj.dbx" AppDescription="TNTABC DBX" LoadOnAutoCADStartup="True"></ComponentEntry>
<ComponentEntry AppName="ABCAD" Version="4.9.9" ModuleName="./Contents/Resources/abc.cuix" AppDescription="Windows CUI File" LoadOnAutoCADStartup="True" />
</Components>
<Components Description="2022 parts">
<RuntimeRequirements SupportPath="./Contents/Resources" OS="Win32|Win64" Platform="AutoCAD*" SeriesMin="R24.1" SeriesMax="R24.1" />
<ComponentEntry AppName="ABCAD" Version="5.0.0" ModuleName="./Contents/Win64/2022/TNTABC.arx" AppDescription="TNTABC ARX" LoadOnAutoCADStartup="True"></ComponentEntry>
<ComponentEntry AppName="ABCAD" Version="5.0.0" ModuleName="./Contents/Win64/2022/TNTABCObj..dbx" AppDescription="TNTABC DBX" LoadOnAutoCADStartup="True"></ComponentEntry>
<ComponentEntry AppName="ABCAD" Version="5.0.0" ModuleName="./Contents/Resources/abc.cuix" AppDescription="Windows CUI File" LoadOnAutoCADStartup="True" />
</Components>
<Components Description="2023 parts">
<RuntimeRequirements SupportPath="./Contents/Resources" OS="Win32|Win64" Platform="AutoCAD*" SeriesMin="R24.2" SeriesMax="R24.2" />
<ComponentEntry AppName="ABCAD" Version="5.0.1" ModuleName="./Contents/Win64/2023/TNTABC.arx" AppDescription="TNTABC ARX" LoadOnAutoCADStartup="True"></ComponentEntry>
<ComponentEntry AppName="ABCAD" Version="5.0.1" ModuleName="./Contents/Win64/2023/TNTABCObj..dbx" AppDescription="TNTABC DBX" LoadOnAutoCADStartup="True"></ComponentEntry>
<ComponentEntry AppName="ABCAD" Version="5.0.1" ModuleName="./Contents/Resources/abc.cuix" AppDescription="Windows CUI File" LoadOnAutoCADStartup="True" />
</Components>
</ApplicationPackage>

 

[/code]

 

I have three versions running on AutoCAD 2019, AutoCAD 2022 and AutoCAD 2023. The one that autoloader didn't work is AutoCAD 2023.  However, if I put my old DLLs into the folder:

C:\Program Files\Autodesk\ApplicationPlugins\ABCAD.bundle\Contents\Win64\2023

The AutoCAD 2023 was able to load my old DLLS. That was very strange. Why the new DLLS could not be loaded but old one can be loaded? 

 

To narrow down the potential bugs, I just did a few lines change on my ARX program and rebuilt the program again. Still NO luck.  I has been struggling with this problem for a few days. My question is: are there any coding conflicts causing this issue even the project was built successfully? For example, for DBX program, if the dwgOutFields or dwgInFields functions were not coded properly, the DLLS will not be autoloaded?  Do I need to reboot AutoCAD so that  I can get my program loaded. I have three dlls: ARX, DBX, and DLL ( additional dll for algorithm related program). I tried appload command. It didn't work.

 

Can anyone give me some hints about this problem?  Thanks

 

 

 

0 Likes
532 Views
6 Replies
Replies (6)
Message 2 of 7

daniel_cadext
Advisor
Advisor

When this happens to me, it’s usually because I put something in On_kInitAppMsg that requires a document.

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
0 Likes
Message 3 of 7

hypertent
Enthusiast
Enthusiast

Thanks for your reply. I didn't add new codes in On_kInitAppMsg. The autoloader is still not working.

0 Likes
Message 4 of 7

Alexander.Rivilis
Mentor
Mentor

Why two dots in name TNTABCObj..dbx  ???

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 5 of 7

hypertent
Enthusiast
Enthusiast

Sorry, that is typo, there is only one dot. when I copied and pasted into here, I did some changes on the ARX DBX names to keep it confidential.  The PackageContents file should be Okay as the old dlls can be loaded with this file. 

0 Likes
Message 6 of 7

Alexander.Rivilis
Mentor
Mentor

@hypertent 

With command _ARX (or _APPLOAD) you can load your's arx/dbx files?

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes
Message 7 of 7

hypertent
Enthusiast
Enthusiast

I just rebuilt the project in a separate folder with my original codes by adding the new codes step by step. In the first three steps, I was able to autoload my dlls. But after third load, it suddenly refused to load my dllds without any clues. 

 

I tried your way by using command, appload, loaded dbx file first, and then load arx file. Both files are loaded successfully.  I ran my new command function I just added, it seems to be working. Does this mean that Autodesk Autoloader has some bugs with AutoCAD 2023? 

 

Also I still got another question: I use another third dll file which is my kernel algorithm with dll extension, can this dll also be loaded when I uses appload command? In another word, if I updated some codes in this dll, can I still run my program with this updated dll even appload command seems to only allow me to load dbx and arx files?

 

Thanks for your time.

 

0 Likes