Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OnStartup getting the application

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Martin60
812 Views, 1 Reply

OnStartup getting the application

I would like to access the application properties in my IExternalApplication OnStartup function.

I can see that in IExternalCommand Execute function I can use commandData.

How do I get this in OnStartup?

My objective is to get the following properties

    app.VersionName
    app.VersionNumber
    app.VersionBuild

Thanks

1 REPLY 1
Message 2 of 2
Sferra43
in reply to: Martin60

Try this.

 

        public Result OnStartup(UIControlledApplication application)
        {
            string verBuild = application.ControlledApplication.VersionBuild;
            string verName = application.ControlledApplication.VersionName;
            string verNumber = application.ControlledApplication.VersionNumber;

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community