Thank you for everything, and thank you for the solutions you proposed, but I can't find a solution to my problem
I write this :
Dim myleader1 as object
Set myleader1 = myview.item(1).leaders.count
I made a mistake on that line and i think the methode leaders not support with variable drawingview
Hi,
I am working on a macro that calculates the number of leaders associated with a 2D component in a CATIA drawing. I have created the macro, but I can't count the number of leaders for the 2D component (the component I want to count the leaders for is a Bonding symbol). Here is my macro...
Hello everyone,
I'm working on a project in CATIA V5 where I need to use VBA to retrieve the text value associated with a dimension created using Functional Tolerancing & Annotation (FTA). I've attached a screenshot indicating the specific dimension and the associated text value I want to...
First of all, thank you for responding to my post. My goal is to display the value of "Dimension.10" using Msgbox. To this end, I have created this script:
Sub CATMain()
Dim productDocument1 As ProductDocument
Set productDocument1 = catia.ActiveDocument
Dim selection1 As Selection
Set...
Hi everyone, I've created a small script in VBA for CATIA that selects a dimension in the 3D annotation. I want to display the value of this dimension using MsgBox, but I'm not sure which method to use to retrieve and display the value.
Can anyone help me with this?Thanks in advance!