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
Sending timeout signal to CATIA macro from Python
I am writing an optimisation algorithm in Python which evaluates its objective function by calling a CATIA macro (given to me) to modify a part and perform a finite element analysis on the structure to determine its maximum deflection under a load,…

guskenny83
- 1,321
- 14
- 27
0
votes
1 answer
How do I add a product to a selected item in CATScript/VBScript?
I have been puzzling with CATscript for CATIA v5 and I am trying to do the following:
Before I would like to run the Macro, I would like to Select a Product out of a tree with 100's of products.
Then run a Macro that does the following, irrelevant…
0
votes
1 answer
How to make copies of a not-saved part in CATIA in assembly evironment by VBA?
I have an CATIA assembly created automatically by VBA Excel. Now I need to add 6 same bolts to that, for example. Theoretically, I can add some pieces of VBA code to create each bolt in that assembly as the separate one, which seems to be so…

Hung Pham Vu
- 39
- 5
0
votes
0 answers
Catia V5 VBA: How to change the plane of a sketch
I cannot seem to relocate a sketch or place a sketch on any plane other than the three origin planes XY, YZ or ZX.
My dreams are haunted by the "Method 'Add' of object 'Sketches' failed" runtime error i cannot overcome.
The basic strategy i am…

qwestnc
- 1
0
votes
0 answers
The application called an interface that was marshalled for a different thread error
I am writing a code to compare two parts in catia. I used win32com.client to read the document. I am also using threading to run the progress bar. for some reason, I am getting below error even though I have defined document_new as…

Ashish
- 99
- 6
0
votes
1 answer
Create Parameter and Relations in CATIA from Excel VBA
I have a piece of VBA code (copied from Emmett Ross' as below). It works well in CATIA VBA, but did not in Excel VBA (to work with CATIA from Excel VBA). The error "Type Mismatch" pointed in the line "Set parameters1 = part1.Parameters". All the…

Hung Pham Vu
- 39
- 5
0
votes
0 answers
Adding reference to a project
I have a problem where I have a macro which was saved without connecting to any references, can I know how to know which object belongs to which reference.
for example:
but when I try to run the code it shows a compile error as "user type not…

tls
- 11
- 2
0
votes
0 answers
using Late Binding and early binding in VBA simultaneously
I have a problem as below.
A program is written using early binding in VBA and it only works with all the references connected.
but there are some systems where the references are not connected and when the program is ran on those systems there is a…

tls
- 11
- 2
0
votes
1 answer
Catia V5 - Visual Basic command line for "External Storage Clean-up" feature of GSA
I was wondering if there is a command line for the GSA "External Storage Clean-up" feature ("Solver Tools" toolbar).
I am looking for a Visual Basic command line compatible with Catia V5.
Thanks
0
votes
3 answers
Multiple API version
I have a visualbasic application that interacts with several versions of software (Catia)
The Visual basic code is common to all versions of Catia software but it only works if the dlls of the correct version are referenced.
Is it possible to…

El doctor Sertato
- 21
- 5
0
votes
0 answers
CATIA VBA InStr function having problems. How to solve it?
Im trying to generate an Excel BOM data base without using CATIA. For this porpouse I did an Excel subroutine that reads a CATPart file as a txt file. This way I can manage to get the parameters inside the CATPart file using a simple InStr…

Seba Sain
- 1
- 3
0
votes
1 answer
Creating new sketch in a planar face
In CATIA, a new sketch can be created on a origin plane (XY, YZ, XZ) or a planar face of a object. I have a pad and want to take its top face as the support plane for the next pocket operation. I've strived to do it by the latter but without success…

Hung Pham Vu
- 39
- 5
0
votes
1 answer
Make a copy of reference
I have an assembly including 2 parts. I want to take a face in first part as an input for designing second one. Interactively in the CATProduct Workbench, I only choose the face I want in the first part, assumming that I am running a Pad command and…

Hung Pham Vu
- 39
- 5
0
votes
1 answer
VBA Programming in CATIA
I have 2 parts in an assembly and I need to subtract one from one. Interactively, I use "Split" command, using the splitting element (a face in the subtracting part). Are there any ways to do it automatically through VBA in CATIA?
I tried using…

Hung Pham Vu
- 39
- 5
0
votes
0 answers
I want to map my organisation drawings template as default catia v5 template
I want to map my organisation drawings templates (standard template) as default catia v5 template.
For example,;;;
File >>new>>drawing>>
One pop up will come to choose drawing template size
A0, A1, A2, A3,A4..
Once we choose any one of them
Then…