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
1 answer

"Compenent" elements seen as "ProductDocument" in CATIA VBA

I have a problem. I can import feature types in catia vba with the following codes Set document1 = CATIA.Documents.Item("Product1.CATProduct") Set products1 = document1.Product.Products For i = 1 To products1.Count MsgBox…
msu0384
  • 5
  • 3
0
votes
1 answer

Select a range in Excel to paste a picture from CATIA v5 VBA

I would like to add pictures in Excel in specifics cells using a CATIA macro. Unfortunately, I can't achieve this, sometime my code works fine and sometime it crashes at the "select" line. (For information, pictures are saved in a folder then I…
Macronaute
  • 184
  • 3
  • 12
0
votes
2 answers

Insert part to assembly in 3DEXPERIENCE macro

Does anybody some experiences with inserting part to assembly in Catia 3DEXPERIENCE? No matter what language used. I'm just looking for some lead. I have no problem to find or open the part from the database but I'd need to know how to insert this…
JMan
  • 60
  • 7
0
votes
0 answers

hybridshapefill function of CATIA

I am currently working on an CATIA V5 macro, that uses the generative shape design function named "hybridshapefill". Sometimes it says the set of normals is too scattered to construct the hybridshapefill. Does someone know how the hybridshapefill…
0
votes
1 answer

Automation to verify user form is open and if not, close Excel using CATIA VBA

I'm working on a project to detect if a user form is open and if not, close an excel program hidden in the background. The issue I'm having is the if statement in the Function Excel_Form_Close. The if statement works independently and does what it…
aaron
  • 81
  • 1
  • 10
0
votes
2 answers

CATIA VBA - trying to list length of a protection

I want to change an already working macro that lists the part number and name of the protections in a listbox.Now I also try to list length of each protection that I can find in my cable. I looked it up and people told me you cannot access…
Mihai
  • 1
  • 1
0
votes
1 answer

CATIA programming: save as (GUI)

I'm new in CATIA programming and automation. And i'm have a question: how to link app to the catia and then with GUI like in the picture below save part or product with name like in the pic? Then opens filesave dialog and name from all textboxes are…
Mark Kovak
  • 23
  • 6
0
votes
1 answer

Selecting an outer edge of a surface in catia

I am trying to extrapolate a surface which is an assemble of 6 surfaces. To get a referance for extrapolate, i need to get a outer edge. How can i make sure to referance an outer edge of a surface. Is there any example of it. Thank you..
0
votes
0 answers

Change color of created plane

I'm making script that create planes. And I want add custom color for this planes. To achieve this I using Selection.Search method. But I get error: "Cannot use parentheses when calling a Sub". Sub CATMain() Dim Part as PartDocument Set Part =…
0
votes
1 answer

Sublevel part publications in CATIA

I'm working on a project and I've been making headway and have ran into a problem in which I need help. I am attempting to publish user defined properties for parts at various levels. I am able to target the area but every time I attempt to create a…
aaron
  • 81
  • 1
  • 10
0
votes
1 answer

Make Publication of geometrical set, SetDirect error

I'm trying to make a Publication of points, line and planes in a geometrical set of Part using a VBA script. I get an error on of the SetDirect method of publications1, where the error says "The method SetDirect failed". The Publication is added…
0
votes
2 answers

How to simulate a CAD model with real-time data using python or any other scripting language?

I'm trying to apply the concept of a digital twin and would like to update my CAD model in CATIA using real-time data. e.g. a servo motor cad model in CATIA/solidworks would continuously be receiving data such as speed and acceleration and I would…
H22
  • 1
  • 1
0
votes
2 answers

Changing the name of an actively selected item in CATIA

I'm working on a project in CATIA and I'm having trouble renaming the instance name using inputs from a userform. I get one of two errors when I run this code, either the file is read-only or improper use of the property. I'm running into an…
aaron
  • 81
  • 1
  • 10
0
votes
1 answer

Modifying a count code to run independently from a sub in CATIA

I'm working on modifying a lot of existing code and after attempting to go through it, I'm way in over my head from what I know about VBA. My coding experience is primarily in Python and I'm having difficulty wrapping my head around the object…
aaron
  • 81
  • 1
  • 10
0
votes
1 answer

Changing CATIA User Defined Properties based on the instance using selection

I've hit a snag, I've been on this for a week now and continue to get to the same problem. I'm using CATIA V5R26 and I'm attempting to change user defined properties (Define Other Properties) through selecting a product/part in CATIA and running a…
aaron
  • 81
  • 1
  • 10