492 questions
1
vote
1
answer
107
views
Creating a clone product under selected root assy
This code was supposed to create a cloned product under the selected root assembly with the exact same structure. Instead, it is creating only a component assembly, as shown in the image. I need it to ...
0
votes
1
answer
141
views
Catia copy selected bodies from part to part in product level
I'm trying to copy bodies from selected parts to a target part, but there is a unique problem when copying and pasting bodies at product level. I also managed constraints with multiple axes, but ...
2
votes
1
answer
271
views
How to get all the text having position link each other in catia v5 Drawing views using vba?
I written below code to get the text from each view but the problem I am facing here text are extracting which are having position link each other. Someone please help me to get the same.
EX: items--&...
-4
votes
1
answer
177
views
How can transfer Debug print data to TEXT file using excel vba?
I want to transfer debug print value to TXT file and save in the defined path with proper name.
below is the code which is present with debig print should be written in text file but i am not getting ...
1
vote
1
answer
240
views
How to activate the specific part in CATIA assembly using VBA
This is something I am trying for very long, but not able to do.
There is assembly (product) is CATIA sessions
|-Main Product
|-SubProduct1 (level1)
|- Part 1
|-SubProduct2 (level1)
|-SubProduct3 (...
0
votes
1
answer
99
views
How to know which CATIA PART is in the current edit mode
I am working in CATIA Product / assembly. Following is structure-
Component Structure
When current active part (not instance). Like one I have shown in red block in above image.
I found similar ...
1
vote
1
answer
197
views
Is there any possibility to get the ZONE's from CATDrawing for each Balloon using VBA?
Is there any possibility to get the ZONE's from CATDrawing for each Balloon?
A 1 2 3 4 5 6 7 8 9 A
B BallonNumber B
C C
D D
E 1 2 3 4 5 6 7 8 9 E
Need to get &...
0
votes
0
answers
101
views
Trying to get .stp exports for CATIA with in VBA code but it gives me "Compile error: user-defined type not defined" error
Sub CATMain()
'Error handling in case of empty CATIA window, no open objects.
On Error Resume Next
Set currDocument = CATIA.ActiveDocument
If Err.Number <> 0 Then
...
0
votes
0
answers
111
views
VBA Error: 'Function Marked as Restricted' When Calling SetComponents in CATIA
I have the following VBA code that I use in CATIA:
Sub Positionieren(productToMove As Product, XCoord() As Double, YCoord() As Double, ZCoord() As Double, Position() As Variant)
Dim move1 As Move
Dim ...
0
votes
2
answers
138
views
Rotate a positioned part in Product context
I'm trying to rotate a part that is already positioned within a product structure, but I would like the rotation to occur around the part’s own local axis system, not the global axis.
The issue is ...
2
votes
1
answer
262
views
How to know which CATIA component is in the current edit mode
I want to know programmatically which component of a Product in CATIA v5 is in editing mode now.
Example:
Here I want to take that "Pruebaocultar2" is the active component (not the selected)...
0
votes
2
answers
226
views
Get the data from Geometrical set in CATIA V5 using VBA
I need to extract the data from the Geometrical Set.
Like product structure will have many Geometrical Sets. I want to extract the values from each Geometrical Set.
Structure is like below.
oSel.Item(...
1
vote
1
answer
196
views
How to get the properties of Bundle Segment in CATIA V5 Electrical workbench using VBA?
How to get the properties from the Bundle Segment.
Below points are there in property window.
Type: Bundle Segment.
Reference designator: BNS0001.
Diameter: 6.2mm.
Bend Radius: 37.2mm.
Length: 238....
0
votes
1
answer
104
views
Link Length of Points with parameter
I have a macro that creates four points.
The Length of each point is linked to a parameter already set but just to create the point for first time.
I would like a full link, as example if the ...
1
vote
1
answer
169
views
How to get the type of layer for the annotation in CATIA V5 using VBA
I need to get the type of layer for the hidden FTA annotations.
I am able to set the Layer type but unbale to get the layer type which is already defined.
My question is when the layer type is "...
0
votes
1
answer
152
views
Project Body Faces Into Sketch
I have started to develop a VBA code, that should:
ask user to select a face from any bodies in the current CATPART.
once done VBA should extract that surface in a geometrical set and create 3 points ...
0
votes
1
answer
144
views
CATIA - MACRO Thickness Operation
I have developed a macro that can create thickness operation on a pasted solid from another Catpart .it's working , but the problem that I am facing is the faces ID's that I have in this code ...
1
vote
1
answer
156
views
CATIA-MACRO EdgeFillet
is there any possibility that a macro can generate Edge fillet after remove operation ( only for holes removed ) .
I tried a lot using AI coding , but I didn't get any solution .
the only thing that I ...
0
votes
1
answer
136
views
Loop through open CATDrawing files using VBA
Is there any possibility to loop through open CATDrawing files using VBA?
I found below code but it is counting sheets inside the same CATDrawing file.
Dim drawingDocument1 As Document
Set ...
1
vote
1
answer
129
views
CATIA V5 & pycatia - "Add" Operation does not allow to retrieve operated on shapes
I'm using pycatia to extract CATIA operations from a provided active document in the form of a CATPart file.
For some reason the CATIA V5 Automation API seems kind of incomplete - some operations like ...
0
votes
1
answer
119
views
Instanciate a compartment from the catalog into the current Product in CATIA VBA
I am trying to instantiate component form the catalog
Dim catia As Object
Set catia = GetObject(, "CATIA.Application")
' Open the main document containing the product
...
0
votes
0
answers
52
views
CATIA V5 CAA : how to set a connector of a CATIEhiBranchable?
I'm trying to add by code connectors and a path to a branchable. If the extremities are points, with or without tangents, there is no problem by going through the GSM spline, but if I want to add a ...
1
vote
0
answers
198
views
CATIA V5R20: How to Quickly Change CATPart Reference Link
I am trying to design a new CATProduct based on a copy of the old one. However, my new product cannot be loaded properly in other computers (all CATParts are missing).
I found there is something ...
1
vote
2
answers
326
views
Parameters in CATIA Script Export
I want to export parameters from Par to text file.
See the Tree here.
I wrote a script that should export all the values.
Sub CATMain()
' Declare variables
Dim CATIA
Dim partDocument
...
0
votes
0
answers
149
views
Add point to curve by referring another product in catia vba
I am working in product, trying to create a hybridshapespline (in product 1) using another product (product 4).but i am facing issue ,the curve is connecting to it won axis system instead of ...
0
votes
1
answer
246
views
Catia Macro " Collapse all geometrical sets "
I would like to know if there is any macro that can collapse all geometrical sets.
I have a macro that can create multiple geometrical sets, but unfortunately in expanded way . that means every time ...
0
votes
2
answers
373
views
Is there a way to create formula in Catia via Macro to link parameters?
The main goal is to link between two parameters via formula in Catia using macro. I've tried to record the process manually but the code didn't give the complete code:
Sub CATMain()
Dim partDocument1 ...
0
votes
1
answer
281
views
How to Open and Export the Latest Drawing Version of a Part in CATIA with SmarTeam API
I’m working with CATIA and SmarTeam and need help with a macro to open and export a part's latest drawing document as a PDF. Here is what I’m trying to accomplish:
Goal: I have a specific part, and I ...
0
votes
1
answer
223
views
CATIA VBA Macro Error - Invalid Procedure Call or Argument
I am writing a macro in CATIA that prompts the user to select a cylindrical face. The purpose of this macro is to create an axis line from the selected face. However, I am encountering the following ...
0
votes
1
answer
149
views
how to get the supporting points of flexible curve in catia vba
I am trying to create macro that can pull the information of supporting points list of flexible curve.
and I have no idea how to proceed with.
Dim oDoc As Document
Set oDoc = CATIA.ActiveDocument
Dim ...
0
votes
0
answers
316
views
Catia nesting application
in CATIA V5 there is no nesting function so I wanted to make a nesting application from c#.
Firstly, I start with opening a product file with a part which is have a limit of my material. I gave it x ...
0
votes
0
answers
198
views
CATIA V5 - Automating the exporting of mesh data from an Analysis file using VBA
I am developing a process in CATIA v5 where I would like to automate the meshing of a part and then - and this is the part I'm stuck on - I would like to automatically export the data to a txt file. I ...
0
votes
1
answer
774
views
How to copy elements from a different part to other part in product with VBA?
I am testing a macro that will take an edge on a solid, an old condition solid and a new condition solid. The file generally is a CATProduct with two or more parts in them. The Idea of the macro is to ...
0
votes
1
answer
438
views
Finding geometric sets in tree using CATIA VBA
I have a macro to join curves.
If I set the In-work object to different geometric sets, the macro will find some of the sets, but not all of them.
The macro is supposed to paste the results into the ...
1
vote
1
answer
245
views
How to implement joining muiltiple curves is Catia VBA?
I am trying to write a macro in CATIA VBA that takes multiple curves as input, joins them and then gives me a single curve. The input curves will be non connex. There will be at leas two curves. The ...
-2
votes
1
answer
154
views
How to get Reference plane from Sketch [closed]
I have a random sketch, and I want to know on which plane is the sketch supported through code.
I have gone through the documentation and also looked through the internet and wasn't able to find ...
0
votes
1
answer
173
views
CATIA V5 Automation - How can I filter UserParameters
In the CATIA users can filter their parameters like UserParameters, Renamed Parameters, Visible Parameters and etc.
Like in the photo.
enter image description here
Here my code :
Products ...
0
votes
1
answer
65
views
how to activate the main body in Late Biding
activating the Main Body in early binding works.
Dim partDocument1 As PartDocument
partDocument1 = CATIA.ActiveDocument
Dim part1 As Part
part1 = partDocument1.Part
Dim bodies1 As Bodies = ...
1
vote
0
answers
491
views
CATIA V5 - Automated Detailed View Generation - VBA
I am working on a project at work aimed at automating the CAD process for shaft design. We have already seen significant success with the 3D design aspect. However, we are encountering some challenges ...
0
votes
0
answers
161
views
How can I reach or read to holes thread description in Catia?
I'm trying to add annotations for every hole about thread description. I achieved adding names or dimensions to all of holes in part. But I wanted to add thread description like m16 etc...
I tried ...
-1
votes
1
answer
249
views
CATIA VBA Splits
The script:
Sub CATMain()
Dim partDocument1 As Document
Set partDocument1 = CATIA.ActiveDocument
Dim part1 As Part
Set part1 = partDocument1.Part
Dim shapeFactory1 As ...
0
votes
1
answer
481
views
Obtain point coordinates using PyCatia
Trying to get the coordinates of a specific point inside Geometry of the Sketch1 of a PartBody in Catia V5 Part.
import win32com.client
from pycatia import catia
# Open the CATIA document
caa = catia()...
0
votes
0
answers
103
views
HybridBodies name is read only
I'm facing a problem while developping a vba macro for CATIA V5.
I want to create, rename and fill few geometrical sets in a CATPart file.
I'm able to create a new set, but when I try to change its ...
0
votes
0
answers
178
views
Why can't I read other attributes from a CATIA Macro?
We encountered an issue during our CATIA macro development.
We get an error when we try to read the value of an attribute on VPMReference (attribute name: PLMReference.V_hasConfigContext) in the macro....
0
votes
1
answer
402
views
Run VB.Script from CATVBA
i want to run the existing VB.Script(in Desktop foloder) from CATVBA. I tried with some code, but i couldn't not able to execute it.
Sub Atuoamtion6()
Dim CATIA As Object
Set CATIA = ...
0
votes
0
answers
291
views
How to get the correct process with GetObject?
My workplace has both CATIA v5 and CATIA 3DExperience installed on the remote servers so I cannot directly add the COM reference and I have to use GetOject(,"CATIA.Application") to develop ...
0
votes
0
answers
106
views
CAA VS2008 don't have the "New CAA V5 Workspace"option in file
[enter image description here](https://i.sstatic.net/JfjMUGa2.png)
enter image description here
I had tried to install the VS2008 with SP1 and caa,catia again and again, but I didn't see any change of ...
1
vote
2
answers
598
views
Export CATIA V5 intersection points' coordinates in Excel with VBA
I am trying to export points coordinates in Excel with code I found online.
It works until it gets to points in the shape of intersection in my Catia file.
These intersection points are well selected ...
0
votes
1
answer
258
views
Check Selection for Part or empty Product in Assembly
I want to know if I have selected a CATPart or a CATProduct in an assembly.
I couldn't find a suitable check to differentiate between an empty product like "Product4__" and "Part1_ASD2_&...
0
votes
1
answer
413
views
In CATIA V5 how can I open or call my catscripts, catvba and vbas from winform?
I developing a Catia time save toolbar for my needs in C#. But I new in C# and I didn't figure it out how to call my catscripts or etc.
I tried something like this but I failed. What should I do? ...