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

Access to VPMReference parameters in CATIA V6

I'm trying to create a macro in CATIA V6 that reads and updates some user parameters. Those parameters are under a Knowledge Engineering Specification under the main assembly. I have seen that in V5, it was as easy as defining the product and then…
0
votes
1 answer

Selecting faces from PartBody by color with a VBA macro

Is it possible to select the faces of a solid in a PartBody by filtering them by colour using a VBA macro or any other programaticaly way? Do you have any tips on how to do this? Thank you very much!
drypatrick
  • 437
  • 1
  • 4
  • 17
0
votes
0 answers

Opening Catia from Microsoft Access VBA results in ENOIEF3DExpServices.dll not found

One of the features of a MS Access DB I created is to open each of our Catia versions (R27, R28, R30) directly, using VBA (by default we have 3 versions of Catia on our desktop all with the same icons and similar titles). They all open just fine and…
Jacob
  • 1
  • 2
0
votes
1 answer

Dimension values are not getting updated when updating Catia constraints

Please check the below code, when I update the product at last, the dimension values are not reflected in fix constraint. Any idea why is it happening so? but when done manually it is working properly Sub CATMain() Dim productDocument1 As…
tls
  • 11
  • 2
0
votes
1 answer

How to exact contents from a drawing in Catia VBA?

The company I work for has its own drawing style and settings. I am trying to get some information from it like its BOM table dor example. The issue I face is that even through I can see the BOM table on the screen when I loop through the whole…
N.TW12
  • 241
  • 2
  • 11
0
votes
1 answer

How to the Part Number from Selection CATIA VBA? Error: Catastrophic failure

I would like to get the Part Number from Selection. I guess because I get the info from Enovia5 so I encounter an issue: some I can get the Part Number and some return Catastrophic failure. I ensure the selection always has 1 item only. …
N.TW12
  • 241
  • 2
  • 11
0
votes
0 answers

How to filter the Selection with LineWidth Catia VBA?

Is it possible to get all Polyline or Curve2D in drawing with LineWidth = something? It is possible with the color but when I tried Selection.Search(".Curve.Thickness = 1") or Width or VisibleWidth or LineWidth, none returns an error but results in…
N.TW12
  • 241
  • 2
  • 11
0
votes
0 answers

How to open product from Enovia5 using CATIA VBA in context mode?

I tried to open a part or a product from ENOVIA5. The issue: I have to open a large number of products using context product mode and there are times CATIA just crashes, and there are times I need to reopen the same products again. This takes a lot…
N.TW12
  • 241
  • 2
  • 11
0
votes
0 answers

Check a CATIA checkbox using macros

In CATIA FTA Workbench, I need to create construction geometry for a particular feature. In the snapshot below, you can see four circles. I need to create "Circle Center Points" for these circles using the "Construction Geometry Creation"…
0
votes
0 answers

Is it possible to set geometric object color and linetype without using Selection?

I would like to set all the Curve2D objects in a drawing file color and linetype. I could loop through all of the sheets, get the views, then get the objects. However, the issue is that I cannot use the VisProperties or find something similar to…
N.TW12
  • 241
  • 2
  • 11
0
votes
0 answers

CATIA v5 part attribute (using pycatia)

I'm trying to write a code that extracts features from a catia part, I'm using pycatia library and win32com package. But no matter what code I try or what catia part I always get the same error which is '
Yassine
  • 13
  • 3
0
votes
1 answer

Cameo Report Wizard Custom Tool

When attempting the tutorial tool install the tool loads into the system and does not import into the vtl template. Does anyone know if there are any steps missing from the…
0
votes
0 answers

Error in deletion of publication in catia

I have a issue in deletion of publication in catia. below is the code which i use. Sub removepub(remove_p) Dim PubName As String For i = 1 To remove_p.Product.Publications.Count PubName = remove_p.Product.Publications.Item(i).Name …
tls
  • 11
  • 2
0
votes
0 answers

Constraint in Catia VBA

I have a issue regarding the constraints in Catia VBA, please look at the below code. Sub catmain() Dim CAT_documents As Documents Set CAT_documents = CATIA.Documents Dim prod_doc As ProductDocument Set prod_doc = CATIA.ActiveDocument Dim prod As…
tls
  • 11
  • 2
0
votes
0 answers

Catia setting XML file generation but not getting the configuration button option in XML

writing a macro which can change the setting in catia: Tools>option>general>compatibility>Graphics format The below image shows the settings that generates the XML in catia but i couldnt get the Advanced configuration button in the XML file. enter…
tls
  • 11
  • 2