Pros and Cons of CATIA automation methods and languages.
AutoCAD API Developer/ API Trainer/ Consultant Training and Consultancy
CAD Customization & Development Training
CatScript
Pros:
Can be used to create “smart” CAT parts with the knowledge ware advisor to embed code into the model to control various part parameters.
Can be used with the macro recorder to create quick macros
Users don’t need to use code to create some macros
Users can add the macro to a button
Macro recorder has limited use in the drafting workbench
Because the code isn’t compiled advanced users can understand errors and help catch bugs or logic errors
Cons:
Documentation is not as easily available or wide spread as other languages
The knowledgware advisor may be an expensive add on to CATIA
Many users don't like to figure out CATIA relations, rules, and parameters
VBScript
Pros:
Can be used with the macro recorder to create quick macros
Can be used as the basis for a VBA program
Users don’t need to use code to create some macros
Users can add the macro to a button
Because the code isn’t compiled advanced users can understand errors and help catch bugs or logic errors
Cons:
Graphic user interface limited if solely used as a script
Can’t be used in Knowledgeware rules
Macro recorder has limited use in the drafting workbench
领英推荐
Full Fledged VBA Program
Pros:
Huge amounts of example code online
GUI Can be developed using VBA forms
Macro recorder VBA Script can still be used to help generate sample code for projects
Cons:
Difficult for some users to figure out how to embed VBA into their CATIA library and system
GUI is limited and unattractive
VBA IDE is outdated and old
VBA error handling is poor
.NET program using CATIA DLLs
Pros:
Better GUI functionality
Can be compiled into executables for easy installation
.NET code can be faster than VBA in situations
Modern IDE so users can collaborate on projects and test more easily
Better error handling
Access to newer code libraries to use for advanced programs
Cons:
Less examples of code online
More difficult to start coding because CATIA DLLs must be linked, and more understanding of CATIA objects is required at first
Users can’t see code to make comments or corrections on their own