This is my first tinker with the autoloader since it came out. I have just upgraded to AutoCAD Map 2015 from 2012. As it is my first time I read the white paper "AutoCAD Plugin AutoLoader" and other posts out there to understand what is going on. After a couple of tries I finally had my vb.net loaded, but I can not seem to get my commands recognised. I have upgraded the programs with VS express 2013and put in the new accoremgd reference and everything is working as long as I netload the .dlls. I have checked http://forums.autodesk.com/t5/NET/AutoCAD-2015-Aut
Solved! Go to Solution.
Solved! by augusto.goncalves. See the answer in context.
I took the original PackageContents.xml you sent and notice that the AppDescription is missing at the ComponentEntry, also, include LoadOnCommandInvocation="True" LoadOnRequest="True"
Finally, the ProductCode is only required for apps on the store, so we can control updates.
Solved! by mhama. See the answer in context.
The thread was going in a different direction and was not answering my question. Thanks for the update. I finally got it to work after fiddling with the packagecontents.xml. I wish they had something to produce the package file, this way people not well versed with XML can use that and make sure they have all the requirements right.
I have the same problem here, NETLOAD is apparently loading my DLL when initializing AutoCAD Mechanical 2015 but I cannot get tha ribbons and commands available. It was fine until version 2014.
Please I do not understand anything of XML, I just want to keep loading my .NET or DLL file by using NETLOAD command as always. Thanks
I've checked the .xml and it seems correct. You may need additional parameters before uploading the bundle on the Exchange Store, but I don't think it would make a difference now.
It strikes me however, that you have a single DLL for all that versions of AutoCAD, shouldn't you need to recompile it when AutoCAD breaks binary compatibility? (I not versed in VB, just C#, so I may be wrong here)
My suggestion is to start adding secondary parameters that right now seems irrelevant, but that may interfeer with the correct loading, like SupportedLocales="Enu", AppNameSpace and/or UpgradeCode. At the beginning I remember some parameters were marked as optional, but I needed to add them anyway to make it work. I haven't checked the Autodesk guide recently, I just continued to modify the first xml that worked ;-)
I attach a xml that work for sure, it still misses the 2015 section, but you can guess it from the other sections.
Thanks for the reply, appreciate it. I was trying to go as vanilla as possible just to start so that if something did not work i could easily diagnose. I put all the details in and still the commands are not being recognized. I use APPAUTOLOADER to list the apps loaded and my app is definitely loaded. so still not sure what I am doing wrong. Is there code that i can use to test which parts on my modules are loaded? or see which part is not being loaded?
ok, I built my own XML and made it run on ACADM2014, it was ok. When I try ACADM2015 it really does not work. It runs the XML but also does not recognize the commands available in the DLL.
Why don't you debug your DLLs using Visual Studio? You can place a break point in the initialization code of your classes and see what happen...
Anyway, in my experience, if something goes wrong the DLL would be stopped dead, no part would be working. Still, in that state, it cannot be unloaded or reloaded if not restarting AutoCAD (as every other DLL, working or not).
However, you say your command are not launched, but: are listed in the command prompt while you digit the command or it simply say that are non recognized?
If you see the command while you digit, you may be sure that the declaration inside your plugin is correct (and the dll is running), if not you have two chances:
- during initialization of the dll something goes wrong and it stops (debug debug debug)
- maybe you dropped some declaration in your code. Have you tried a vanilla plugin with all the declaration in place crated by the wizard?
I was just debugged and it works perfectly fine, the code runs all the way through, no problem.
Yes, when I type the command it autolists in the command prompt and i can select it. it just does not run. I can even netload it and it works perfectly fine.
I will do a test with a vanilla plugin and see.
is the ribbon loaded on 2015? This should be all work of the autoloader and the xml. It's independent of the dll itself. Check the version Min = 20.0, Max = 20.0, and eventually try to load the cuix manually on 2015, just to be sure the cuix file is good.
For the DLL, could it be a stupid thing you overlooked? check the reference to ObjectArx2015, build against 4.5.1 framework, ...
No checked that too and it is built on 4.5.1 and using the 2015 libraries. It is interesting that i can netload and it works perfectly fine and it will not wih the AutoLoader. I will start with a simple .dll and check
Access a broad range of knowledge to help get the most out of your products and services.