Bcc.GetAppInfo()

Description

This function is utilized to retrieve information about the BobCAD-CAM software product where the script is running.


This function added in 2022 in BCC35, BCS10, BCR3

Parameters

No input parameters are needed for this function.

Return

Returns a table with the following key values:

  • ProductName - contains a string value representing which of the BobCAD-CAM software products is running the script
    • BobCAD - string representing the standalone BobCAD-CAM software
    • BobCAM - string representing the BobCAM for SOLIDWORKS add-in
    • Bc4Rhino - string representing the BobCAM for Rhino plug-in
  • Version - version number of the software product
  • BuildNumber - the software build number (for comparing in the same version)
  • Language - the two letter language code for the currently installed software language for example (but not limited to):
    • en - English
    • es - Spanish
    • de - German
    • pt - Portuguese
    • it - Italian
    • cs - Czech
    • tr - Turkish
    • ru - Russian
  • RegistryRootPath - string containing the path to the root of the software version registry key
  • SolidworksVersion - (only returned if in BobCAM for SolidWorks) - Returns the full version number from SolidWorks
  • SolidworksMajorVersion - (only returned if in BobCAM for SolidWorks) - Returns the major version number from SolidWorks
  • RhinoMajorVersion - (only returned if in BobCAM for Rhino) - Returns the major version number from Rhino

Examples


-- Displays the current BobCAD-CAM application information in a message box

function GetAppInformation()

       appInfo = Bcc.GetAppInfo();

       if nil ~= appInfo then        

               strInfo = "App Info: "

               for k, v in pairs(appInfo) do

                       strInfo = strInfo .. "\n" .. k .. "=" .. v        

               end

               Bcc.ShowMessageBox(strInfo, {ButtonType = "OK" , ImageType = "Information", Title = "Application Information" })

       end        

end


Output from BobCAD-CAM


Output from BobCAM for SOLIDWORKS


Output from BobCAM for Rhino