Tools for the VBA User
|
|
- Byron Park
- 5 years ago
- Views:
Transcription
1 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 (Assistant) CP34-1L This class is about enhancing our knowledge of basic VB tools, such as file management and input/output, Windows APIs, such as registry settings and INI files, to secure information. We will also look at connecting to other applications and get to know the object model. About the Speaker: Robert is the network administrator for MW Consulting Engineers, a consulting firm in Spokane, Washington, where he is responsible for the network and all AutoCAD customization. Robert has been writing AutoLISP code since AutoCAD v2.5, and VBA since it was introduced in Release 14. He has customized applications for the electrical/lighting, plumbing/piping, and HVAC disciplines. Robert has also developed applications for AutoCAD as a consultant. He is on the Board of Directors for AUGI and is active on Autodesk discussion groups. RobertB@MWEngineers.com
2
3 Introduction AutoCAD s object model provides you with the tools you need to work with a drawing itself. However, quite often you need to perform tasks that do not relate directly to a drawing. VBA can access so much more than just AutoCAD. You should use the Microsoft Windows APIs to avoid reinventing the wheel for tasks such as browsing for folders or opening files. APIs can help you store and access data. Transferring data from a drawing into a Microsoft Office Excel spreadsheet can be simple in VBA. The following exercises will introduce these features to you. Working with Files and Folders VBA provides limited support for manipulating files and folders. However, there is an easy way to perform tasks such as copying, moving, deleting, and retrieving both files and folders. Microsoft provides the File System Object that is part of the Scripting type library. The File System Object is made available when you add a reference to Microsoft Scripting Runtime. Please note that if you need high performance for file operations, the scripting run-time is not the best choice. However, for simple, small tasks the scripting run-time makes such operations easy. Load the VBA project C:\datasets\CP34-1L\FSO Sample.dvb Add a reference to Microsoft Scripting Runtime Take a few moments to browse the Scripting library. Note the different methods related to files and folders. The following is supporting code for the lab exercises. Option Explicit Const SampleFName As String = "\FSO Sample.txt" Const CopyFName As String = "\FSO Sample (copy).txt" Enum fsospecialfolders fsowindowsfolder fsosystemfolder fsotemporaryfolder End Enum Private Function GetDriveType(fsoDriveType As Long) As String Select Case fsodrivetype Case 0: GetDriveType = "Unknown" Case 1: GetDriveType = "Removable" Case 2: GetDriveType = "Fixed" Case 3: GetDriveType = "Network" Case 4: GetDriveType = "CD-ROM" Case 5: GetDriveType = "RAM Disk" End Select End Function It is time to add some code to the incomplete procedures in the loaded project. After you add the required code, position your cursor inside the edited procedure and use the F8 key to execute the code line-by-line. 2
4 Exercise 1. Getting an existing folder Function GetTempFolder() As String Dim myfso As FileSystemObject Set myfso = New FileSystemObject Dim mytemp As Folder Set mytemp = myfso.getspecialfolder(fsotemporaryfolder) GetTempFolder = mytemp.path Set myfso = Nothing End Function Exercise 2. Creating a text-based file Sub CreateTextFile() Dim myfso As FileSystemObject Set myfso = New FileSystemObject Dim myfilename As String myfilename = GetTempFolder & SampleFName Creating a New Object The procedure for creating an instance of an object defined by a referenced library is straightforward. You need to declare a variable of the type of object, e.g.: Dim myobject As You then need to create a new instance of the object using the Set statement, e.g.: Set myobject = New Dim myfile As File myfso.createtextfile myfilename, True Set myfile = myfso.getfile(myfilename) MsgBox "Created: " & myfile.datecreated Set myfso = Nothing Exercise 3. Copying a file Sub CopyFile() Dim myfso As FileSystemObject Set myfso = New FileSystemObject Dim myfilename As String myfilename = GetTempFolder & SampleFName Closing Your Objects Objects should be set to Nothing automatically when a procedure is complete. This is called going out of scope. However, you may have fewer issues with your programs when you explicitly set objects created with the New keyword to Nothing at the end of their useful life. Dim copyfilename As String copyfilename = GetTempFolder & CopyFName If myfso.fileexists(myfilename) Then myfso.copyfile myfilename, copyfilename, True Set myfso = Nothing 3
5 Exercise 4. Listing the contents of a folder Sub ListTempFolder() Dim myfso As FileSystemObject Set myfso = New FileSystemObject Dim myfolder As Folder Set myfolder = myfso.getfolder(gettempfolder) Dim afile As File For Each afile In myfolder.files If afile.name Like "*.txt" Then Debug.Print afile.name Next afile Set myfso = Nothing Exercise 5. Deleting a file Sub DeleteFile() Dim myfso As FileSystemObject Set myfso = New FileSystemObject Dim myfilename As String myfilename = GetTempFolder & CopyFName If myfso.fileexists(myfilename) Then myfso.deletefile myfilename ListTempFolder Set myfso = Nothing Exercise 6. Listing available drives Sub ListDrives() Dim myfso As FileSystemObject Set myfso = New FileSystemObject Dim mydrives As Drives Set mydrives = myfso.drives Dim adrive As Drive For Each adrive In mydrives Debug.Print adrive.driveletter & ", type: " & GetDriveType(aDrive.DriveType) Next adrive Set myfso = Nothing 4
6 Selecting a folder Selecting a folder in a dialog box does not need to be complicated. In fact, it is far easier than many people make it. The usual approach is to use the Win32 API. However, instead of adding many lines of code to access the API, simply add a reference to the shell. Load the VBA project C:\datasets\CP34-1L\Select Dialogs Sample.dvb Add a reference to Microsoft Shell Controls And Automation Exercise 7. Get a folder from a browsing dialog Sub GetFolder() Dim myshell As Shell Set myshell = New Shell Dim myfolder As Folder3 Set myfolder = myshell.browseforfolder(0, "Get folder", 0) If Not (myfolder Is Nothing) Then Debug.Print myfolder.self.path Set myshell = Nothing Execute the procedure a few times, observing the results. Also, use the Cancel button during your testing. Selecting files As easy as it is to select an existing folder, it is not as easy to do the same with files. You need to use the Win32 API. For a sample of just some of the code required, use the Win32 API Common Dialog shortcut located in the C:\datasets\CP34-1L folder, which takes you to a Microsoft Knowledge Base article. Happily, many programmers were tired of working with the complex code and decided to encapsulate it into a class module for easy reuse. A search of the Internet will reveal many such class modules. For the purpose of this lab, one such class module will be used. This class module was downloaded from and slightly modified to permit easier code maintenance. Note that the original copyright needs to remain with the class module if you choose to use it for your own projects. Add a reference to C:\datasets\CP34-1L\CommonDialog.dvb Exercise 8. Get files from a browsing dialog Sub GetFile() Dim mydialog As CommonDialogProject.CommonDialog Set mydialog = CommonDialogProject.Init mydialog.filter = "Drawing (*.dwg) *.dwg" mydialog.flags = OFN_ALLOWMULTISELECT + OFN_EXPLORER + OFN_FILEMUSTEXIST + OFN_PATHMUSTEXIST mydialog.maxfilesize = 512 mydialog.initdir = ThisDrawing.GetVariable("DwgPrefix") 5
7 Dim Success As Long Success = mydialog.showopen If Success > 0 Then Dim DwgFiles As Variant DwgFiles = mydialog.parsefilenames Dim i As Long For i = 0 To UBound(DwgFiles) Debug.Print DwgFiles(i) Next i The first two added lines are used to create the object defined by the referenced project s class module. Notice how the project s name must be included when using a referenced VBA project s procedures. The remaining added code affects what is displayed in the dialog and what the user can select. Experiment with changing some of the values of the properties. Reading and writing to.ini files Initialization files (.ini) are what many would consider ancient technology. After all, they were used heavily in Windows 3.0! However, they still have their uses. They are a simple text-based file with simple formatting rules. They are easy-to-use storage mechanisms for program settings and data. Four Win32 API functions give you access to reading and writing both sections and key values. Once again, the complexity of dealing with the API functions and data validation can be concealed behind a class module. The following exercises will use the class module to read and write data. Load the VBA project C:\datasets\CP34-1L\INI Sample.dvb Add a reference to C:\datasets\CP34-1L\INI Handler.dvb Exercise 9. Read a section from an.ini file Sub ReadASection() Dim myini As INIHandlerProject.INIHandler Set myini = INIHandlerProject.Init myini.filename = "C:\datasets\CP34-1L\Sample.ini" myini.section = "Project Info" Dim mysection As Scripting.Dictionary Set mysection = myini.getsection Dim i As Long For i = 0 To mysection.count - 1 Debug.Print mysection.item(i) Next i After you make the additions run the procedure and observe the results in the VBAIDE Immediate window. 6
8 Exercise 10. Read a specific key from an.ini file Sub ReadAKey() Dim myini As INIHandlerProject.INIHandler Set myini = INIHandlerProject.Init myini.filename = "C:\datasets\CP34-1L\Sample.ini" myini.section = "Project Info" myini.key = "JobName" Debug.Print myini.getkeyvalue myini.section = "Layers" myini.key = "Arch" Debug.Print myini.getkeyvalue Observe the results when you run the procedure. Change the key name to another key in the same section. Finally, the following code uses the class module to write some data to an.ini file. Exercise 11. Write data to an.ini file Sub WriteAKey() Dim myini As INIHandlerProject.INIHandler Set myini = INIHandlerProject.Init myini.filename = "C:\datasets\CP34-1L\Sample.ini" If myini.writekeyvalue("test Section", "Test Key", "Test Value") Then Debug.Print "Value was written!" Reading and writing to the registry The registry is the mechanism that most programs use to store configuration data to support the application. As many long-time users are aware, AutoCAD stores much information in the registry. However, there are factors you should consider before using the registry to store data. Microsoft has the following recommendations regarding the registry. Although there are few technical limits to the type and size of data an application can store in the registry, certain practical guidelines exist to promote system efficiency. An application should store configuration and initialization data in the registry, and store other kinds of data elsewhere. Generally, data consisting of more than one or two kilobytes (K) should be stored as a file and referred to by using a key in the registry rather than being stored as a value. Instead of duplicating large pieces of data in the registry, an application should save the data as a file and refer to the file. Executable binary code should never be stored in the registry. A value entry uses much less registry space than a key. To save space, an application should group similar data together as a structure and store the structure as a value rather than storing each of the structure members as a separate key. (Storing the data in binary form allows an application to store data in one value that would otherwise be made up of several incompatible types.) Give careful thought as to whether the registry is the best place to store data for your particular application. For instance, the registry should not be used to store data about specific drawings or projects. You do not want your registry to grow too large. The larger the registry, the more RAM is consumed by the operating system. 7
9 The next series of exercises will write data to the registry and read that data back. Load the VBA project C:\datasets\CP34-1L\Reg Sample.dvb Add a reference to Windows Script Host Object Model Exercise 12. Write data to the registry Sub WriteToReg() Dim mywshshell As WshShell Set mywshshell = New WshShell mywshshell.regwrite "HKCU\Software\Autodesk University\CP34-1L\", _ "", _ "REG_SZ" mywshshell.regwrite "HKCU\Software\Autodesk University\CP34-1L\MyData", _ "Sample", _ "REG_SZ" Set mywshshell = Nothing Sub ReadReg() Dim mywshshell As WshShell Set mywshshell = New WshShell Debug.Print _ mywshshell.regread("hkcu\software\autodesk University\CP34-1L\MyData") Set mywshshell = Nothing The remainder of the course will cover interfacing with Microsoft Office Excel. The remainder of this page is intentionally left blank. 8
10 Interfacing with Microsoft Office Excel It is very common to desire that your data in AutoCAD were also in an external application such as Excel. VBA and ActiveX make it much easier than you may suspect. The key is that you need to know not only the AutoCAD object model, but also the Excel object model. Just as AutoCAD s object model is located in AutoCAD s help files, so too is Excel s object model in Excel s help files. It is important to treat the Excel object model with respect when you interface with it from AutoCAD. You must make sure to close Excel s objects and set them to Nothing when finished with them. You must do this in reverse order of creation, i.e. Last In First Out (LIFO). The exercises in this section will use early binding, that is, a reference will be added to the VBA project to the Excel Object Library. This introduces the advantages of IntelliSense and a performance boost, at the expense of tying the project to a specific version of Excel. The alternative would be to use late binding, where no reference is added to the project and Excel s objects are declared as generic objects. Open the drawing C:\datasets\CP34-1L\Sample.dwg Load the VBA project C:\datasets\CP34-1L\Excel Sample.dvb Add a reference to Microsoft Excel 11.0 Object Library The following code is the front-end into the exercises. The ExportTBlk procedure is your test routine. You will be modifying the support procedures. Option Explicit Option Compare Text Sub ExportTBlk() Dim fqndata As String fqndata = "C:\datasets\CP34-1L\Sample.xls" Dim myexcel As Excel.Application Set myexcel = InitializeExcel Dim mybook As Excel.Workbook Set mybook = GetWorkbook(myExcel, fqndata) WriteTBlkData mybook mybook.close SaveChanges:=True Set mybook = Nothing myexcel.quit Set myexcel = Nothing MsgBox "Titleblock export is complete.", _ vbokonly, "Titleblock Data" 9
11 Exercise 13. Connect to Excel Private Function InitializeExcel() As Excel.Application If IsExcelRunning Then Set InitializeExcel = GetObject(, "Excel.Application") Else Set InitializeExcel = CreateObject("Excel.Application") End Function Private Function IsExcelRunning() As Boolean Dim xlapp As Excel.Application On Error Resume Next Set xlapp = GetObject(, "Excel.Application") IsExcelRunning = (Err.Number = 0) Set xlapp = Nothing Err.Clear End Function Exercise 14. Opening a workbook Private Function GetWorkbook(theApp As Excel.Application, Filename As String) As Workbook Dim myfso As Scripting.FileSystemObject Set myfso = New Scripting.FileSystemObject If myfso.fileexists(filename) Then Set GetWorkbook = theapp.workbooks.open(filename) Else Set GetWorkbook = theapp.workbooks.add WriteHeader GetWorkbook.ActiveSheet GetWorkbook.SaveAs Filename Set myfso = Nothing End Function Exercise 15. Writing data to Excel Private Sub WriteTBlkData(ByRef theworkbook As Workbook) Dim mydata As Collection Set mydata = GetTBLkData("Titleblock") With theworkbook.activesheet Dim myused As Excel.Range Set myused =.UsedRange Dim datarow As Long Dim dwgcell As Excel.Range Set dwgcell = myused.find(thisdrawing.name, LookIn:=xlValues) If dwgcell Is Nothing Then datarow = myused.rows.count + 1 Else datarow = dwgcell.row 10
12 .Cells(dataRow, 1).Value = ThisDrawing.Name.Cells(dataRow, 2).Value = mydata.item("sheetnumber").cells(datarow, 3).Value = GetTitle(myData).Cells(dataRow, 4).Value = mydata.item("drafter").cells(datarow, 5).Value = mydata.item("checker").cells(datarow, 6).Value = mydata.item("date").cells(datarow, 7).Value = mydata.item("revision").columns("a:g").autofit Set myused = Nothing End With The following code supports the prior code and requires no modification. Private Function GetTBLkData(Name As String) As Collection Dim aentity As AcadEntity For Each aentity In ThisDrawing.Layouts.Item("Layout1").Block If TypeOf aentity Is AcadBlockReference Then Dim tblk As AcadBlockReference Set tblk = aentity If tblk.name = Name Then Dim tblkattribs As Variant tblkattribs = tblk.getattributes Dim mytblk As Collection Set mytblk = New Collection Dim aattrib As AcadAttributeReference Dim i As Long For i = 0 To UBound(tBlkAttribs) Set aattrib = tblkattribs(i) mytblk.add aattrib.textstring, aattrib.tagstring Next i Exit For Next aentity Set GetTBLkData = mytblk End Function Private Function GetTitle(myData As Collection) As String Dim mytitle As String mytitle = mydata.item("sheettitle1") If mydata.item("sheettitle2") <> "" Then mytitle = mytitle & " " & mydata.item("sheettitle2") If mydata.item("sheettitle3") <> "" Then mytitle = mytitle & " " & mydata.item("sheettitle3") GetTitle = Replace(myTitle, " ", " ") End Function Private Sub WriteHeader(ByRef mysheet As Worksheet) mysheet.cells(1, 1).Value = "Drawing" mysheet.cells(1, 2).Value = "Sheet #" mysheet.cells(1, 3).Value = "Title" mysheet.cells(1, 4).Value = "Drafter" mysheet.cells(1, 5).Value = "Checker" mysheet.cells(1, 6).Value = "Plot Date" mysheet.cells(1, 7).Value = "Revision" mysheet.usedrange.cells.font.bold = True 11
13 Conclusion This course has demonstrated that there are many tools available to you outside of the AutoCAD object model. Please use the code presented here as a stepping-stone to improving the critical processes in your own firm. 12
14
The ABCs of VBA CP21-2. R. Robert Bell - MW Consulting Engineers
11/29/2005-8:00 am - 11:30 am Room:Swan 7/8 (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida R. Robert Bell - MW Consulting Engineers CP21-2 Do you want to customize AutoCAD using VBA
More informationWhat to Do with the New CUI
11/28/2005-8:00 am - 9:30 am Room:N. Hemispheres (Salon B/C) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida What to Do with the New CUI R. Robert Bell - MW Consulting Engineers CP11-1
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 informationAn Introduction to Rational RequisitePro Extensibility
Copyright Rational Software 2003 http://www.therationaledge.com/content/jun_03/rdn.jsp An Introduction to Rational RequisitePro Extensibility by Mark Goossen Editor's Note: Each month, we will feature
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 informationProgramming with the Peltier Tech Utility
Programming with the Peltier Tech Utility The Peltier Tech Utility was designed so that much of its functionality is available via VBA as well as through the Excel user interface. This document explains
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 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 informationMS Excel VBA Class Goals
MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions
More informationMs Excel Vba Continue Loop Through Range Of
Ms Excel Vba Continue Loop Through Range Of Rows Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft
More informationoutlook-vba #outlookvba
outlook-vba #outlookvba Table of Contents About 1 Chapter 1: Getting started with outlook-vba 2 Remarks 2 Examples 2 Introduction 2 Outlook Visual Basic for Applications 3 Advanced topics 3 Chapter 2:
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 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 informationThe name of this type library is LabelManager2 with the TK Labeling Interface reference.
Page 1 of 10 What is an ActiveX object? ActiveX objects support the COM (Component Object Model) - Microsoft technology. An ActiveX component is an application or library that is able to create one or
More informationdownload instant at
CHAPTER 1 - LAB SESSION INTRODUCTION TO EXCEL INTRODUCTION: This lab session is designed to introduce you to the statistical aspects of Microsoft Excel. During this session you will learn how to enter
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 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 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 informationGetting Along: Coordinating Architectural and Structural Design with Autodesk Revit Structure
11/30/2005-8:00 am - 9:30 am Room:N. Hemispheres (Salon A2) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Getting Along: Coordinating Architectural and Structural Design with Autodesk
More informationDATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan
DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic
More informationThis chapter is intended to take you through the basic steps of using the Visual Basic
CHAPTER 1 The Basics This chapter is intended to take you through the basic steps of using the Visual Basic Editor window and writing a simple piece of VBA code. It will show you how to use the Visual
More informationThe Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development.
Name: Tested Excel Version: Compatible Excel Version: Item_Master_addin.xlam Microsoft Excel 2013, 32bit version Microsoft Excel 2007 and up (32bit and 64 bit versions) Description The Item_Master_addin.xlam
More informationPreview from Notesale.co.uk Page 3 of 43
Drawbacks: 1. Costly tool 2. All the areas can t be automated. Types of Automated Tool: Automated tools can be broadly divided into 3 types: 1. Functional Tools: QTP,Selenium,Win Runner, 2. Management
More informationBASIC MACROINSTRUCTIONS (MACROS)
MS office offers a functionality of building complex actions and quasi-programs by means of a special scripting language called VBA (Visual Basic for Applications). In this lab, you will learn how to use
More informationMicrosoft Excel 2007 Macros and VBA
Microsoft Excel 2007 Macros and VBA With the introduction of Excel 2007 Microsoft made a number of changes to the way macros and VBA are approached. This document outlines these special features of Excel
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 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 informationEssentials of Points and User-Defined Properties in Autodesk Civil 3D
11/28/2005-5:00 pm - 6:30 pm Room:S. Hemispheres (Salon III) (The Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Essentials of Points and User-Defined Properties in Autodesk Civil
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 informationExcel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed
Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed The code that follows has been courtesy of this forum and the extensive help i received from everyone. But after an Runtime Error '1004'
More informationIntroduction to Computer Use II
Winter 2006 (Section M) Topic F: External Files and Databases Using Classes and Objects Friday, March 31 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions
More informationBASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation
BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with
More informationWordman s Production Corner
Wordman s Production Corner By Dick Eassom, AF.APMP Three Excel Tricks...Just for a Change Three Problems One of my colleagues has the good fortune to have to manage marketing mailing lists. Since the
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 informationMicrosoft Excel Level 2
Microsoft Excel Level 2 Table of Contents Chapter 1 Working with Excel Templates... 5 What is a Template?... 5 I. Opening a Template... 5 II. Using a Template... 5 III. Creating a Template... 6 Chapter
More informationExcel VBA Variables, Data Types & Constant
Excel VBA Variables, Data Types & Constant Variables are used in almost all computer program and VBA is no different. It's a good practice to declare a variable at the beginning of the procedure. It is
More informationAutoCAD and VBA Integration with Microsoft Office CP42-1. Presented by Jerry Winters
AutoCAD and VBA Integration with Microsoft Office Presented by Jerry Winters About this Class Classes are taught on AutoCAD / Excel Integration. Classes are taught on AutoCAD / Access Integration. This
More informationSébastien Mathier wwwexcel-pratiquecom/en Variables : Variables make it possible to store all sorts of information Here's the first example : 'Display the value of the variable in a dialog box 'Declaring
More informationTo reduce confusion over the word application, the following table defines the terms used in this technical article.
Page 1 of 12 Office Development (General) Technical xarticles Corporate Developer's Guide to Office 95 API Issues Ken Lassesen Microsoft Developer Network Technology Group April 28, 1995 Abstract This
More informationAchieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA
Achieving Contentment with the AutoCAD Architecture Content Browser Douglas Bowers, AIA AB110-3 If you have created AutoCAD Architecture (formerly ADT) object styles and want to know how to easily share
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 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 informationChapter 1. Block Diagram. Text .. 1
Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce
More informationIntroduction to Autodesk Revit Structure
11/30/2005-5:00 pm - 6:30 pm Room:N. Hemispheres (Salon E2) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Nicolas Mangon - Autodesk SD35-1 This year, Autodesk is introducing the
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 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 informationChapter 14 Sequential Files
CHAPTER 14 SEQUENTIAL FILES 1 Chapter 14 Sequential Files (Main Page) 14.1 DirListBox, FileListBox, and DriveListBox toolbox icons. 14.2 Some DirListBox, FileListBox, and DriveListBox common properties
More informationTech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson
Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson Introduction Among the many new features of PATROL version 3.3, is support for Microsoft s Component Object Model (COM).
More informationVBA Handout. References, tutorials, books. Code basics. Conditional statements. Dim myvar As <Type >
VBA Handout References, tutorials, books Excel and VBA tutorials Excel VBA Made Easy (Book) Excel 2013 Power Programming with VBA (online library reference) VBA for Modelers (Book on Amazon) Code basics
More informationCode analyses you didn't know about
Project Analyzer: Code analyses you didn't know about Copyright 2006, 2010 Aivosto Oy www.aivosto.com This article shows 12 advanced code analyses with Project Analyzer, a professional code analyzer for
More informationMs Excel Vba Continue Loop Through Worksheets By Name
Ms Excel Vba Continue Loop Through Worksheets By Name exceltip.com/files-workbook-and-worksheets-in-vba/determine-if- Checks if the Sheet name is matching the Sheet name passed from the main macro. It
More informationPrincipia Archive Explorer
Principia Archive Explorer Welcome to the Principia Archive Explorer. This tool bundles together all the historical releases you need and makes it easier for you to install, download, and export the data
More information6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:
VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the
More informationVBA Collections A Group of Similar Objects that Share Common Properties, Methods and
VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously
More informationElectronic Owner s Manual User Guide
Electronic Owner s Manual User Guide I. Getting Started.... 1 Logging In.... 2 Additional Information... 2 II. Searching for an Existing EOM Form... 5 III. Creating a New EOM Form.. 5 IV. Modifying an
More informationLab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice
Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information
More informationOPTIS Labs Tutorials 2013
OPTIS Labs Tutorials 2013 Table of Contents Virtual Human Vision Lab... 4 Doing Legibility and Visibility Analysis... 4 Automation... 13 Using Automation... 13 Creation of a VB script... 13 Creation of
More informationScript Host 2.0 Developer's Guide
_ Microsoft icrosoft Script Host 2.0 Developer's Guide Günter Born Introduction xv parti Introduction to the World of Script Programming chapter i Introduction to Windows Script Host 3 WHAT YOU CAN DO
More informationMultiframe. Windows Version 10. Automation Manual
Multiframe Windows Version 10 Automation Manual Formation Design Systems Pty Ltd 1984 2007 License & Copyright Multiframe Program 1985-2007 Formation Design Systems Multiframe is copyrighted and all rights
More informationDATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)
Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA
More informationAutodesk Revit Building and 3ds Max : A One-Two Punch
11/28/2005-8:00 am - 9:30 am Room:N. Hemispheres (Salon A2) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Autodesk Revit Building and 3ds Max : A One-Two Punch Roger Cusson - L'Atelier
More informationLmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions
LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions No. 9, 1st Floor, 8th Main, 9th Cross, SBM Colony, Brindavan Nagar, Mathikere, Bangalore 560 054 Email: itechanalytcisolutions@gmail.com Website: www.itechanalytcisolutions.com
More information4 Working with WSH objects
4 Working with WSH objects In the preceding chapter I have discussed a few basics of script programming. We have also used a few objects, methods and properties. In this chapter I would like to extend
More informationTopic 4D: Import and Export Contacts
Topic 4D: Import and Export Contacts If a corporation merges with another corporation it may become necessary to add the contacts to the new merged companies contact folder. This can be done by Importing
More information2. create the workbook file
2. create the workbook file Excel documents are called workbook files. A workbook can include multiple sheets of information. Excel supports two kinds of sheets for working with data: Worksheets, which
More informationIntegrating AutoCAD Electrical with Autodesk Vault Professional (formerly known as Vault Manufacturing) Randy Brunette Brunette Technologies, LLC
Integrating AutoCAD Electrical with Autodesk Vault Professional (formerly known as Vault Manufacturing) Randy Brunette Brunette Technologies, LLC DM34-1R Are you using AutoCAD Electrical now and thinking
More informationMultidiscipline CAD Usage at an EPC Company Jimmy Bergmark Pharmadule Emtunga AB / JTB World
November 28 December 1, 2005 Orlando, Florida Multidiscipline CAD Usage at an EPC Company Jimmy Bergmark Pharmadule Emtunga AB / JTB World PD12-1 This case study will discuss CAD usage at Pharmadule Emtunga.
More informationManipulator USER S MANUAL. Data Manipulator ActiveX. ActiveX. Data. smar. First in Fieldbus MAY / 06. ActiveX VERSION 8 FOUNDATION
Data Manipulator ActiveX USER S MANUAL Data Manipulator ActiveX smar First in Fieldbus - MAY / 06 Data Manipulator ActiveX VERSION 8 TM FOUNDATION P V I E W D M A M E www.smar.com Specifications and information
More informationContents. Overview...2. License manager Installation...2. Configure License Manager...3. Client Installation...8. FastLook Features...
Contents Overview...2 License manager Installation...2 Configure License Manager...3 Client Installation...8 FastLook Features...10 This guide is intended to help you install the Distributed Network version
More informationAcknowledgments Introduction. Part I: Programming Access Applications 1. Chapter 1: Overview of Programming for Access 3
74029ftoc.qxd:WroxPro 9/27/07 1:40 PM Page xiii Acknowledgments Introduction x xxv Part I: Programming Access Applications 1 Chapter 1: Overview of Programming for Access 3 Writing Code for Access 3 The
More informationAn Overview of VBA in AutoCAD 2006
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
More informationUser Scripting April 14, 2018
April 14, 2018 Copyright 2013, 2018, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and
More informationEXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING
EXCEL WORKSHOP III INTRODUCTION TO MACROS AND VBA PROGRAMMING TABLE OF CONTENTS 1. What is VBA? 2. Safety First! 1. Disabling and Enabling Macros 3. Getting started 1. Enabling the Developer tab 4. Basic
More informationMastering the Visual LISP Integrated Development Environment
Mastering the Visual LISP Integrated Development Environment R. Robert Bell Sparling SD7297 How do you create and edit your AutoLISP programming language software code? Are you using a text editor such
More informationHarePoint Analytics. For SharePoint. User Manual
HarePoint Analytics For SharePoint User Manual HarePoint Analytics for SharePoint 2013 product version: 15.5 HarePoint Analytics for SharePoint 2016 product version: 16.0 04/27/2017 2 Introduction HarePoint.Com
More informationGetting started 7. Writing macros 23
Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20
More informationVBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide
VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing
More informationENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration
ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter
More informationCivil Engineering Computation
Civil Engineering Computation First Steps in VBA Homework Evaluation 2 1 Homework Evaluation 3 Based on this rubric, you may resubmit Homework 1 and Homework 2 (along with today s homework) by next Monday
More informationWork more efficiently by learning how to automate recurring tasks and create user applications
V B A ( M A C R O S ) Work more efficiently by learning how to automate recurring tasks and create user applications Prepared by: XL Your Mind Gneisenaustraße 27 40477, Düsseldorf Germany W H A T T O E
More informationPart I: Programming Access Applications. Chapter 1: Overview of Programming for Access. Chapter 2: Extending Applications Using the Windows API
74029c01.qxd:WroxPro 9/27/07 1:43 PM Page 1 Part I: Programming Access Applications Chapter 1: Overview of Programming for Access Chapter 2: Extending Applications Using the Windows API Chapter 3: Programming
More informationLanguage Fundamentals
Language Fundamentals VBA Concepts Sept. 2013 CEE 3804 Faculty Language Fundamentals 1. Statements 2. Data Types 3. Variables and Constants 4. Functions 5. Subroutines Data Types 1. Numeric Integer Long
More informationAnimation: A Moving Experience
11/30/2005-3:00 pm - 4:30 pm Room:N. Hemispheres (Salon A4) (Dolphin) Walt Disney World Swan and Dolphin Resort Orlando, Florida Animation: A Moving Experience Ted Boardman - tbdesign DV34-1 If you'd like
More informationMigrating from Autodesk Land Desktop to Autodesk Civil 3D CV42-3L
December 2-5, 2003 MGM Grand Hotel Las Vegas Migrating from Autodesk Land Desktop to Autodesk Civil 3D CV42-3L About the Speaker: Pete Kelsey is an Autodesk Authorized Consultant an Autodesk Certified
More informationConfiguration Configuration
Falcon Hotlink Table Of Contents Configuration...1 Configuration...1 ODBC Driver...1 Installation...1 Configuration...2 Data Sources...2 Installation...2 Configuration...4 Hotlink.xls...4 Installation...4
More informationHow to modify convert task to use variable value from source file in output file name
Page 1 of 6 How to modify convert task to use variable value from source file in output file name The default SolidWorks convert task add-in does not have support for extracting variable values from the
More informationUser Guide. Version 2.0. Excel Spreadsheet to AutoCAD drawing Utility. Supports AutoCAD 2000 through Supports Excel 97, 2000, XP, 2003, 2007
User Guide Spread2Cad Pro! Version 2.0 Excel Spreadsheet to AutoCAD drawing Utility Supports AutoCAD 2000 through 2007 Supports Excel 97, 2000, XP, 2003, 2007 Professional tools for productivity! 1 Bryon
More informationUNIT 3 INTRODUCTORY MICROSOFT EXCEL LESSON 6 MAKING THE WORKSHEET USEFUL
UNIT 3 INTRODUCTORY MICROSOFT EXCEL LESSON 6 MAKING THE WORKSHEET USEFUL Objectives Sort data in a worksheet. Use the AutoFilter to extract specified data from the worksheet. Hide worksheet columns or
More informationApplication Description
Application Name: ODOT_SheetManager.mvba Tested MicroStation Version: MicroStation V8i (SELECTseries 3) Tested GEOPAK/OpenRoads Version: Not Applicable Application Description The January 16, 2015 update
More informationComputer Aided Drafting, Design and Manufacturing Volume 24, Number 4, December 2014, Page 64
Computer Aided Drafting, Design and Manufacturing Volume 24, Number 4, December 2014, Page 64 CADDM Three Dimensional Modeling of Shaft with Process Structures on CATIA WAN Sheng-lai, WANG Xiao-yu, JIANG
More informationExcel VBA for Absolute Beginners
Applied Technology Group Sdn Bhd (1012178-W) W-5-3, Subang Square Business Centre, Jalan SS15/4G, 47500 Subang Jaya, Selangor, Malaysia. Tel: (+603) 5634 7905 Fax: (+603) 5637 9945 Email: admin@apptechgroups.net
More informationQuestions? Page 1 of 22
Learn the User Interface... 3 Start BluePrint-PCB... 4 Import CAD Design Data... 4 Create a Panel Drawing... 5 Add a Drill Panel... 5 Selecting Objects... 5 Format the Drill Panel... 5 Setting PCB Image
More informationDOWNLOAD PDF VBA MACRO TO PRINT MULTIPLE EXCEL SHEETS TO ONE
Chapter 1 : Print Multiple Sheets Macro to print multiple sheets I have a spreadsheet set up with multiple worksheets. I have one worksheet (Form tab) created that will pull data from the other sheets
More informationSheets and Revisions A Super Duper Click Saver Production
Sheets and Revisions A Super Duper Click Saver Production Jarod Schultz, Director of Autodesk Services 1 P a g e J a r o d S c h u l t z, i n i t i a l. a e c 2 P a g e J a r o d S c h u l t z, i n i t
More informationCopyright (c) by Matthew S. Harris
Documentation & How-To Didjiman's Forms Instance Manager Class For MS Access 2007 and Higher Version v2017-03-28 Copyright (c) 2014-2017 by Matthew S. Harris Permission is granted to copy, distribute and/or
More informationHow to Create a For Next Loop in Excel VBA!
Often when writing VBA code, one may need to repeat the same action or series of actions more than a couple of times. One could, in this case, write each action over and over in one s code or alternatively
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 informationModule 3 - Applied UDFs - 1
Module 3 - Applied UDFs TOPICS COVERED: This module will continue the discussion of the UDF JOIN covered in the previous video... 1) Testing a Variant for Its Type (0:05) 2) Force the Creation of an Array
More informationLas Vegas, Nevada, December 3 6, Speaker Name: Heidi Hewett. Course ID:
Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Heidi Hewett Course Title: Course ID: GD34-4L Course Outline: During this presentation, you'll learn about all the AutoCAD 2002 extensions, including
More informationModule-1 QTP Fundamentals. Module 2 Basics of QTP. Vasundhara Sector 14-A, Plot No , Near Vaishali Metro Station,Ghaziabad
Module-1 QTP Fundamentals Why QTP? When do we use QTP? Which application will we test? Will be doing live applications testing Downloading and installing trial version Installing addins Installing script
More information