Dynamically get AEC library versions (AECBaseApplication / AeccXUiLand.AeccApplication / ...)

Hi everyone,

I would like to automatically read the AECBaseApplication , AeccXUILand.AeccApplication and AeccXUIPipe.AeccPipeApplication versions which will vary depending on the Civil3D version I’m in.

We’re using the values of these variables in other formulas in VBA code, but we always hard-code these (i.e. for 2024: AecX.AecBaseApplication.8.6., AeccXUiLand.AeccApplication.13.6, AeccXUiPipe.AeccPipeApplication.13.6).

Is it possible to get these values automatically via a VBA code in a property set or via python script with Dynamo?

Thanks in advance for your insights
AecBaseApplication


I would suggest you go to the civils 3d API forum to ask this if you want it within VBA/civils, as they will probably be able to better help as this is specifically for Dynamo with hosted applications.

Though if you use this system variable it will help you get to what you want Help

Or another way is to get the application(Autodesk.AutoCAD.ApplicationServices.Application) then interrogate the Version from this as it will give a major and minor version.

This python script has some information within that could aid you from lines 108 - dynamoPython/dynamoAPI/dynamoGetUserPackageLocation.py at master · Amoursol/dynamoPython · GitHub

1 Like