site hit counter

[IL6]⇒ Read VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross

VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross



Download As PDF : VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross

Download PDF  VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross

Do you want to learn how to write VB script macros? There are many CAD engineers, designers, and technicians who want to write macros but simply don’t have time to sit down and learn everything they need to know. Through a series of example codes and tutorials I'll explain how to use and create CATScript macros for CATIA V5. No programming experience is required! This information is not featured in the user help documentation. The purpose of this text is to show beginners how they can approach different problems and for users to rewrite code shown in the examples to suite their specific needs. I'll cover core items to help teach beginners important concepts needed to create custom VB script macros for CATIA V5.

See what customers are saying by visiting scripting4v5.com, like this

“Within some hours reading your book, I have learned more than searching the web for about a week.”

“I have recently bought your book and it amazingly helped my CATIA understanding. It does not only help you with macro programming but it helps you to understand how the software works which I find a real advantage.”

VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross

I have the kindle version (first edition?) and the paperback, third edition that I won from the author. The third edition far outdoes the kindle first edition with many more examples. The third edition does a very good job of covering many concepts within 160+ pages. In addition to having the book, you can sign up on the author’s website and get monthly emails with more great tips…you can even send him emails and he does his best to help you with your code. Below is my take on some of the chapters in the book. I do not have much experience with the info in the last few chapters (drawings, parameters, relations, etc.), so I cannot comment on those chapters at this time…although the information seems to be very good. In my opinion, I would like to see even more examples.

Chapter 1 has a lot of good information for the beginner; covering terms, definitions, basic differences in scripting languages, steps to start recording a macro, creating an icon on a tool bar that will launch your macros, the importance of syntax, naming variables and formatting your code.

Workshop 1 shows how to create and assign an icon to a macro (in VBScript) which is very helpful in speeding up macro execution.

Workshop 2 uses VBA to create a message box macro but I feel it is very confusing as it is done with user defined classes.

Chapter 2, in my opinion, should have occurred before writing any code. It has good information about object oriented programming, message boxes and input boxes.

Workshop 3 does a nice job of writing a simple code from scratch, but it uses arrays and for loops that are not described in the previous text, so this may leave new programmers with questions.

Chapter 3 gives an overview of documents, windows, subroutines, objects, collections, and loops.
Workshop 4 explores object properties and methods. It shows how to write a code to count the number of parts in an assembly and display the name of the first part in a message box. Then it shows how to modify the code to loop through all the parts in the assembly and display all the parts names in a message box. This may seem useless but this is a very powerful code that can be used in many other situations and it is important that it is understood. This is a great example because, typically you write a small bit of code to achieve the main task of the macro, but you have to go back and add several lines to enhance the macro.

Chapter 4 does a good job of explaining a few error handling scenarios. Personally, error handling functionality was unclear to me until I read this chapter.

Workshop 5 uses error handling to check if a part is open (important), shows different types of for loops and connects the code to the V5automation.chm file to show how you can navigate to find different object types. This is good because there are not many resources for writing CATIA V5 macros, so understanding how to navigate the .chm file is important.

Chapter 5 gives an overview of creating geometry via a simple sketch, solid, and adding constraints in a sketch. It also shows how to define in work object.

Workshop 6 shows how to record a portion of the macro and modify the recorded output to make the code easier to follow and eliminate redundancies.

The end of Chapter 5 discusses adding objects to the active selection and Chapter 6 does a great job of showing usage of SelectElement2 and SelectElement3 for user selections while the macro is running. In order to setup selection filters, look on page 145 for a handy code to find the “type” of any selected object.

Some issues I have with the book:

The content of the book is a little scattered, but so is coding so this is understandable.

The book uses several different methods for declaring variables (i.e. throughout the book part is dimmed as myPart, oPart, part1, objPart, oPrt, etc.) this is very confusing to new programmers. It is good to show the different ways to declare variables, but do it on one page then be consistent through the rest of the book to eliminate confusion. Also, if a new user wants to piece together several examples in the book and none of the variables are the same in the examples, they are going to get very frustrated if they do not understand that they need to find-and-replace mismatched variable names with one common name.

It seems that several images are cut off at the bottom of the page and some info may be missing at the end of the scripts shown in these images.

Other than that, the book has a lot of helpful information.

Product details

  • File Size 4174 KB
  • Print Length 172 pages
  • Page Numbers Source ISBN 1506169511
  • Simultaneous Device Usage Unlimited
  • Publication Date September 30, 2012
  • Sold by  Digital Services LLC
  • Language English
  • ASIN B0070CON7C

