Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IExternalApplication's are not being manager by AddInManager #52

Open
shivajreddy opened this issue Mar 20, 2024 · 2 comments
Open

IExternalApplication's are not being manager by AddInManager #52

shivajreddy opened this issue Mar 20, 2024 · 2 comments
Labels
investigate have some thing need time to review

Comments

@shivajreddy
Copy link

Describe the bug
IExternalCommands are detected when the compiled dll file is selected, and commands execute as expected.

IExternalApplications are detected when the compiled dll file is selected, 'Run' option is obviosly disabled (looks like it only petrains to IExternalCommands, so reving this when the user is in the 'Load App' tab is clearer, also in the docs it is mentioned that there is a 'Notes' section that shows the path of the highligted .dll file, but there is no 'Notes' seciton.)

The main issue is that when the IExternalApplication is loaded by choosing the latest compiled dll file, and Revit is restarted ,the IExternalApplication is not running, i.e., the OnStartup and OnShutdown never gets executed as a result, the Ribon Item, Panel, and buttons on the panel are not shown.

I have cleared all previous .addin files that I copied into the addins folder, (both Roaming and ProgramData folders).
I reinstalled RevitAddInManager and tried again. I restarted windows and tried again.

But the only way it was working is when I create a manifest (.addin) file and copy that to the plugin folder, and the path value in the manifest file points to the latest dll file, but the issue now is that I cant Build Solution since Revit process has locked the 'dll' file, just like its explained in the read me file.

TLDR; I am trying use RevitAddInManager to manage my IExternalApplciation that was compiled in the dll file, but RAIM detects the IExternalApplication's and won't load these applications on the next Revit restart.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Load App
  2. Select the 'dll' file that has IExternalApplication
  3. Close RevitAddInManager, Restart Revit
  4. The chosed IExternalApplication wont load. But when a manifest file is created that points to the same dll file, on the next Revit restart, the IExternalAPplication works as expected.
  • RevitAddInManager: 1.5.2
  • OS: Windows11
  • Revit 2024.2
@chuongmep chuongmep added the investigate have some thing need time to review label Mar 21, 2024
@chuongmep
Copy link
Owner

Hi @shivajreddy , thank you for your reported. Did you tried with oder version of Revit ?

@shivajreddy
Copy link
Author

I tried with Revit2022 also, still the IExternalApplication is working with AddInManger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate have some thing need time to review
Projects
None yet
Development

No branches or pull requests

2 participants