493 questions
1
vote
1
answer
95
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 ...
2
votes
1
answer
243
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--&...
1
vote
1
answer
189
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 (...
1
vote
1
answer
178
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
104
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 ...
2
votes
1
answer
231
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)...
1
vote
1
answer
189
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....
1
vote
1
answer
150
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
132
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 ...
0
votes
1
answer
129
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 ...
0
votes
1
answer
109
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
...
1
vote
0
answers
179
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 ...
0
votes
0
answers
142
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
232
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
1
answer
266
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
140
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
190
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
414
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 ...
-2
votes
1
answer
150
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
59
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 = ...
0
votes
0
answers
157
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 ...
0
votes
1
answer
464
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
170
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
0
answers
285
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 ...
1
vote
2
answers
576
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 ...