Hello drewmumaw and thank you,
O have managed to do it some weeks ago but i forgot to post here,
Here is how i did it if anyone else needs this:
Dim textRange1 As DrawingTextRange
Dim textRange2 As DrawingTextRange
Dim textRange3 As DrawingTextRange
Dim textRange4 As DrawingTextRange
Dim...
I tried but no action recorded during editing or creation of welding symbols. I saw that the macro recorder does not work all the time for all the functionalities....:(
Hello,
In a 2d view I have some weld symbolsn and i need to edit by scripting their textboxes but i can't find in the automation file how to do that.
There are 5 textfields for the weld symbols , 2 up, 2 below and another at the end of the symbol.
Does anyone know how can i acces those...
Thank you both for your answers.
After i read the reply of "itsmyjob" i have searched for recursive script for catia tree structure and i have found some userfull info.
Some info were wrong from the first time : there are product with names starting with : "C","_","M","G" and 12313R (The "R" is...
Hello all,
Here is the situation.
In CATIA i have a CAT.Product that contains other Products(those are containing also other products.)
I need to extract the names of all products wich are starting with "R" lettter from my tree.The problem is that the "R" products can be found at different...
Hy all,
I. WeldingSimbols
Does anyone knows how is the syntax for flipping a WeldSymbol (in Drafting). What about making it stick to a specified element.
I had some drawingTexts and use for them the next syntax : myText.Angle = 90 both work for Texts...
Your code included in a For loop , is doing right what i needed.It's changing those text fields on every CatDrawing that is opened.
Thank you all a lot for your support.
CatScript :
Sub CatMain()
For I = 1 To CATIA.Documents.Count
Here Code posted By Alex or Fernando
Next
End Sub...
I have asked someone at work who has experience in vb for catia and making macros and told me that the table is a 'vigniette' (french term) , or a 'editable detail' and it can be modified by macro (as long as it is possible to edit it manually by double clicking the text fields end edit...
As long as it is possible to edit manually those text fields , i assume that it is possible by coding too.
I have also tried to manually search with Find , those text strings , but they can't be found.
Is there a way to create a macro so i can view the properties of that object ? Maybe if i...
I dont have to create any new sheet.
I must open all CatDrawings in Catia. (Every CatDrawing has a single Sheet.)
And then must update those text fields.
I have tried recordering a macro , but when i select and modify those texts , nothing seems to appear as code.
Also checked V5Automation...
This is how the Title Blocks looks (every CatDrawing the same.)
Now what i have to do is to modify Text1 , Text2 , Text3 ,Text4 and Text 5 on every page. I am new to catia , and VB too. I have tried to create a macro that asks me ..what new text should be and type them in the text boxes but i...