VB Scripting
VB Script - Multi Piece Reporting
It's possible to generate custom text string(s) to be used in the User notes Report Operation. Thus, allowing the user to create a report output in any format they choose including for example a summary of diameter(s) from a bolt pattern as shown ...
VB Script - Create custom text / report file
With VB Scripting it is possible to read / write text files to / from the CMM-Manager program. This could be useful for reading data from an external source or for writing custom reports or sending data to a third party or even a machine tool. This ...
VB Script - Read and Write to Windows Registry
The attached project will check for the existence of Windows Registry key and then read / write to this Registry Key. The example will prompt user for a beginning serial number then increment the value automatically each time the program is run. ...
VB Script - Global Variables
CMM-Manager's VB Script engine does not currently support Global Variables. Each time the program is run all variables are re-created / set based on current program execution. It is however possible to write data to an external location such as ...
VB Script - Getting Started
What can I do with VB Scripting? CMM-Manager VB Scripts run in line with program execution and can be used to perform loops and flow control, display custom messages, prompt user for input that then influences program execution - i.e. skip section of ...
VB Script - Play Sound or Verbal Prompt
It's possible to play a sound (Wave File) or use TTS (Text to Speech) to give user and audible cue during program execution. VB Script example: Set oVoice = CreateObject("SAPI.SpVoice") with oVoice Set .voice = .getvoices.item(0) .Volume = 100 .Rate ...
VB Script - Extract High & Low Deviation from Cloud-to-CAD Report
When reporting Cloud-to-CAD it is possible to display the Min / Max / RMS / Profile / etc. however only the individual Point X, Y, Z, or 3D value(s) can be set to Variable using the GetReportInfo() VB command like this: MyVar = GetReportInfo( ...
VB Script - Variable use for Feature Names and User Notes
When looping Program steps by use of VB Script loop - i.e. For Loop, Do Until, etc. - Features that have been executed more than one time will automatically be renamed using standard convention as such - Circle1, Circle1...1, Circle1...2, ...
VB Script - set variables for CMM-Manager File Path and Version
It is possible to set variable for CMM-Manager file-path and/or version number. This variable could then be displayed in Report Header, Report User Note, or simply displayed for user as MsgBox() during program running. The GetAbsolutePathName() ...
VB Script - User Defined Diameter for Measured Circle
It is possible to reconstruct a Circle from User Defined parameters. For example, you may create a measured circle in program, then prompt user for diameter, and finally reconstruct a circle using same XYZ center point with unique diameter. This may ...
VB Script - Calculate Measured Arc Length
To find the Arc length, you need 3 measurements. A circle (Arc), and a line or point at each of the Arc. From there, construct lines from the center of Circle to Arc's endpoints and report both the diameter of Circle and Angle between two constructed ...
VB Script - Read and Write Text file using an Array
The attached project will check for the existence of a folder/file and create it if not present. The file will contain four lines of data. A numeric value that is prompted for when the file is created and then 3 subsequent number values. for example: ...
VB Script - Import XYZ Points from external source
CMM-Manager has built-in Import Points Operation to import point data from an external source such as 3rd party metrology software. Maybe this 3rd party system lacks CAD and reporting capabilities needed for the current task... If so, import your ...
VB Script - Custom Dialog with Textbox and Dropdown
In this case, we want to create a dialog with a drop-down box and input/text box for numerical input. The values from dialog controls are stored in variables var1 & var2, thus allowing math operations, flow control, etc., from the user's response. ...