dimanche 24 novembre 2013

Part Design

Well, now you can create sketches, let use them in Part Design workbench. 1) Basic features -Creating a pad Let's tell that your part is opened. Your sketch is called My_Sketch and you want a pad of 20mm height. The code is the following : 'Get the part Dim My_Part as Part Set My_Part = CATIA.AcctiveDocument.Part 'Get the part body in the part, assuming your main body is called PartBody Dim My_Body As Body Set My_Body = My_Part.Bodies.Item ( "PartBody" ) 'Create the pad Dim My_Pad As Pad Set My_Pad = My_Part.ShapeFactory.AddNewPad...

dimanche 9 juin 2013

3D Printer : Electronical part

Finally we have printed our printed circuit card ! It's a Gen7 (link here) and we are now trying to weld the composants. In the same time, we will install the first firmwares. The programming language used is called Arduino and the primal firmware is Teac...

mercredi 29 mai 2013

3D Printer Project

I belong to the robotic club of my engineering school and we have a new project. It is divided in two part : first build a 3D Printer, then print chess pieces that we have modelised with CATIA V5. The 3D Printer name is Prusa Mendel from this website http://reprap.org/wiki/. A Prusa Mendel For the moment we haven't done the electronic part, only the mechanical. But we will print our printed circuit soon. As regards the modelisation part,...

lundi 6 mai 2013

Quick overview of VBA

This article recap the basics things you can do with VBA. The code is read from top to bottom, with loops or not You have to totally build the user interface through a userform (insert/userform) and add buttons, labels... VBA could be considered as an oriented object programming language as well and you have methods, properties, functions, sub... 1) Userform Tip : F5 to see how your userform looks like To...

dimanche 5 mai 2013

Modifiying a sketch : Examples and exercices

I told you how to add a sketch and only a sketch. Now I present you some examples and exercices to modify sketches. WARNING : If you want to use the macro recorder, don't forget to leave the sketch mode by the exit workbench button, or nothing will be recorded. First, here you have the basic lines, which are needed every time, with the two alternatives : With the sketch directly in the main body sub your_sub() Dim CATIA As Object On Error Resume Next Set CATIA = GetObject("CATIA.Application") If Err.Number <> 0 Then  Set...

jeudi 2 mai 2013

CATIA Structure

What is the CATIA structure ? The CATIA structure is quite complex and for this tutorial, you need to open V5Automation.chm. On the first page you see this :  As the color tells it, there are three types of objects in CATIA : A collection : it's basically a liste of objects An abstract object : you can't concretely create one but you need to define them An object : an entity you can create it and work with it As VBA is called...

Introduction to CATIA V5 Automation

CATIA V5 is a powerful tool in the CAO field. With some work you could be able to design almost everything. But how many time will you need, for example, to create ALL screws in your assembly ? With each type ? Each diameter ? Hopefully a tool named VBA exist to get rid of this waste of time.  I will present  you the very basics applications of using VBA macros with CATIA V5. First of all CATIA V5 can be piloted with mainly three...