An Overview of VBA in AutoCAD 2006
|
|
- Iris Gilmore
- 5 years ago
- Views:
Transcription
1 11/29/2005-5:00 pm - 6:30 pm Room:Swan 2 (Swan Walt Disney World Swan and Dolphin Resort Orlando, Florida An Overview of VBA in AutoCAD 2006 Phil Kreiker - Looking Glass Microproducts CP22-2 This course presents an overview of how VBA fits into the customization scheme in AutoCAD About the Speaker: Phil is CTO at Looking Glass Microproducts, an Autodesk Registered Developer, where he is responsible for AutoCAD training, customization, and support. He has designed and programmed computers since 1963 and has used AutoCAD since Phil taught AutoCAD at the Colorado School of Mines from 1998 to He wrote the CAD Cookbook column for 10 years for CADalyst, and was technical editor-at-large for CADENCE magazine from 1996 to He is the author of several books including his latest Visual LISP: A Guide to Artful Programming which is part of the Programmer s Series from Autodesk Press. Phil received his Bachelor of Engineering degree from Cooper Union for the Advancement of Science and Art and his M.S. degree from Lowell Technological Institute. phil@lookingglassmicro.com
2
3 Introduction This course presents an overview of how VBA fits into the customization scheme in AutoCAD We ll be covering the following topics: A Brief History of Visual Basic Command Line Programs vs. GUI Programs Comparison of Visual LISP, VBA, C++ The Strengths and Weaknesses of each vis à vis AutoCAD Interfacing with AutoCAD Graphic User Interface (GUI Reactors ActiveX Automation Recommendations A Brief History of Visual Basic With command line programs, the program dictates the order of the user s actions. Despite the graphics screen, AutoCAD started out as a Command Line program. In may respects, it still is: Command: -block Enter block name or [?]: mental Specify insertion base point: Select objects: 2
4 GUI programs are event-driven programs. The user determines the next program action by triggering a specific event: Click Keypress BeginCommand EndSave Although the command line is still present (when you want it in AutoCAD 2006, AutoCAD 2006 is now, for the most part, a GUI program. Before Visual Basic (1991-, you had to know C++ and you had to know the Windows API. Only the truly dedicated and skilled (geeks could attempt to write Windows Programs. With Visual Basic (1999+, you draw your own User Interface (UI, you add the code to react to events, you concentrate on the problem at hand, and you don t have to be a (major geek to do it. There are probably more lines of production code written in Visual Basic than in any other language. 3
5 Comparison of Visual LISP, VBA, C++ How does VBA stack up against the other major AutoCAD programming languages? Let s take a look at the following table: Visual LISP VBA VB C++ GUI Cryptic Easy Easy Difficult Who Drives? AutoCAD AutoCAD VB AutoCAD or C++ Event Driven Cryptic Easy Moderate Difficult ActiveX Automation Cryptic Easy Easy Easy Development Environment Included in AutoCAD Included in AutoCAD $1, $1, Skill Transfer Virtually None ActiveX ActiveX & Standalone The World Modal Dialog Box Modal dialog boxes halt their calling programs until you tell them to continue; e.g., OK, Cancel. Let s take a look at a simple modal dialog box as implemented in both Visual LISP and VBA. First Visual LISP: // hello.dcl hello : dialog { label = "Sample Dialog Box"; : text { label = "Hello, world"; } : button { key = "accept"; label = " OK "; is_default = true; fixed_width = true; alignment = centered; is_cancel = true; } } You define your dialog box with a DCL (Dialog Control Language file. For you historical buffs, DCL was invented by Autodesk, as part of the Prometheous project, to deal with the problem of defining dialog boxes for diverse platforms (Windows, DOS, Sun, etc.. For you mythology buffs, Proteus was an ancient sea-god and the herdsman of Poseidon's seals. Like the other sea-gods, he had the gift of prophecy and the ability to change his shape at will. 4
6 Now that the DCL file is defined, you can evoke it with the following code: ;;; Hello.lsp (defun C:HELLO (/ dcl_id (setq dcl_id (load_dialog "hello.dcl" (if (not (new_dialog "hello" dcl_id (exit (start_dialog (unload_dialog dcl_id (princ Now let s see what it takes to do the same thing with VBA: 5
7 With VBA, you define your dialog box by dragging, dropping, and editing controls from our toolbox. In addition to the tools shown above, (Label, TextBox, ComboBox, ListBox, CheckBox, OptionButton, ToggleButton, Frame, CommandButton, TabStrip, MultiPage, ScrollBar, SpinButton and Image, there are over 300 sets of additional controls on my computer. I don t know how many there are on yours. In addition, if you need a specialized control that you don t have, you can buy third-party controls, or roll your own with C++. 6
8 You can define the look and feel of our form and each of its controls with the properties window. As for the code, it practically writes itself. In Userform1 In Module1 Non-Modal Dialog Boxes You're probably familiar with modal dialog boxes. They make you dismiss them before returning control to the calling program. Non-modal dialog boxes return control to their calling programs, and hang around until you dismiss them. You can't do this in Visual LISP, but you can in VBA. Let's define a simple non-modal dialog box that can be used to provide numeric input to the AutoCAD command prompt. Here are our dialog box and a few of the callback functions associated with it: 'UserForm1 Code Private Sub CommandButton1_Click( ThisDrawing.SendCommand "1" End Sub Private Sub CommandButton2_Click( ThisDrawing.SendCommand "2" End Sub Private Sub CommandButton17_Click( ThisDrawing.SendCommand vbcr End Sub 7
9 With each button click, we merely stuff the appropriate string down the AutoCAD command throat. The default for a Command button is to take focus when you click on it. You don't want this here, so you just disable it in its properties. You'll find it useful to create one control, set its properties, and paste it multiple times. To keep things clean when we close all the open drawings, we add the following: AcadDocument Code Private Sub AcadDocument_BeginClose( If Application.Documents.Count( <= 1 Then Unload UserForm1 End If End Sub To fire it up, we create a module, and add the following code: 'Module1 Code Public Sub ShowTenKey( UserForm1.Show vbmodeless End Sub You're not quite done. Modeless dialog boxes do not work correctly until you include an 'AutoCAD Focus Control for VBA Type Library' on your form. This control installs with all supported versions of AutoCAD. Here's how you use it: You select Tools References and enable the control from the available references Next, you add the control to your toolbox. Select Tools Additional Controls, and enable the AcFocusCtrl control to appear on the Toolbox. The new control is the one with the blue bar on the Toolbox. 8
10 You add the control to your form, and sweep it under the carpet. There's one more thing you'll want to do. To prevent your visible command buttons from showing focus, add the following sub to your form: Private Sub UserForm_Activate( AcFocusCtrl1.SetFocus End Sub 9
11 Reactors Reactors allow your program to respond (react to selected user-driven events. In effect, this makes AutoCAD your GUI, and lets you insinuate yourself into the AutoCAD experience. Here are the VBA reactors, there are corresponding Visual LISP reactors Reactor Activate AppActivate AppDeactivate ARXLoaded ARXUnloaded BeginClose BeginCommand BeginDocClose BeginDoubleClick BeginFileDrop BeginLISP BeginModal BeginOpen BeginPlot BeginQuit BeginRightClick BeginSave BeginShortcutMenuCommand BeginShortcutMenuDefault BeginShortcutMenuEdit BeginShortcutMenuGrip BeginShortcutMenuOSnap Deactivate EndCommand EndLISP Event After a document window is activated. Before the main application window is activated. Before the main application window is deactivated. After an ObjectARX application has been loaded. After an ObjectARX application has been unloaded. After AutoCAD receives a request to close a drawing. After a command is issued, but before it completes. After AutoCAD receives a request to close a drawing. After the user double-clicks an object in the drawing. After a file is dropped on the main application window. After AutoCAD receives a request to evaluate a LISP expression. Before a modal dialog is displayed. After AutoCAD receives a request to open an existing drawing. After AutoCAD receives a request to print a drawing. Before an AutoCAD session ends or a document closes. After the user right-clicks on the drawing window. After AutoCAD receives a request to save the drawing. After the user right-clicks on the drawing window, and before the shortcut menu appears in command mode. After the user right-clicks on the drawing window, and before the shortcut menu appears in default mode. After the user right-clicks on the drawing window, and before the shortcut menu appears in edit mode. After the user right-clicks on the drawing window, and before the shortcut menu appears in grip mode. After the user right-clicks on the drawing window, and before the shortcut menu appears in osnap mode. After the drawing window is deactivated. After a command completes. After evaluating a LISP expression. 10
12 EndModal EndOpen EndPlot EndSave EndShortcutMenu LayoutSwitched LISPCancelled Modified NewDrawing ObjectAdded ObjectErased ObjectModified SelectionChanged SysVarChanged WindowChanged WindowMovedOrResized After a modal dialog is dismissed. After AutoCAD finishes opening an existing drawing. After a document has been sent to the printer. After AutoCAD has finished saving the drawing. After the shortcut menu appears. After the user switches to a different layout. After the evaluation of a LISP expression is cancelled. After an object or collection in the drawing has been modified. Before a new drawing is created. After an object has been added to the drawing. After an object has been erased from the drawing. After an object in the drawing has been modified. After the current pickfirst selection set changes. After the value of a system variable is changed. After there is a change to the application or document windows. After the application or drawing window has been moved or resized. Visual LISP Example The following file illustrates Visual LISP Reactors: ;;; File reactors.lsp ;;; Add our reactors to the reactor list (defun AddReactors (appname / editor-reactor-var reactor-list (setq reactor-list (list (cons :vlr-commandwillstart (read (strcat appname "-commandwillstart" (cons :vlr-commandended (read (strcat appname "-commandended" (setq editor-reactor-var (read (strcat appname "-EDITOR-REACTOR" (if (and reactor-list (not (vl-symbol-value editor-reactor-var (set editor-reactor-var (vlr-editor-reactor appname reactor-list ;;; Remove our reactors from the reactor list (defun RemoveReactors (appname / editor-reactor mouse-reactor temp (setq editor-reactor (read (strcat appname "-EDITOR-REACTOR" (if (setq temp (vl-symbol-value editor-reactor (progn (vlr-remove temp (set editor-reactor nil 11
13 (setq mouse-reactor (read (strcat appname "-MOUSE-REACTOR" (if (setq temp (vl-symbol-value mouse-reactor (progn (vlr-remove temp (set mouse-reactor nil ;;; Command Will Start Reactor (defun AU2005-commandWillStart (reactor command-list (alert (strcat "commandwillstart: " (car command-list (princ ;;; Command Ended Reactor (defun AU2005-commandEnded (reactor command-list (alert (strcat "commandended: " (car command-list (princ ;;; Command Ended Reactor (setq appname "AU2005" (AddReactors appname In this file, we've defined functions that add and remove our reactors, a pair of reactors for commandstarted and commandended. AddReactors may be generalized for any number of reactors to be added to the reactor list. At the end of the file, we've defined our application name and added our reactors. After loading our file, here's what we'll see: VBA Reactors With VBA, you simply select the event for which you wish a reactor, and VBA constructs a reactor subroutine for you. You fill in the code, and VBA and deals with connecting and disconnecting the reactors. 12
14 Return to AutoCAD, call up the line command, and here's what you'll see: ActiveX Automation ActiveX Automation is a Microsoft standard for interaction between Windows programs. It enables one application to use the functions of another application such that The two applications appear to be a single program, or One application seems to have the capabilities of the other. With ActiveX Automation, we can have an Excel spreadsheet create, access, and/or modify an AutoCAD drawing, and we can have an AutoCAD drawing create, access, and/or modify an Excel spreadsheet. Most importantly, a Visual LISP or VBA or VB application can access AutoCAD. With ActiveX Automation, you can write programs that Are faster than using the AutoCAD command throat. Are faster than using entmake, entget, and entmod. Can directly access almost every aspect of AutoCAD. 13
15 Can do much more than Visual LISP alone. Here s a small section of the AutoCAD ActiveX Automation object model: From this abbreviated model, we can see that the Application object (AutoCAD is at the top of the model. The Application contains a Documents collection. The Documents collection contains Documents. Each document contains a Blocks collection, a ModelSpace collection, and a PaperSpace Collections. Each of these collections consists of graphical objects such as lines, circles, arcs, etc. What we have here is a collection of containers and the objects that go in them. While the concept may be strange to you, it s fairly easy to come to grips with. Let s draw a circle with Visual LISP and ActiveX Automation: ((vl-load-com (defun DrawCircle (/ circleobj centerpoint radius (setq centerpoint '( (setq radius 1.0 (setq circleobj (vla-addcircle (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object (vlax-3d-point centerpoint radius (vla-zoomextents (vlax-get-acad-object Now let s do it with VBA: 14
16 Sub DrawCircle( Dim circobj As AcadCircle Dim ctrpnt(0 To 2 As Double Dim rad As Double ctrpnt(0 = 2# ctrpnt(1 = 3# ctrpnt(2 = 0# rad = 1# Set circobj = ThisDrawing.ModelSpace.AddCircle(ctrPnt, rad ZoomExtents End Sub Development Environment AutoCAD provides development environments for both Visual LISP and VBA. The development environments for VB and C++ are part of Microsoft Visual Studio. The VBA IDE offers the following options: Auto Syntax Check Require Explicit Variable Declaration Auto List members Auto Quick Info Auto Data Tips Auto Indent Object Browser The Visual LISP IDE offers none of these. Performance The following graph was prepared by Autodesk, and illustrates the comparative performance for ObjectARX, VBA, Visual LISP, and VB for manipulating an AutoCAD database: 15
17 Seconds Total Create dPolylines Add XData to 1000 Entities Update 1000 Circles Create 1000 lines COM (VB LISP AutoCAD's APIs While VBA isn't as fast as Object, it's a close second. Skills Transfer COM (VBA ObjectARX Create 1000 Circles While Visual LISP is an extremely powerful platform for developing AutoCAD applications (it was the first, there s not much call for LISP programmers out there. As much as I like Visual LISP, it s pretty much a dead end when it comes to skills transfer. In addition, if you avoid Visual LISP, there s more work for me. The skills you acquire using VBA, on the other hand, can be used with any application that supports VBA and/or ActiveX Automation. Microsoft Word, PowerPoint, Access, and Excel come to mind. These skills are transferable to both VB and to C++, although admittedly, C++ will be a more intense transformation. Recommendations If you have an application in Visual LISP, leave it there. Although porting between Visual LISP and VBA is fairly easy, why spend time reinventing the wheel? You might consider using VBA for dialog and message boxes; Visual LISP can call VBA and vice versa. If you re looking at a new application, consider moving to VBA. It s vastly superior user interface and IDE will more than compensate for the learning curve. 16
18
VBA Foundations, Part 11
Welcome back for another look at VBA Foundations for AutoCAD. This issue will look at the concept of Events in greater depth. I mentioned in the last issue that events are at the heart of VBA and the AutoCAD
More informationSpeaker Name: Bill Kramer. Course: CP42-2 A Visual LISP Wizard's Into to Reactor Magic. Course Description
Speaker Name: Bill Kramer Course: CP42-2 A Visual LISP Wizard's Into to Reactor Magic Course Description Visual LISP reactors are the tools by which event-driven applications are created. If you want to
More informationLas Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning
More informationIntroduction... 1 Part I: Getting Started with Excel VBA Programming Part II: How VBA Works with Excel... 31
Contents at a Glance Introduction... 1 Part I: Getting Started with Excel VBA Programming... 9 Chapter 1: What Is VBA?...11 Chapter 2: Jumping Right In...21 Part II: How VBA Works with Excel... 31 Chapter
More informationVBA Foundations, Part 7
Welcome to this months edition of VBA Foundations in its new home as part of AUGIWorld. This document is the full version of the article that appears in the September/October issue of Augiworld magazine,
More informationVBA: Hands-On Introduction to VBA Programming
11/28/2005-10:00 am - 11:30 am Room:Osprey 1 [Lab] (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida VBA: Hands-On Introduction to VBA Programming Jerry Winters - VB CAD and Phil Kreiker
More informationIntroduction VBA for AutoCAD (Mini Guide)
Introduction VBA for AutoCAD (Mini Guide) This course covers these areas: 1. The AutoCAD VBA Environment 2. Working with the AutoCAD VBA Environment 3. Automating other Applications from AutoCAD Contact
More informationCourse Title: Mastering the Visual LISP Integrated Development Environment (IDE)
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: R. Robert Bell Course Title: Mastering the Visual LISP Integrated Development Environment (IDE) Course ID: CP42-1 Course Outline: The introduction of
More informationProgramming with Visual Basic for Applications
BONUS CHAPTER Programming with Visual Basic for Applications 3 IN THIS CHAPTER Understanding VBA and AutoCAD Writing VBA code Getting user input Creating dialog boxes Modifying objects Creating loops and
More informationSpeaker Name: Darren J. Young / Course Title: Introduction to Visual LISP's vl- functions. Course ID: CP42-3
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Darren J. Young / dyoung@mcwi.com Course Title: Introduction to Visual LISP's vl- functions Course ID: CP42-3 Course Outline: This course presents long-time
More informationSpeaker Name: Bill Kramer. Course: CP31-2 A Visual LISP Wizard's Advanced Techniques. Course Description
Speaker Name: Bill Kramer Course: CP31-2 A Visual LISP Wizard's Advanced Techniques Course Description Ready to move beyond DEFUN, SETQ, GETPOINT, and COMMAND? This class is intended for veteran AutoCAD
More informationChapter 29 Introduction to Dialog Control Language (DCL)
CHAPTER Introduction to Dialog Control Language (DCL Learning Objectives After completing this chapter, you will be able to: Describe the types of files that control dialog boxes. Define the components
More informationDrawing an Integrated Circuit Chip
Appendix C Drawing an Integrated Circuit Chip In this chapter, you will learn how to use the following VBA functions to World Class standards: Beginning a New Visual Basic Application Opening the Visual
More informationComplete Display Control in Autodesk Architectural Desktop
11/30/2005-10:00 am - 11:30 am Room:N. Hemispheres (Salon D) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Complete Display Control in Autodesk Architectural Desktop Matt Dillon
More informationSpeaker Name: Bill Kramer. Course: CP33-2 A Visual LISP Wizard's Intro to Object Magic. Course Description
Speaker Name: Bill Kramer Course: CP33-2 A Visual LISP Wizard's Intro to Object Magic Course Description This course introduces the use of objects in Visual LISP and demonstrates how they can be created
More informationAutoLISP - Beyond the Crash Course Robert Green Robert Green Consulting Group
AutoLISP - Beyond the Crash Course Robert Green Robert Green Consulting Group CP111-1 So you ve started using AutoLISP/Visual LISP but now you want to gain more functionality and build more elegant routines?
More informationKEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG
Document Number: IX_APP00113 File Name: SpreadsheetLinking.doc Date: January 22, 2003 Product: InteractX Designer Application Note Associated Project: GetObjectDemo KEYWORDS DDE GETOBJECT PATHNAME CLASS
More informationAutoCAD VBA Programming
AutoCAD VBA Programming TOOLS AND TECHNIQUES John Gibband Bill Kramer Freeman fbooks San Francisco Table of Contents Introduction Chapter 1: The AutoCAD VBA Environment 1 AutoCAD Programming Solutions
More informationAutoLISP for CAD Managers Robert Green Robert Green Consulting Group
Robert Green Robert Green Consulting Group CM305-1L AutoLISP/Visual LISP is a powerful way to extend the AutoCAD functionality, but many avoid using it because they think it's too hard to learn. This class
More informationLab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet
Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet 1. Macros 1.1 What is a macro? A macro is a set of one or more actions
More informationAutoCAD Plus: What You Get When You Add.NET!
11/30/2005-1:00 pm - 2:30 pm Room:N. Hemispheres (Salon E1) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida AutoCAD Plus: What You Get When You Add.NET! Clayton Hotson - Autodesk CP33-3
More informationDiscover the DATA behind the Drawing Using A+CAD. Permission to copy
Discover the DATA behind the Drawing Using A+CAD Permission to copy The CAD Academy Did you ever wonder how the entities you draw on the screen look in the database? Understanding how CAD stores data makes
More informationThe AutoLISP Platform for Computer Aided Design
The AutoLISP Platform for Computer Aided Design Harold Carr Robert Holt Autodesk, Inc. 111 McInnis Parkway San Rafael, California 94903 harold.carr@autodesk.com rhh@autodesk.com Introduction Over fifteen
More informationAutoLISP Tricks for CAD Managers Speaker: Robert Green
December 2-5, 2003 MGM Grand Hotel Las Vegas AutoLISP Tricks for CAD Managers Speaker: Robert Green CM42-1 You already know that AutoLISP is a powerful programming language that can make AutoCAD do great
More informationVBA Foundations, Part 12
As quickly as you can Snatch the Pebble from my hand, he had said as he extended his hand toward you. You reached for the pebble but you opened it only to find that it was indeed still empty. Looking down
More informationSAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE
SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE Course Title: Introduction to Visual Basic Code No.: Semester: Three Program: Computer Programming Author: Willem de Bruyne
More informationGetting started 7. Setting properties 23
Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening
More informationVisual Studio.NET for AutoCAD Programmers
December 2-5, 2003 MGM Grand Hotel Las Vegas Visual Studio.NET for AutoCAD Programmers Speaker Name: Andrew G. Roe, P.E. Class Code: CP32-3 Class Description: In this class, we'll introduce the Visual
More informationGetting Started COPYRIGHTED MATERIAL. Chapter 1. Exploring the AutoCAD 2013 for Windows User Interface. Exploring the Graphical User Interface
Getting Started Chapter 1 P AutoCAD for Mac has a user interface that is customized to the Mac experience. Although the Mac user interface is not covered in this book, its commands and capabilities are
More informationMechanical Drawings Gone Wild
11/28/2005-1:00 pm - 2:30 pm Room:Mockingbird 1/2 [Lab] (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida Mechanical Drawings Gone Wild Colleen Klein - MasterGraphics and Jim Swain (Assistant);
More informationAutoCAD 2009 User InterfaceChapter1:
AutoCAD 2009 User InterfaceChapter1: Chapter 1 The AutoCAD 2009 interface has been enhanced to make AutoCAD even easier to use, while making as much screen space available as possible. In this chapter,
More informationCorporate essentials
Microsoft Office Excel 2016, Corporate essentials A comprehensive package for corporates and government organisations Knowledge Capital London transforming perfomance through learning MS OFFICE EXCEL 2016
More informationAutoCAD Electrical Customization from A to Z
11/30/2005-10:00 am - 11:30 am Room:Parrot 1/2 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida AutoCAD Electrical Customization from A to Z Randy Brunette - Brunette Technologies, LLC
More informationAfter completing this lesson, you will be able to:
LEARNING OBJECTIVES After completing this lesson, you will be able to: 1. Create a template. 2. Understand the AutoCAD Window. 3. Understand the use of the function keys. 4. Select commands using the Pull-down
More informationSILVACO. An Intuitive Front-End to Effective and Efficient Schematic Capture Design INSIDE. Introduction. Concepts of Scholar Schematic Capture
TCAD Driven CAD A Journal for CAD/CAE Engineers Introduction In our previous publication ("Scholar: An Enhanced Multi-Platform Schematic Capture", Simulation Standard, Vol.10, Number 9, September 1999)
More informationCreating a Dynamo with VBA Scripts
Creating a Dynamo with VBA Scripts Creating a Dynamo with VBA 1 Table of Contents 1. CREATING A DYNAMO WITH VBA... 3 1.1 NAMING CONVENTIONS FOR DYNAMO OBJECTS...3 1.2 CREATING A DYNAMO...4 1.3 DESIGNING
More informationExtending the Unit Converter
Extending the Unit Converter You wrote a unit converter previously that converted the values in selected cells from degrees Celsius to degrees Fahrenheit. You could write separate macros to do different
More informationAfter completing this lesson, you will be able to:
LEARNING OBJECTIVES After completing this lesson, you will be able to: 1. Create a template. 2. Understand the AutoCAD Window. 3. Understand the use of the function keys. 4. Select commands using the Pull-down
More informationManual Vba Access 2010 Close Form Without Saving Record
Manual Vba Access 2010 Close Form Without Saving Record I have an Access 2010 database which is using a form frmtimekeeper to keep Then when the database is closed the close sub writes to that same record
More informationIntegration of AutoCAD VBA with Microsoft Excel
11/29/2005-5:00 pm - 6:30 pm Room:Swan 4 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida Integration of AutoCAD VBA with Microsoft Excel dave espinosa-aguilar - Toxic Frog Multimedia
More informationData Mining in Autocad with Data Extraction
Data Mining in Autocad with Data Extraction Ben Rand Director of IT, Job Industrial Services, Inc. Twitter: @leadensky Email: ben@leadensky.com Join the conversation #AU2016 A little about me BA in English,
More informationGetting started 7. Setting properties 23
Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects
More informationA Complete Tutorial for Beginners LIEW VOON KIONG
I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been
More informationAgenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...
INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement
More informationIntegrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia
November 30 December 3, 2004 Las Vegas, Nevada Integrating Microsoft Access with AutoCAD VBA dave espinosa-aguilar Toxic Frog Multimedia CP32-3 Course Description: For years AutoCAD users have been trying
More informationWelcome Application. Introducing the Visual Studio.NET IDE. Objectives. Outline
2 T U T O R I A L Objectives In this tutorial, you will learn to: Navigate Visual Studio.NET s Start Page. Create a Visual Basic.NET solution. Use the IDE s menus and toolbars. Manipulate windows in the
More informationBlockbusters: Unleashing the Power of Dynamic Blocks Revealed!
Blockbusters: Unleashing the Power of Dynamic Blocks Revealed! Matt Murphy - ACADventures GD201-3P Discover the full potential of Dynamic Blocks in AutoCAD. Learn how each parameter and action behaves
More informationThe Anglemaker Program
C h a p t e r 3 The Anglemaker Program In this chapter, you will learn the following to World Class standards: 1. Drawing and Labeling the Anglemaker Programming Sketch 2. Launching the Visual LISP Editor
More informationCHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface
CHAPTER 1 Finding Your Way in the Inventor Interface COPYRIGHTED MATERIAL Understanding Inventor s interface behavior Opening existing files Creating new files Modifying the look and feel of Inventor Managing
More informationWhat's New in AutoCAD Electrical 2006?
11/28/2005-5:00 pm - 6:30 pm Room:Pelican 2 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida What's New in AutoCAD Electrical 2006? Randy Brunette - Brunette Technologies, LLC MA15-2 You
More informationSketchUp Tool Basics
SketchUp Tool Basics Open SketchUp Click the Start Button Click All Programs Open SketchUp Scroll Down to the SketchUp 2013 folder Click on the folder to open. Click on SketchUp. Set Up SketchUp (look
More informationAutodesk Architectural Desktop Real-World Workflow Methodology
11/30/2005-5:00 pm - 6:30 pm Room:N. Hemispheres (Salon E1) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Autodesk Architectural Desktop Real-World Workflow Methodology Edward Goldberg,
More informationWorking with AutoCAD in Mixed Mac and PC Environment
Working with AutoCAD in Mixed Mac and PC Environment Pavan Jella Autodesk AC6907 With the introduction of AutoCAD for Mac, some professionals now work in hybrid environments one engineer may draft designs
More informationOutlook Web Access. In the next step, enter your address and password to gain access to your Outlook Web Access account.
Outlook Web Access To access your mail, open Internet Explorer and type in the address http://www.scs.sk.ca/exchange as seen below. (Other browsers will work but there is some loss of functionality) In
More informationIntroduction to Microsoft Office PowerPoint 2010
Introduction to Microsoft Office PowerPoint 2010 TABLE OF CONTENTS Open PowerPoint 2010... 1 About the Editing Screen... 1 Create a Title Slide... 6 Save Your Presentation... 6 Create a New Slide... 7
More informationMore Constraints Than Houdini
11/30/2005-8:00 am - 9:30 am Room:Swan 1 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida More Constraints Than Houdini Thomas Short, P.E. - Munro & Associates, Inc. and Anthony Dudek
More informationHOUR 4 Understanding Events
HOUR 4 Understanding Events It s fairly easy to produce an attractive interface for an application using Visual Basic.NET s integrated design tools. You can create beautiful forms that have buttons to
More informationThe Department of Construction Management and Civil Engineering Technology CMCE-1110 Construction Drawings 1 Lecture Introduction to AutoCAD What is
The Department of Construction Management and Civil Engineering Technology CMCE-1110 Construction Drawings 1 Lecture Introduction to AutoCAD What is AutoCAD? The term CAD (Computer Aided Design /Drafting)
More informationCourse Title: Integrating Microsoft Excel with AutoCAD VBA
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: dave espinosa-aguilar Course Title: Integrating Microsoft Excel with AutoCAD VBA Course ID: CP32-2 Course Outline: For years AutoCAD users have been
More informationFirst Visual Basic Lab Paycheck-V1.0
VISUAL BASIC LAB ASSIGNMENT #1 First Visual Basic Lab Paycheck-V1.0 Copyright 2013 Dan McElroy Paycheck-V1.0 The purpose of this lab assignment is to enter a Visual Basic project into Visual Studio and
More informationThis project was originally conceived as a pocket database application for a mobile platform, allowing a
Dynamic Database ISYS 540 Final Project Executive Summary This project was originally conceived as a pocket database application for a mobile platform, allowing a user to dynamically build, update, and
More informationHuman Factors Engineering Short Course Topic: A Simple Numeric Entry Keypad
Human Factors Engineering Short Course 2016 Creating User Interface Prototypes with Microsoft Visual Basic for Applications 3:55 pm 4:55 pm, Wednesday, July 27, 2016 Topic: A Simple Numeric Entry Keypad
More informationSubdivide and Conquer! - Tips and Tricks for Working with Parcels in Autodesk Civil 3D.
11/28/2005-1:00 pm - 2:30 pm Room:Swan 9/10 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida Subdivide and Conquer! - Tips and Tricks for Working with Parcels in Autodesk Civil 3D. Marissa
More informationCopyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide
PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006
More informationBricsCAD Pro adds 3D Modeling and access to the full suite of programming tools.
CAD plus d.o.o. Sarajevo nudi rješenje za projektovanje www.cadplus.ba info@cadplus.ba BricsCAD Editions Our multi-faceted CAD platform comes in three editions: Classic, Pro, and Platinum. BricsCAD Classic
More informationIn the first class, you'll learn how to create a simple single-view app, following a 3-step process:
Class 1 In the first class, you'll learn how to create a simple single-view app, following a 3-step process: 1. Design the app's user interface (UI) in Xcode's storyboard. 2. Open the assistant editor,
More informationPart I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations
Part I Integrated Development Environment Chapter 1: A Quick Tour Chapter 2: The Solution Explorer, Toolbox, and Properties Chapter 3: Options and Customizations Chapter 4: Workspace Control Chapter 5:
More informationntroduction Topics in this section Working in Visual LISP Tutorial Overview Please send us your comment about this page
ntroduction This tutorial is designed to demonstrate several powerful capabilities of the AutoLISP programming environment for AutoCAD and introduce features of the AutoLISP language that may be new to
More informationHeads Up Design: Focusing on the drawing area
Autodesk AutoCAD 2006 New Features By Ellen Finkelstein Here are some of my favorite new features. If you want a detailed description and applicable exercises, you'll find them in my book -- AutoCAD 2006
More informationCOPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: IDE. Chapter 2: Controls in General. Chapter 3: Program and Module Structure
Part I: Getting Started Chapter 1: IDE Chapter 2: Controls in General Chapter 3: Program and Module Structure Chapter 4: Data Types, Variables, and Constants Chapter 5: Operators Chapter 6: Subroutines
More informationLD20493 From AutoCAD Civil 3D to Storm and Sanitary Analysis - Pond Design Using Volume-Grading Tools
LD20493 From AutoCAD Civil 3D to Storm and Sanitary Analysis - Pond Design Using Volume-Grading Tools Kevin Larkin LSC Design, Inc. Learning Objectives Learn how to dynamically model stormwater ponds using
More informationTools for the VBA User
11/30/2005-3:00 pm - 4:30 pm Room:Mockingbird 1/2 [Lab] (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida R. Robert Bell - MW Consulting Engineers and Phil Kreiker (Assistant); Darren Young
More informationAUGI Tips and Tricks GD12-2. Donnia Tabor-Hanson - MossCreek Designs
11/28/2005-10:00 am - 11:30 am Room:S. Hemispheres (Salon II) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida AUGI Tips and Tricks Donnia Tabor-Hanson - MossCreek Designs GD12-2 Did
More informationTutorial 01 Quick Start Tutorial
Tutorial 01 Quick Start Tutorial Homogeneous single material slope No water pressure (dry) Circular slip surface search (Grid Search) Intro to multi scenario modeling Introduction Model This quick start
More informationInfoRecall in 20 Minutes Phantech Software
2 Table of Contents Part I Introduction 3 Part II Create a File 3 Part III Create and Save Documents 4 Part IV Import Files 6 Part V Create a Hypertext Link 7 Part VI Create a Link to a Web Site 9 Part
More informationExcel 2016 Power Programming with VBA
Excel 2016 Power Programming with VBA Excel 2016 Power Programming with VBA Michael Alexander Dick Kusleika Excel 2016 Power Programming with VBA Published by John Wiley & Sons, Inc. 10475 Crosspoint
More informationPainless Productivity Programming with the Autodesk AutoCAD Action Recorder Revealed!
Painless Productivity Programming with the Autodesk AutoCAD Action Recorder Revealed! Matt Murphy 4D Technologies/CADLearning AC2098 Productivity through programming has never been a friendly or intuitive
More informationWord 2007 Advanced. Business Management Daily. Presented by: Vickie Sokol Evans, MCT Founder, The Red Cape Company. March 22, :15 p.m.
Word 2007 Advanced Business Management Daily Presented by: Vickie Sokol Evans, MCT Founder, The Red Cape Company March 22, 2011 1 2:15 p.m., ET Agenda & Content Slides Effortlessly Format Long Documents
More informationExcel 2016 Power Programming with VBA
Excel 2016 Power Programming with VBA Excel 2016 Power Programming with VBA Michael Alexander Dick Kusleika Excel 2016 Power Programming with VBA Published by John Wiley & Sons, Inc. 10475 Crosspoint Boulevard
More informationBack to Flat Producing 2D Output from 3D Models
Back to Flat Producing 2D Output from 3D Models David Cohn Modeling in 3D is fine, but eventually, you need to produce 2D drawings. In this class, you ll learn about tools in AutoCAD that let you quickly
More informationTo get started with Visual Basic 2005, I recommend that you jump right in
In This Chapter Chapter 1 Wading into Visual Basic Seeing where VB fits in with.net Writing your first Visual Basic 2005 program Exploiting the newfound power of VB To get started with Visual Basic 2005,
More informationAnswer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C
1. Visual Basic is a tool that allows you to develop application in A. Real time B. Graphical User Interface C. Menu Driven D. None Of These 2. IDE stands for.. A. Internet Development Environment B. Integrated
More informationBridgit Conferencing Software User s Guide. Version 3.0
Bridgit Conferencing Software User s Guide Version 3.0 ii Table Of Contents Introducing Bridgit Conferencing Software... 1 System Requirements... 1 Getting Bridgit Conferencing Software... 2 The Bridgit
More informationPROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA
PROGRAMMING LANGUAGE 2 (SPM3112) INTRODUCTION TO VISUAL BASIC NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA Topics Visual Basic Components Basic Operation Screen Size
More informationKonark - Writing a KONARK Sample Application
icta.ufl.edu http://www.icta.ufl.edu/konarkapp.htm Konark - Writing a KONARK Sample Application We are now going to go through some steps to make a sample application. Hopefully I can shed some insight
More informationGoogle LayOut 2 Help. Contents
Contents Contents... 1 Welcome to LayOut... 9 What's New in this Release?... 10 Learning LayOut... 12 Technical Support... 14 Welcome to the LayOut Getting Started Guide... 15 Introduction to the LayOut
More informationThe AutoCAD.NET API: The New Frontier
11/30/2005-1:00 pm - 2:30 pm Room:Swan 7/8 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida The AutoCAD.NET API: The New Frontier Bobby Jones - Beazer Homes CP33-1 With the greatly improved
More informationPowerPoint 2002 Manual
PowerPoint 2002 Manual Internet and Technology Training Services Miami-Dade County Public Schools Contents How to Design Your Presentation...3 PowerPoint Templates...6 Formatting Your Slide Show...7 Creating
More informationBridging the Gap from AutoCAD Electrical to Autodesk Inventor Professional
11/30/2005-5:00 pm - 6:30 pm Room:Peacock 2 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida Bridging the Gap from AutoCAD Electrical to Autodesk Inventor Professional Nicole Morris -
More informationIndustrial Strength Add-Ins: Creating Commands in Autodesk Inventor
Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor Brian Ekins Autodesk, Inc. DE211-4 This session focuses on techniques that will help you produce an industrial strength add-in application.
More information17. Introduction to Visual Basic Programming
17. Introduction to Visual Basic Programming Visual Basic (VB) is the fastest and easiest way to create applications for MS Windows. Whether you are an experienced professional or brand new to Windows
More informationUnbelievable Visualization Techniques: Letting Your Imagination Soar!
11/29/2005-5:00 pm - 6:30 pm Room:N. Hemispheres (Salon A4) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Unbelievable Visualization Techniques: Letting Your Imagination Soar! Chris
More informationNetworking AutoCAD for Control and Speed
Networking AutoCAD for Control and Speed Robert Green CAD-Manager.com Quick bio Mechanical engineer turned computer geek Private consultant since 1991 Focusing on CAD standardization, customization and
More informationInside Visual C++: With CDROM (Microsoft Programming Series) PDF
Inside Visual C++: With CDROM (Microsoft Programming Series) PDF In addition, INSIDE VISUAL C++, Fifth Edition, delivers authoritative guidance on:-- Fundamentals -- GDI, event handling, dialog boxes,
More informationVisual Basic.NET Programming Introduction to Visual Basic.NET. (Part I of IV)
Visual Basic.NET Programming Introduction to Visual Basic.NET VB.NET Programming Environment (Review) (Part I of IV) (Lecture Notes 1A) Prof. Abel Angel Rodriguez CHAPTER 1 INTRODUCTION TO OBJECT-ORIENTED
More informationRead & Download (PDF Kindle) VBA Developer's Handbook, 2nd Edition
Read & Download (PDF Kindle) VBA Developer's Handbook, 2nd Edition WRITE BULLETPROOF VBA CODE FOR ANY SITUATION This book is the essential resource for developers working with any of the more than 300
More informationExercise 1: Introduction to MapInfo
Geog 578 Exercise 1: Introduction to MapInfo Page: 1/22 Geog 578: GIS Applications Exercise 1: Introduction to MapInfo Assigned on January 25 th, 2006 Due on February 1 st, 2006 Total Points: 10 0. Convention
More informationUI Toolkits. HCID 520 User Interface Software & Technology
UI Toolkits HCID 520 User Interface Software & Technology http://www.cryptonomicon.com/beginning.html Xerox Alto 1973 Evolution of User Interfaces Command Line (UNIX shell, DOS prompt) Interaction driven
More informationCHAPTER 1 COPYRIGHTED MATERIAL. Getting to Know AutoCAD. Opening a new drawing. Getting familiar with the AutoCAD and AutoCAD LT Graphics windows
CHAPTER 1 Getting to Know AutoCAD Opening a new drawing Getting familiar with the AutoCAD and AutoCAD LT Graphics windows Modifying the display Displaying and arranging toolbars COPYRIGHTED MATERIAL 2
More informationRevit 2018 Architecture Certification Exam Study Guide
ELISE MOSS Autodesk Autodesk Certified Instructor Revit 2018 Architecture Certification Exam Study Guide Certified User and Certified Professional SDC P U B L I C AT I O N S Better Textbooks. Lower Prices.
More information