Revit did not load .bundle add in

Revit did not load .bundle add in

Sino.Pacific
Contributor Contributor
1,955 Views
12 Replies
Message 1 of 13

Revit did not load .bundle add in

Sino.Pacific
Contributor
Contributor

Hi everyone,

 

I don't know why Revit did not load add in (.bundle format) from C:\ProgramData\Autodesk\ApplicationPlugins 

It still worked before, but suddenly, Revit did not load any add in from that folder anymore.

If anyone has experience with this problem, please help me.

Thank you šŸ™‚

 

Best Regards,

 

Ninh Truong

0 Likes
1,956 Views
12 Replies
Replies (12)
Message 2 of 13

franciscopossetto
Advocate
Advocate

Hey,

 

Is it happening with all the add-ins you have on this location or only with one of them?

Could you share your PackageContents.xml?

Github:
https://github.com/franpossetto
0 Likes
Message 3 of 13

Sino.Pacific
Contributor
Contributor

Hi @franciscopossetto ,

 

It happened with all the add in, including add in from Autodesk as well. 

Following is one of the package content of my add in  that used to work before: 

 

<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0" AutodeskProduct="Revit" Name="Batch Join , Unjoin Elements with custom order" Description="The AutodeskĀ® RevitĀ® automatically joins the elements with its default rule. If you want to switch the join order between elements you have to do it manually." AppVersion="2.0.0" FriendlyVersion="2.0.0" ProductType="Application" HelpFile="./Contents/help.html" SupportedLocales="Enu" AppNameSpace="appstore.exchange.autodesk.com" OnlineDocumentation="http://www.cherrybimservices.com/" Author="Cherry BIM services" ProductCode="{5661ED03-38CA-4DDB-91E4-96CC22F03499}" UpgradeCode="{F61C0323-F388-4473-AEB0-AD6110EABEF8}" Icon="./Contents/Resources/bathjoinunjoin_ire_icon.ico">
  <CompanyDetails Name="Cherry BIM services" Url="http://www.cherrybimservices.com/" Email="info@cherrybimservices.com" Phone=" " />
  <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2018" SeriesMax="R2020" />
  <Components Description="2018 parts">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2018" SeriesMax="R2018" />
    <ComponentEntry AppName="CherryBIMservices.BatchJoinUnjoin" Version="3.0.0" ModuleName="./Contents/2018/CherryBIMservices.BatchJoinUnjoin.addin" AppDescription="CherryBIMservices.BatchJoinUnjoin" />
    
  </Components>
  <Components Description="2019 parts">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2019" SeriesMax="R2019" />
    <ComponentEntry AppName="CherryBIMservices.BatchJoinUnjoin" Version="3.0.0" ModuleName="./Contents/2019/CherryBIMservices.BatchJoinUnjoin.addin" AppDescription="CherryBIMservices.BatchJoinUnjoin" />
   
  </Components>
  <Components Description="2020 parts">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2020" SeriesMax="R2020" />
    <ComponentEntry AppName="CherryBIMservices.BatchJoinUnjoin" Version="3.0.0" ModuleName="./Contents/2020/CherryBIMservices.BatchJoinUnjoin.addin" AppDescription="CherryBIMservices.BatchJoinUnjoin" />
    
  </Components>
  
    <Components Description="2021 parts">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2021" SeriesMax="R2021" />
    <ComponentEntry AppName="CherryBIMservices.BatchJoinUnjoin" Version="3.0.0" ModuleName="./Contents/2021/CherryBIMservices.BatchJoinUnjoin.addin" AppDescription="CherryBIMservices.BatchJoinUnjoin" />
    
  </Components>
  
    <Components Description="2022 parts">
    <RuntimeRequirements OS="Win64" Platform="Revit" SeriesMin="R2022 SeriesMax="R2022" />
    <ComponentEntry AppName="CherryBIMservices.BatchJoinUnjoin" Version="3.0.0" ModuleName="./Contents/2022/CherryBIMservices.BatchJoinUnjoin.addin" AppDescription="CherryBIMservices.BatchJoinUnjoin" />
    
  </Components>
  
</ApplicationPackage>

 

Thank you for your help šŸ™‚

 

0 Likes
Message 4 of 13

franciscopossetto
Advocate
Advocate

Weird. I found 2 details in the code you sent, but if any add-in works maybe it is something else.

Try with this file. I just add one double quote and delete one RuntimeRequirement I think was not necessary.

Github:
https://github.com/franpossetto
0 Likes
Message 5 of 13

