Load application

Load application

Anonymous
Not applicable
590 Views
5 Replies
Message 1 of 6

Load application

Anonymous
Not applicable

Hi.

Is it possible to load an application when a file opens instead of when Revit starts?

This application is load even in  *.rfa files and there is no use for that.

Thank you

0 Likes
591 Views
5 Replies
Replies (5)
Message 2 of 6

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous,

Could you please explain in detail on what you are trying to achieve?


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 6

Revitalizer
Advisor
Advisor

Hi,

 

see

UIAppliation.LoadAddIn and

UIControlledApplication.LoadAddin

in RevitAPI.chm

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 6

Revitalizer
Advisor
Advisor

Hi,

 

your AddIn can easily check if the current document is a family document (doc.IsFamilyDocument).

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 5 of 6

Anonymous
Not applicable

What I need is to change de visibility of the ribbon panels from my App  when active document changes. That way I'll be able to check the active document type and turn on and off the visibility of my ribbon panels.

0 Likes
Message 6 of 6

Revitalizer
Advisor
Advisor

Hi,

 

you need to set PushButtonData.AvailabilityClassName

 

https://forums.autodesk.com/t5/revit-api-forum/hide-ribbon-tab-if-family-document-active/m-p/8275558

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes