CATIA (Computer Aided Three-dimensional Interactive Application) is a CAD/CAM/CAE software developed by the French company Dassault Systèmes. It is widely used in automobile and aeroplane construction. Plugins for CATIA can be developed with the commercial API called CAA from the same company. CATIA has also a reduced, but free API called Automation Interface that can be used via COM.
Questions tagged [catia]
422 questions
0
votes
0 answers
Translating VB script NoShowAttr to VBA
I am working with Catia V5 at the moment, and need to translate a code snippet written in what I believe is VB Script to VBA.
Specifically, I have the following snippet which I am stuck on at the…

najusten
- 59
- 6
0
votes
1 answer
How do I deactivate and reactivate several geometrical sets and objects automatically?
I wrote a macro that hides everything in several geometrical sets and the objects and geometrical sets in these first sets except one specific branch. I use this for saving a defined object of a huge and complicated specification tree as a STP file.…

Christina
- 13
- 4
0
votes
1 answer
How do I select a geometrical set in CATIA V5 R26 using VBA?
so my problem is that I want to write a macro that can select specific geometrical sets and analysis, hide those, take a picture, exporte this pic to ppt, go back to CATIA hide the mentioned geoset and show anotherone.
Another point is that it might…

Ramadorrn
- 21
- 1
- 4
0
votes
1 answer
Finding if a Hybrishape pasted with link's source is present or not
I have few shapes in a geometrical set which are pasted with link. I want to find out if the source of these shapes are still present or not. I could not find any function for hybridshape to do this.
In this image the first shape's source is present…

Prajwal Shettigar
- 11
- 1
0
votes
0 answers
.item method does't work on all parts in CATIA v5
Hello i need to add my sweep inside grometrical set as a reference. I am working on a part document. I got 2 different parts to try my macro. Macro works one of them.
Set hybridShapeSweepExplicit1 = hybridShapes1.Item(kalansweep)
MsgBox…

Serhat Yıldız
- 3
- 3
0
votes
1 answer
Program closes before if statement (CATIA VBA)
I am trying to implement a minimum boundary box subroutine inside my macro. Subroutine ends before going into if statement. Can you help me find the solution?
Option Explicit
Sub bounding()
Dim partDocument1 As PartDocument
Set partDocument1 =…

Serhat Yıldız
- 3
- 3
0
votes
0 answers
How to get Excel-Userform to Foreground above CATIA
I`m currently working on a small CATScript, that is launching an Excel VBA Userform. Everything works flawless, apart from the fact, that the launched Uesrform is stuck to the background with CATIA blocking the Excel Userform.
What can I do to get…

Florian
- 59
- 8
0
votes
1 answer
CATIA VBA - Get Plane Equation
I am writing CATIA VBA code to manipulate and swap planes in an assembly. I'm having trouble finding the correct CATIA API to read a specific plane's Ax+By+Cz=D equation. I am aware of CATIA's HybridShapePlaneEquation and HybridShapeAxistoAxis…

Isaac_123124
- 3
- 2
0
votes
1 answer
How to get "Instance name" of the selected parts in tree
I'm writing macro that will make BOM list from the selected parts in assembly.
I can get a "Part Number" of the part in assembly, I can't get a "Instance name" of the selected parts.
Here code that call Selection tab and then try to get a names.
Set…

Nikita Pelevin
- 47
- 1
- 8
0
votes
0 answers
How to propagate the script to be applied to all the Opened CATIA Drawings
I currently have a set of VB CATIA Macro codes that, when a user runs the code, it opens up a form that prompts the user to input the text that he/she wants to change.(See image for the form that will pop up) The code will then run through the whole…

CATIA
- 9
- 1
- 3
0
votes
2 answers
How to program a CATIA macro which searches a set of text through the drawing sheet and replace them
I'm currently trying to program a CATIA macro to search through a specific text:"DD/MM/YYY" on a 2D CATIA drawing sheet and replace that same text with a user inputted text. (Basically to update the text box)
I'm currently new to VBA scripting…

CATIA
- 9
- 1
- 3
0
votes
1 answer
How to change render style in CATIA V5 through Excel VBA?
I wrote a macro that saves an image from CATIA, using the CaptureToFile method in the Viewer object. The macro works great, but only when the Render Style is "Parallel". Some of the designers in my company do not have the Render Style to "Parallel",…

Koce
- 3
- 2
0
votes
2 answers
VBA - Create a menu list when you right click a listbox
I would like to have a menu with two options when user right clicks listbox.
With that menu user would do some actions on selected data, e.g. add new line, change some columns data or delete row. I think I can manage that code but I can not grasp…

Tomislav Horvat
- 163
- 1
- 8
0
votes
2 answers
Catia enumeration values when using Python (Original title:accessing CATIA object in python)
I'm trying to do some design automation in CATIA. I'm using python, I then record macros in CATIA and translates the code there to python code. Now I have stumbled upon a problem.
Below is the Macro from CATIA that i want to translate into pyhton…

Mange_Man
- 41
- 1
- 6
0
votes
1 answer
How to loop through a catpart in Catia
I'm new to programming with the Catia APIs. I would like to know if, given a catpart, is there a way in .NET to extract the following information from it:
body
faces
loops
edge

Gennaro Amato
- 1
- 1