hostMajorVersion()

Synopsis

Returns a string describing the "major version" of the "host" environment in which the Intent Kernel is embedded. For an Inventor host, it returns the Inventor major version from the SoftwareVersion object. For other hosts, it will return a different string , indicating the major version of the host environment.

If you create your own host, you have to specify the "major version" during host initialization.

Syntax

hostMajorVersion ( ) As String 

Example 1

Inventor host major version (output may vary)
Intent >hostMajorVersion() --> "16" 

Example 2

Host information for MinHost (output may vary)
Intent >hostName() & " " & hostMajorVersion() & "." & hostMinorVersion() 
--> "MinHost 5.0"