Scripting with CAMMaster And Visual Basic.NET

Similar documents
DEPLOYING A VISUAL BASIC.NET APPLICATION

Microsoft Office Access 2007 Basics

Installation Guide and Machine Setup

SUMMARY Moderate-High: Requires Visual Basic For Applications (VBA) skills, network file services skills and interoperability skills.

Word 2010: Mail Merge to with Attachments

How to send meeting invitations using Office365 Calendar

How to set up HotFolders and Workflows

CONFIGURING VIRTUAL TERMINAL: This is the screen you will see when you first open Virtual Terminal

Pivotal CRM AvaTax Connector Installation

Automated backup. of the LumaSoft Gas database

Debugging Export Connectors With Visual Studio.NET

Working with SQL Server Integration Services

How To Install The Snow Active Directory Discovery Service On Windows (Windows) (Windows 7) (Powerbook) (For Windows) (Amd64) (Apple) (Macintosh) (Netbook) And (Windows

Inserting Hyperlinks in Office 2010 Products

Installing LearningBay Enterprise Part 2

OneStop Reporting 3.7 Installation Guide. Updated:

Excel Reports and Macros

BarTender s ActiveX Automation Interface. The World's Leading Software for Label, Barcode, RFID & Card Printing

Applications Development

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

Rational Quality Manager. Quick Start Tutorial

Microsoft Word 2011: Create a Table of Contents

Overview... 2 How to Add New Documents... 3 Adding a Note / SMS or Phone Message... 3 Adding a New Letter How to Create Letter Templates...

Software for Agilent Technologies Vector Series Network Analyzers

Section 1.0 Getting Started with the Vālant EMR. Contents

XCM Internet Explorer Settings

VB.NET - WEB PROGRAMMING

MONAHRQ Installation Permissions Guide. Version 2.0.4

Outlook Web Access (OWA) User Guide

Personalizing your Access Database with a Switchboard

OUTLOOK WEB APP (OWA): MAIL

Export the address book from the Blackberry handheld to MS Outlook 2003, using the synchronize utility in Blackberry Desktop Manager.

Unleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor!

Instructions for Importing (migrating) Data

Microsoft Visual Studio 2010 Instructions For C Programs

Uninstallation Guide Funding Information System (FIS)

MetaMorph Microscopy Automation & Image Analysis Software Super-Resolution Module

UCO_SECURE Wireless Connection Guide: Windows 8

Commport FTP Client Set-up

Exercise Safe Commands and Audit Trail

Microsoft Access 2010 handout

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

Introduction to Microsoft Access 2003

Table of Contents. 1. Content Approval...1 EVALUATION COPY

Installation of ADS SiMKit startup script and designkit on Windows for SiMKit version 4.4

Step 1. Creating a new project

This tutorial assumes that you are familiar with ASP.Net and ActiveX controls.

MSI Admin Tool User Guide

Programming in Access VBA

USER GUIDE Appointment Manager

CREATING AND EDITING CONTENT AND BLOG POSTS WITH THE DRUPAL CKEDITOR

LEARNING RESOURCE CENTRE GUIDE TO OFFICE 365

Google Sites: Site Creation and Home Page Design

Sage 100 ERP. ebusiness Web Services Installation and Reference Guide

Differences between Computer and User Templates

Outlook Quick Steps & Rules

Cisco SSL Encryption Utility

JMC Next Generation Web-based Server Install and Setup

Administrator s Guide to deploying Engagement across multiple computers in a network using Microsoft Active Directory

CRM Setup Factory Installer V 3.0 Developers Guide

You must have at least Editor access to your own mail database to run archiving.

To change title of module, click on settings

LMS 365 Learning Module Builder Add-in User Guide VERSION X

Shipment Label Header Guide

Aspect WordPress Theme

Mail Merge Creating Mailing Labels 3/23/2011

Microsoft Office Access 2007 which I refer to as Access throughout this book

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

Automate tasks with Visual Basic macros

Getting Started with Skype for Business 2015

Insight Video Net. LLC. CMS 2.0. Quick Installation Guide

GETTING STARTED QUICK GUIDE

Utilizing SASED OneDrive Cloud Storage

Office 2013 Settings Customization Created 7/29/2014 by ICIT Training

Adding Outlook to a Blackberry, Downloading, Installing and Configuring Blackberry Desktop Manager

CMS Training Manual. A brief overview of your website s content management system (CMS) with screenshots. CMS Manual

Troubleshooting Guide

Fax and SMS Quickguide

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

PayPal Integration Instructions

Genesee Intermediate School District Technology & Media Services 2413 West Maple Avenue Flint, Michigan GenNET Self-Service Helpdesk Tipsheet

Basic Introduction. GMFX MetaTrader 4.0. Basic Introduction

Quick and Easy Web Maps with Google Fusion Tables. SCO Technical Paper

LMS 365 Learning Module Builder Add-in Installation Guide VERSION x

Managing Contacts in Outlook

Application Engineering Dept. API Applications Development

WinTask x64 Scheduler for Windows 7 64 bit, Windows 8/ bit and Windows 2008 R2 64 bit. Scheduler Quick Start Guide

AppShore Premium Edition Campaigns How to Guide. Release 2.1

Avery Wizard: Using the wizard with Microsoft Word. This is a simple step-by-step guide showing how to use the Avery wizard in word

ACTIVE DIRECTORY DEPLOYMENT

To create a new Campaign, click into the Marketing module. Then, click on Campaigns button.

Setting up in Outlook Express

Click Studios. Passwordstate. Password Discovery, Reset and Validation. Requirements

Select Correct USB Driver

Download and Installation Instructions. Visual C# 2010 Help Library

Chapter 6. Using the SQL Server

Atlanta Props How to Add a New Post. 1. Log into the account at using your username and password

Transcription:

Scripting with CAMMaster And Visual Basic.NET

Introduction CAMMaster is a very high performance CAM software program. Most of the functions that you can perform manually can be automated by utilizing the methods and properties that are exposed by CAMMaster. These methods and properties can be controlled by writing scripts. Scripts are essentially a recorded set of instructions that tell CAMMaster to perform a desired set of operations. There are many advantages to utilizing scripts with CAMMaster: Repetitive and/or tedious operations can be performed very quickly. This results in reduced operator fatigue. Once programmed properly, scripts don t make mistakes. This insures higher quality. Using scripts can help users that are not familiar with CAMMaster become productive quickly. Scripts can be written to insure that no procedural steps are missed when generating your CAM data. There are many ways to generate CAMMaster scripts. You can utilize the built in SAX Basic editor to record, store and run macros (simple scripts). Those who are familiar with the Visual Basic programming language can utilize it to automate CAMMaster. Microsoft has been developing a newer software framework known as.net (pronounced dot net ). The.NET framework includes a new sophisticated Visual Basic programming language called Visual Basic.NET (or VB.NET for short). Unlike previous versions of Visual Basic, VB.NET is a very powerful object oriented language. Programs generated using VB.NET can run very quickly. This document provides a brief overview of how to automate CAMMaster using the Microsoft.NET framework. The examples shown in this document were created using the Professional edition of Visual Basic.NET, from within version 7.1 of Microsoft s Visual Studio.NET. This document is not intended to be an exhaustive treatment of the subject. It is intended to give the user interested in scripting CAMMaster a starting point for further development.

Configuring Visual Studio To configure the.net environment perform the following steps. Start Visual Studio. If not displayed by default, display the start page by selecting Help ->Show Start Page as shown in figure 1 below: Figure 1 Displaying the Visual Studio Start Page

Configuring Visual Studio continued. Click on the My Profile tab to display your Visual Studio profile settings. Set all selections as shown in figure 2 below: Figure 2 My Profile Configured for a VB.NET user.

Starting a new project. You save the data pertaining to your script in a Microsoft Visual Studio project. To start a new project, either press Ctrl+N of select File->New->Project as shown in figure 3 below: Figure 3 Starting a new project.

Starting a new project - continued. In response the New Project dialogue is shown as shown in figure 4. Figure 4 New Project dialogue. Make sure that the Windows Application icon is selected in the Templates window. Enter CAMMaster Sample Script into the Name: text box. Accept the default project location or select a different directory to store your project in by clicking on the Browse button.

Starting a new project - continued. Click on the OK button to create the new project. In response, the Microsoft Visual Studio development environment is displayed as shown in figure 5 below: Figure 5 Visual Studio Development Environment New project loaded.

Adding the CAMMaster tool class reference. CAMMaster uses Active X to expose the many methods and properties that you can utilize to automate the operation of the program. To utilize these features, you must add a reference to the CAMMaster tool class. Select Project->Add Reference as shown in figure 6 below: Figure 6 Select Project->Add Reference

Adding the CAMMaster tool class reference - continued. Once the Add Reference dialogue is presented, perform the following steps: Click on the COM tab near the top of the dialogue. Scroll to the PentaLogix CAM-tools Type Library and click on this entry. Click on the Select button to add the library to the Selected Components list. Your screen should appear as in figure 7 below: Figure 7 Add Reference dialogue with PentaLogix CAM-tools Type Library selected. Click on the OK button to accept your choice.

Adding the CAMMaster tool class reference - continued. Notice the location of the cursor near the upper right hand corner of figure 8 below. You can see that the CAMMaster tool class has been added as a reference to the project. Figure 8 CAMMaster tool class added as a project reference.

Adding a code module. Now let s add a code module and name it Sample.vb. Select Project->Add Module as shown in figure 9 below: Figure 9 Adding a Module.

Adding a code module - continued. In response, Visual Studio displays the Add New Item dialogue as shown in figure 10 below: Figure 10 Add New Item dialogue. Enter the text Sample.vb into the Name: text box. Then click on the Open button to display the new code module. Add the following text to the new code module: Option Strict On Imports CAMMaster Module Sample Public CAM As New CAMMaster.Tool End Module

Adding code. You have now added a reference to the CAMMaster tool class and you have dimensioned the tool class so that you can use it. Now modify the Sample.vb module as shown below: Option Strict On Imports CAMMaster Module Sample Public CAM As New CAMMaster.Tool Public IsFalse As Integer = 0 Public IsTrue As Integer = 1 Sub main() With CAM.TracesVisible = IsFalse End With End Sub End Module

Select the Startup object. Select Project->CAMMaster Sample Script Properties as shown in figure 11 below: Figure 11 Select Project->CAMMaster Sample Script Properties

Select the Startup object continued. In response, the CAMMaster Sample Script Property Pages dialogue is displayed as shown in the figure below: Figure 12 The CAMMaster Sample Script Properties Pages dialogue. Select the Sub Main entry from the Startup object: combo box. This will insure that our Main subroutine will be used as the startup object. Run the program. Start CAMMaster and load a job that contains both pads and traces. From the Visual Studio main menu, select Debug->Start or press the F5 key to run your program. Switch back to CAMMaster and notice that the traces have now been turned off. Summary. This brief introduction to scripting with CAMMaster and VB.NET is intended to get you started. We will provide future application notes that will expand on this topic. If you have any questions, please forward them to max@pentalogix.com.