Read  VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross

Tags : Amazon.com: VB Scripting for CATIA V5: How to program CATIA macros eBook: Emmett Ross: Kindle Store,ebook,Emmett Ross,VB Scripting for CATIA V5: How to program CATIA macros,COMPUTERS Computer Engineering,COMPUTERS Programming Languages VBScript
People also read other books :

VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross Reviews


If you ever created one single V5 macro (tools > macro > start recording) and edited it in VBA you already know the content of that book!.
This book is very good but it would be wonderful if more real world problems are added. There should be description of user form also in this book.
Good content for beginners of CATIA VBA scripters. Saves a lot of time from searching tutorials. Thank you Emmett Ross.
Exactly what I needed. Got me started with the basics. Good resource materials for further studies.
I have the kindle version (first edition?) and the paperback, third edition that I won from the author. The third edition far outdoes the kindle first edition with many more examples. The third edition does a very good job of covering many concepts within 160+ pages. In addition to having the book, you can sign up on the author’s website and get monthly emails with more great tips…you can even send him emails and he does his best to help you with your code. Below is my take on some of the chapters in the book. I do not have much experience with the info in the last few chapters (drawings, parameters, relations, etc.), so I cannot comment on those chapters at this time…although the information seems to be very good. In my opinion, I would like to see even more examples.

Chapter 1 has a lot of good information for the beginner; covering terms, definitions, basic differences in scripting languages, steps to start recording a macro, creating an icon on a tool bar that will launch your macros, the importance of syntax, naming variables and formatting your code.

Workshop 1 shows how to create and assign an icon to a macro (in VBScript) which is very helpful in speeding up macro execution.

Workshop 2 uses VBA to create a message box macro but I feel it is very confusing as it is done with user defined classes.

Chapter 2, in my opinion, should have occurred before writing any code. It has good information about object oriented programming, message boxes and input boxes.

Workshop 3 does a nice job of writing a simple code from scratch, but it uses arrays and for loops that are not described in the previous text, so this may leave new programmers with questions.

Chapter 3 gives an overview of documents, windows, subroutines, objects, collections, and loops.
Workshop 4 explores object properties and methods. It shows how to write a code to count the number of parts in an assembly and display the name of the first part in a message box. Then it shows how to modify the code to loop through all the parts in the assembly and display all the parts names in a message box. This may seem useless but this is a very powerful code that can be used in many other situations and it is important that it is understood. This is a great example because, typically you write a small bit of code to achieve the main task of the macro, but you have to go back and add several lines to enhance the macro.

Chapter 4 does a good job of explaining a few error handling scenarios. Personally, error handling functionality was unclear to me until I read this chapter.

Workshop 5 uses error handling to check if a part is open (important), shows different types of for loops and connects the code to the V5automation.chm file to show how you can navigate to find different object types. This is good because there are not many resources for writing CATIA V5 macros, so understanding how to navigate the .chm file is important.

Chapter 5 gives an overview of creating geometry via a simple sketch, solid, and adding constraints in a sketch. It also shows how to define in work object.

Workshop 6 shows how to record a portion of the macro and modify the recorded output to make the code easier to follow and eliminate redundancies.

The end of Chapter 5 discusses adding objects to the active selection and Chapter 6 does a great job of showing usage of SelectElement2 and SelectElement3 for user selections while the macro is running. In order to setup selection filters, look on page 145 for a handy code to find the “type” of any selected object.

Some issues I have with the book

The content of the book is a little scattered, but so is coding so this is understandable.

The book uses several different methods for declaring variables (i.e. throughout the book part is dimmed as myPart, oPart, part1, objPart, oPrt, etc.) this is very confusing to new programmers. It is good to show the different ways to declare variables, but do it on one page then be consistent through the rest of the book to eliminate confusion. Also, if a new user wants to piece together several examples in the book and none of the variables are the same in the examples, they are going to get very frustrated if they do not understand that they need to find-and-replace mismatched variable names with one common name.

It seems that several images are cut off at the bottom of the page and some info may be missing at the end of the scripts shown in these images.

Other than that, the book has a lot of helpful information.
Ebook PDF  VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross

0 Response to "[IL6]⇒ Read VB Scripting for CATIA V5 How to program CATIA macros eBook Emmett Ross"

Post a Comment