Sino.Pacific
Contributor
Contributor

Hi @franciscopossetto ,

 

Thank you for your file, I have tested it but it not worked as well.

I have uninstall Revit and re-install Revit again but still it not load.

Although the add in in C:\ProgramData\Autodesk\Revit\Addins is still ok and loaded. 

But the bundle in C:\ProgramData\Autodesk\ApplicationPlugins is not. Really weird. 

 

 

0 Likes
Message 6 of 13

franciscopossetto
Advocate
Advocate

Hey,

 

The .addin file is redirecting correctly to the .dll file? 

Have you tried the same bundle folder on another machine? If you take your custom add-ins out of the ApplicationPlugins directory, the rest doesn't work either?

Github:
https://github.com/franpossetto
0 Likes
Message 7 of 13

Sino.Pacific
Contributor
Contributor

Dear @franciscopossetto ,

 

I have checked on other machine, it worked well.

I have installed the Revit preview (2022 version) so I think that should be the problem. 

Message 8 of 13

TripleM-Dev.net
Advisor
Advisor

I recently also encountered this issue.

Unfortunately I have no solution for using the Bundle manifest, below my problem and work-around.

 

I suspect Revit 2021  is the issue, I had my addin never loaded into Revit 2021 (Addin bundle worked fine for R2017-R2020).

Haven't got it running, for now I reference to the Bundle dlls from a Addin manifest in the "C:\ProgramData\Autodesk\Revit\Addins\<revit version>"  for each Revit version as I can't get the Bundle manifest working anymore. 

 

Feels like loading the Bundle into Revit 2021 "corrupted" something...some other Addins (also AutoDesks) no longer worked after this, had to deploy same solution for those. (Revit versions up-to-date)

Other system which don't have Revit 2021 the Bundle addins still 'work'

 

- Michel

0 Likes
Message 9 of 13

franciscopossetto
Advocate
Advocate

Hey Michel,

 

I have tried an add-in using the bundle structure on Revit 2021.1.2 and it worked.

Which version of Revit 2021 are you using? Maybe there is an specific version that has this issue. 

Github:
https://github.com/franpossetto
0 Likes
Message 10 of 13

TripleM-Dev.net
Advisor
Advisor

Hi,

 

The bundle worked before and without change it no longer worked for any version as soon as it also loaded the Addin in Revit 2021.

 

This was some time ago, so I tested the Bundle again (renamed back to .xml) and removed the temporarily placed Addin files.

All Revit version including the Revit 2021 now all loaded nicely...so I would say it's solved For me anyway.

Haven't checked the 2021 version number, will update tomorrow.

 

- Michel

 

0 Likes
Message 11 of 13

TripleM-Dev.net
Advisor
Advisor

Update: Revit 2021 is on version 2021.1.2

0 Likes
Message 12 of 13

franciscopossetto
Advocate
Advocate

Hi Michel,

 

Thanks for sharing that information.

I have done some tests, breaking the PackageContents file and these were the results.

 

1. If I break the file by writing syntax errors, for example deleting a <, then all add-ins fail.

2. If I break the file, with value errors (and syntax is correct), for example setting attributes SeriesMax and SeriesMin as "asd123", this addin is not added to Revit, but the rest works. And It is per version. I broke the Component block that sets the ad-in on Revit 2018 and it only failed on that one, all other 2019 and 2020 versions worked. 

3. If some attributes have incorrect values, the add-in could work too, for example if i set SeriesMax with "asd123" but SeriesMin is ok, the add-in works. If the Version attribute is wrong, the add-in works as well. 

 

 

So, the only scenario I found, where all add-in fail is when there is at least one syntax error in one of the PackageContents files. Possibly there are more reasons, besides this one.

 

What I would do next time, if it ever happens again, is drop one by one, each bundle folder until I get the one that is generating the error. If my guess is correct, there should be at least one PackageContents with a syntax error and after dropping it,  the rest should work again. 

 

Although from what many have described above, it seems that it is not enough to consider it as the only reason.

 

Kind regards !

Github:
https://github.com/franpossetto
Message 13 of 13

pverteourisb&m
Participant
Participant

I was having the same issue where all my unsigned addins were not loading for any version of Revit.  When you posted that it was the 'Package Contents' folder and I dropped my addins I created, all the other addins started to load again.  It appears this is the issue where if the package contents of one addin is not setup properly, it will not load the other addins.  I fixed the xml file in my addins and it is working again.  

0 Likes