<?xml version="1.0" encoding="utf-8" ?>
<AddInLoaderUpdatePath
UpdateDirectory="%userprofile%\Documents\Visual Studio 2015\Projects\Server Folder\TheSwampApps\v20.1">
</AddInLoaderUpdatePath>
TheSwampAddInLoaderData.loadData<?xml version="1.0" encoding="utf-8" ?>
<AddInLoaderData CopySubDirectories ="false" ExtensionFilter =".dll|.cuix|.mnr">
<LoadFiles>
<LoadFile>TheSwampAddin1.dll</LoadFile>
<LoadFile>TheSwampAddin2.dll</LoadFile>
</LoadFiles>
</AddInLoaderData>
Nice work Jeff. I've been working on something similar that uses FileSystemWatcher to look for folder changes then prompts the user. If the user chooses to update, it spins up the updater, and shuts down Autocad. The updater waits for Autocad to shut down and copies over the files then fires up Autocad again and shuts down.Thanks,
Hi Jeff H,Not sure I had mine broken out into separate folders for each year(also the builds had a separate "Update folder") and below is what I used unmodified. It worked for 2015 and I do not see anything that would need changing. I got 2015 and will try testing it here later today with the attached example.
Great code, one question though. I change R20.1 to 19.0...Code - C#: [Select]
<RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD|AutoCAD*" SeriesMin="R19.0" SeriesMax="R21.0" />
It worked with versions 14,16 and 17 but not with Autocad 2015? Is it just me or there's something else that needs changing?
Thank you in advance.
pBe
<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0" AutodeskProduct="AutoCAD" ProductType="Application" Name="HpadCad" AppVersion="1.0.0" Description="AutoCAD Plug-in" Author="Jeff H" ProductCode="{FF4A6B1C-33C3-7DM3-8F61-423D6048EFA8}">
<CompanyDetails Name="Hpad" Phone=" " Url=" " Email="" />
<Components>
<RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD|AutoCAD*" SeriesMin="R19.0" SeriesMax="R19.0" />
<ComponentEntry AppName="HpadCad.AddinLoader" ModuleName="./Contents/Windows/2013/HpadCad.AddinLoader.dll" LoadOnAutoCADStartup="true"/>
</Components>
<Components>
<RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD|AutoCAD*" SeriesMin="R20.0" SeriesMax="R20.0" />
<ComponentEntry AppName="HpadCad.AddinLoader" ModuleName="./Contents/Windows/2015/HpadCad.AddinLoader.dll" LoadOnAutoCADStartup="true"/>
</Components>
<Components>
<RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD|AutoCAD*" SeriesMin="R20.1" SeriesMax="R20.1" />
<SystemVariables>
<SystemVariable Name="LAYERMAPSTYLE" PrimaryType="String" StorageType="Database" Value="Standard" Flags="Create"/>
</SystemVariables>
<ComponentEntry AppName="HpadCad.AddinLoader" ModuleName="./Contents/Windows/2016/HpadCad.AddinLoader.dll" LoadOnAutoCADStartup="true"/>
</Components>
</ApplicationPackage>
SeriesMin="R20.0" SeriesMax="R20.0"
I ended up using this for Autocad 20105I know I used it on 2015 for months. I will see if I can find a copy of 2015 to try it on.Code - Auto/Visual Lisp: [Select]
<RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD|AutoCAD*" SeriesMin="R20.0" SeriesMax="R20.0" /> <ComponentEntry AppName="Appname" " ModuleName="./Contents/Resources/Company.lsp" PerDocument="True" LoadOnAutoCADStartup="true" LoadOnCommandInvocation="True"/> <ComponentEntry AppName=""Appname" ModuleName="./Contents/Resources/2015/Company.cuix" AppDescription="Company CuiX" AppType="CuiX"/>
But it does not copy/update files from the Server Folder like it does for 2017. I'm not even sure loading a partial cuix from XML is a good thing.
Sure hope you anyhone can come up with an answer on why TheSwamp Loader is not working om 2015.
Question for you: Can we call an EXE file from the PackageContents.xml?
BTW: Thank for all your help.
EDIT: Makes me wonder did it ever worked on 2015 as i mentioned on the other post. I wanted it to work so bad that i imagined it working the first time
... You could also edit the catch block print out the exception message and see what it is.
I know I used on a machine with windows 10 for 2015 also.... You could also edit the catch block print out the exception message and see what it is.
Now why didn't i think of that before. Using Windows 10 and Autocad 2015
Here is the error message Jeff_H, thank you for your patience.
Object reference not set to an instance of an object
Works on Autocad 2017 on the same machine.