Questions tagged [catia]

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.

422 questions
0
votes
0 answers

CATIA VBA: Extract name of generated point in CATDrawing

I'm tearing my hair out trying to work with generatedpoints in draft view. I have a 3D model with points that are named in a particular way, per the picture below: point names Then on the CATDrawing, I have generated views that show those points. if…
cheeseman30
  • 3
  • 1
  • 3
0
votes
1 answer

How to implement `Wait` or `Event handler` function into CATVBA?

I have into a UserForm some Label. This Label after an event Click() runs a function that should wait for Selection event but I have no idea how to realize it with CATVBA. Private Sub lblSomeLabel_Click() Dim oSelection As Selection Set…
Radogost
  • 143
  • 5
  • 16
0
votes
2 answers

Catia VBA, How to get "Bill of material" to an array

I want to get 2 parameters in "bill of material". first "Length" in structure workbench, second is "quantity". I try to find these 2 parameters in CATIA.Documents.Item(Document).Product.ReferenceProduct But can't. I have an idea. I try find a way…
Yume
  • 11
  • 4
0
votes
1 answer

Catia VBA, How to set table autoFit in drawing

I want to set a table autofit in Catia drawing. But I can't find any command. I'm looking forward to getting some guidance. Thanks [] There is my simple code. Dim oDoc As Document Dim oView As DrawingView Dim oTable As DrawingTables …
Yume
  • 11
  • 4
0
votes
0 answers

Skipping an iteration in a for loop in CATScript

I'm making a macro in CATIA using catscript. After a pad is made the user select a face and then the programs runs an operation in each face of the pad except if it is the one the user selected. I'm using a for loop, but when I try to use the…
0
votes
1 answer

How to know which Catia Body is publication if names of all the bodies are same

I have been looking for an answer to this question for 5 days now, The question is: If I have many bodies with the same name and one of them is released as a publication. Now, how can I know which body is released as a publication. Is there a way to…
0
votes
1 answer

Catia Visual Basic Macro - change external reference link

I'm wondering if there is any solution for my problem: In CatiaV5, is it possible to change the external reference link using an Visual Basic (catvba or catscript) macro? For every CatPart or CatProduct we have an external link to reference like in…
0
votes
1 answer

Saving the product tree of a CATpart into a txt file

I need to extract the product tree of the CATpart from CATIA. I want to do this using macro's and I have code that works for CATproducts: Sub CATMain() Dim productDocument1 Set productDocument1 = CATIA.ActiveDocument 'Input box to select txt or…
0
votes
0 answers

Catia VBA-How to subtract selected item

I wan to write a code to select parent item in catia. I select a object then run this code. Set Sel = CATIA.ActiveDocument.Selection Sel.Add Sel.Item(1).LeafProduct.Parent.Parent then 2 item selected: item(1),item(2). How to subtract item(1)?…
Yume
  • 11
  • 4
0
votes
0 answers

Python and Catia V5 Defining axis for volumic operations

I am trying to do Catia V5 automation using python. I managed to create my baseline sketch without any problem however, I am unable to set axis for volumic operations. Here is a simple example that (should) create a round ball by revolving around…
Charles
  • 25
  • 4
0
votes
1 answer

CATIA VBA - Get scale ratio of front view in drawing

could anyone help me with the problem - I am creating a program to automatically fill in the title block in drawing. Unable to get the decimal value of the Scale of front view, I also can't get the used material of the given part + weight. I still…
Matis_RnK
  • 15
  • 5
0
votes
1 answer

Subscribe to the CATIA specification tree changing event

Is there a way to subscribe to the changes in the CATIA specification tree and save that changes to some log file? As far as I understand, I probably need to use CATIModelEvents or CATEventSubscriber but how can I reach the tree itself? P.S>…
user15611331
0
votes
1 answer

Catiascript or VBA macro to save body in different format

I am new at using macros. I tried making a simple code where a macro would save my part in different formats. stp, igs and 3dxml. Sub CatMain() pathInputBox = InputBox("Enter path") Set objFSO = CreateObject("Scripting.FileSystemObject") Set…
0
votes
1 answer

Storing 001 instead of 1 in variables in VBA

So this is the problem. I have a number 000.045678 I have split it using split method and stored it in 2 variables A and B. Now the value of A is 0 and B is 45678 But the need is A = 000 and B = 045678 How can this be done? Thankyou for the help in…
0
votes
1 answer

Finding Documentation for Catia Libraries

I'm fixing some issues at work with some macros that were created for CATIA a few years ago using C#, and I'm trying to find some more documentation on some of the libraries that are used to create them. Seems like libraries such as MECMOD, INFIFT,…
harrisonlund
  • 11
  • 1
  • 2