Notifications
Clear all
[Closed] [.NET SDK] Getting the 3dsMax version
Page 2 / 2
Prev
Jan 19, 2014 11:58 am
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…
Jan 19, 2014 11:58 am
+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#
Jan 19, 2014 11:58 am
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
Prev