You just need to remember or write it downį_Body=lectelement2(Filter, " Select Body in which you want to add", False) 'In next line of code is code for single selection, also this code is always the same. 'We want to set filter for that selection so user can only select part, this is very good practice to do I hope these examples help inspire you to take action and continue learning to automate your own processes.'First you need to define document, in this case active document is part. Sometimes it helps to see the big picture and what the end goal is. Helpful for documentation and saves on ink. This is a freeware application written in catvba language that displays all the captures in a part and allows you to quickly navigate through them.Ĭhange the background to white, hide the specification tree, then take a screen capture. This project does the opposite – takes coordinates from an Excel spreadsheet and imports them in a CATPart. Then you can import/export the XML, analyze and apply it to different versions of the product in a scene.Įarlier we had an example of how to export data from CATIA to Excel. This macro export the product’s position and saves it as XML. This macro generates and exports a clash report of a CATProduct assembly to an Excel spreadsheet and lets you quickly know what parts are interfering with each other. Using CATVBA, you can create a user form with a bunch of options, then click Draw and the macro program will model a new gear on-the-fly based on all the options you selected. This Macro can be used to rename any elements in a CATIA Part where the user enters a “Prefix”, “Number” and “Suffix”. It’s also able to project the sketch or develop it on a cylindrical surface. This project is a good example of how to export CATIA data to Excel.Ī utility for creating texts in sketcher. So what can you actually use CATIA macros for? How do they help you shave hours off your work week? I did a quick YouTube search and found the following projects that I think will give you a small idea of the power and variety of automation in CATIA.Īutomatically make a customized table of the location coordinates for every hole in your CATPart. After read through all my blog posts and articles you still may be thinking to yourself “why should I learn macro programming for CATIA?” If you’re brand new to programming it may be difficult to visualize what processes can be automated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |