Message 1 of 15

Not applicable
02-09-2021
10:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey everyone,
Is it possible to use a relative path, such as %appdata% in the Assembly section of the addin file?
I am developing this plugin that will be deployed to other people in the company, and the DLLs will live somewhere in C:\Users\<USERNAME>\AppData\Roaming\NameOfFolder\... so writing the explicit path with the user name is not a real option. Normally in Windows you would use %appdata% but it doesn't seem to be working in the .addin.
Is there a way?
This is what I tried but isn't working:
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Application">
<Name>Wb.ModelEstablishment.Revit</Name>
<FullClassName>Wb.ModelEstablishment.Revit.Ribbon</FullClassName>
<Text>Wb.ModelEstablishment.Revit</Text>
<Description>Model Establishment</Description>
<VisibilityMode>AlwaysVisible</VisibilityMode>
<Assembly>%appdata%\folder\subfolder\Wb.ModelEstablishment.Revit.dll</Assembly>
<AddInId>d06838e1-44e3-4c05-b9f1-f79ca101075c</AddInId>
<VendorId>WB</VendorId>
<VendorDescription>Woods Bagot</VendorDescription>
</AddIn>
</RevitAddIns>
But if I use:
<Assembly>C:\Users\sydata\AppData\Roaming\folder\subfolder\Wb.ModelEstablishment.Revit.dll</Assembly>
it works fine.
Solved! Go to Solution.