Notifications
Clear all

[Closed] [.NET SDK] Getting the 3dsMax version

Yeah I had that in mind as a last resort kind of thing… It’s far from ideal, but it’s better than nothing I guess. Thanks!
I suppose that alternatively I could query the Autodesk.Max.dll assembly version too. Although that’s not much prettier…

+1 for another ‘non pretty’ approach –

mSDK = dotnetclass "ManagedServices.MaxscriptSDK"
vMaxInt = mSDK.ExecuteIntMaxscriptQuery "(maxversion())[1]"
vMaxStr = mSDK.ExecuteStringMaxscriptQuery "(maxversion()) as string"

I’ve used this in the past for dotnet assemblies when I need to pass data from max to a custom user control and back. This code is obviously in maxscript, but is more or less the same when the dll is added as a reference in your VS build and called in c#

I got another one using the assembly info from an arbitrary object from autodesk.max.dll:

(((((dotnetclass "Autodesk.Max.ViewType").Back).GetType()).Assembly).GetName()).Version.ToString()

“16.3.0.0”

which atleast the major would give you the right version.

Page 2 / 2