UIControlled |
Exception | Condition |
---|---|
FileArgumentNotFoundException | Thrown when manifest file which is specified by fileName doesn't exist. |
ArgumentNullException | Thrown if the fileName is null or empty. |
ArgumentException | Thrown if the fileName doesn't end with 'addin'. |
ApplicationException | Thrown if the manifest file can't be parsed successfully. |
InvalidOperationException | Thrown when any of the newly added external applications fails to load and/or initialize properly, possibly because of one of the following reasons: AllowLoadingIntoExistingSession property is 'No'.Client id is duplicated.External application start up failed. |
This method loads the add-ins listed in the provided add-in manifest file. The API will look for the file in the dedicated folders supported by Revit for loading add-in manifest files.
Some add-ins may have settings in which they decline the ability for Revit to load the external application declared in the .addin in mid-session. This happens when the AllowLoadingIntoExistingSession tag is set to "No" in the add-in manifest file, and if the tag isn't present, the default is set to "Yes".
Note that when Revit starts an add-in in the middle of the session, some add-in logic may not function as expected because of the different interactions with the session. Specifically:
Also, some add-ins may not be able to fully initialize when loading in the middle of the session. This is because some activities must take place at the start of the Revit session: