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

CATIA macro , 3d point coordinates in 2d coordinates (from space to drawing view)

I have some points in 3d and want to add for each of them a drawing text with leader pointing at the right point in the 2d drawing view. Problems: can't find the right 2d coordinates to point correctly at the projected points in the view because the…
CozminC
  • 23
  • 6
1
vote
1 answer

Extract specific substring which not preceding with specified substring

I have a question that is relatively simple but brought me to the wall. I want to have a regex do following task in VBA (VBScript_RegExp_5.5). Given a string like this: "PrivateFactoryAsclsFactoryPrivateFactoryAsclsFactory" I want to remove only…
tsolina
  • 141
  • 15
1
vote
1 answer

How to translate a part using CATscript in CATIA?

I working with CATscript in CATIA to create Macros. I am trying to create a CATscript to translate a feature in CATIA. When I run the CATscript I Should select the feature that should be translated and and the feature will be translated. But I am…
user3714887
  • 77
  • 3
  • 16
1
vote
3 answers

extracting measurements from .catpart in CATIA V5

I have .CATPART and I have manually done measurements. I want to create macro using CAT VBA and extract measurements from .CATPART and export it to excel.
sarkar.shukla
  • 77
  • 4
  • 8
1
vote
3 answers

Launching Catia from a web page and displaying who has a license

Just wondering is it possible to launch Catia from a web page. I also wanted the web page to be able to display a list of people who currently have a license. This web page will eventually be deployed on the company intranet. We currently have 19…
David Egan
  • 424
  • 2
  • 8
  • 23
1
vote
2 answers

How do I measure a non-updated point in CATIA VBA?

I'm trying to make a point measuring tool, but whenever my loop stumbles upon a non-updated point, it crashes my Measurable. How can I measure it?
Nicholas Pisca
  • 150
  • 1
  • 10
1
vote
2 answers

How to update CATIA part in vba?

I am trying to edit the part dimension in CATIA by changing the dimension values in the design table in the excel file. Everytime when i change the values i should manually update the part model. I want to update it automatically through VBA code…
user3714887
  • 77
  • 3
  • 16
1
vote
1 answer

How to use identifier of view as parameter

My question is : how to use the view identifier as parameter? Code example: Dim DrwDocument As DrawingDocument Set DrwDocument = CATIA.ActiveDocument Dim iParameter As Parameter Set iParameter =…
user3503343
  • 25
  • 1
  • 4
1
vote
3 answers

Change cut view text in CATIA

I'm currently working with CATIA V5, and I want to use Macros (VBA), but I have some problems! My question is: how to change the text of a cut view? (see the picture) I tried to use : myView.Texts.item(1) to access to this "text" but I think that…
user3503343
  • 25
  • 1
  • 4
1
vote
2 answers

vba/catvba class instantiation

i want to declare class globaly here is my example: i want to use class clsIEError that looks exactly like this: Option Explicit Public Sub m(msg As String, Optional title As String = "Title:") 'Attribute Value.VB_UserMemId = 0 'this…
tsolina
  • 141
  • 15
1
vote
2 answers

How can I export point coordinates from a CATIA product to excel

What I'm looking for is a VB script written in either excel or CATIA that can export the coordinates of points in a CATProduct to an excel spreadsheet. The process needs to be as automated as possible due to the large number of points that I am…
JHall
  • 73
  • 1
  • 1
  • 7
1
vote
0 answers

CAA - How to read CATIA PartBody Feature Color?

How to read the Colour and Visiblity Details for features inside a CATPart. In Which Container these details will be saved? What function we have to use ?
maha
  • 53
  • 10
0
votes
0 answers

Does there have any catia settings or VBScript to refuse catia to open files from a particular drive?

Catia must open/load all files from one drive only, if it is from another drive Catia must refuse to open or pop up some error. Does there have any catia settings or VBScript to refuse catia to open files from a particular drive? I don't have any…
Harish
  • 1
0
votes
0 answers

VB.NET GetObject NET 6.0 COM Issue while there is no issue with Framework 4.8

I have a very simple code below to get CATIA object. When I create a project with NET Framework 4.8, there is no issue, I can get the CATIA application and start working with it. However, when I use NET 6.0 project, I get “Object reference not set…
N.TW12
  • 241
  • 2
  • 11
0
votes
0 answers

Isolating Features using CATScript

I'm fairly new to Macros in CATIA v5. I'm having trouble Isolating a sketch in CATIA using Macros. Similarly with changing the sketch support. Is there a quick way that I can do both of them? Thanks This is my code Sub CATMain() Dim partDocument1…