Bcc.GetDataFolder
Bcc.GetDataFolder()
Description
This function is utilized to get the location of the Data Folder file path for the current BobCAD product. This is important to utilize because many customers install their data folder on separate drives than their BobCAD application especially in the cases where the system has a small SSD and a big data drive.
If your plugin is intended to work across multiple versions of BobCAD this will also be a very important thing to consider!
The BobCAD data folder file path is always stored in the Windows registry under:
Computer\HKEY_CURRENT_USER\Software\BobCAD-CAM\*product version*\Directories\DataFolder
Parameters
No input parameters are required for this function.
Return
String containing the file path stored in the DataFolder registry key of the product this script is being run from!
Examples
-- Output an NC program to the standard NC\Mill folder of this product
ncFileName = Bcc.GetDataFolder().."NC\\Mill\\temp.nc"
Bcc.Post(ncFileName)