Sorry i have forgotten the red line that are importants...
'********************************************************
'By e. perichon , some code borrowed from forums
'********************************************************
Sub CATMain()
GetNextNode CATIA.ActiveDocument.Product
End...
Hello,
Here is an interesting code that give the type of all documents in a tree. You could know if it is a part, a product, or a component. It could be very useful in order to introduce some userrefproperties or other thing in different type of file. Some code are used from other codes find on...
Hello,
thank you for the answer. I have resolve my problem with that code input inside my loop :
While oparameters.Count > 0
oparameters.Remove (1)
Wend
Hello,
I am ok to create userrefproperties, but how could you remove a userrefproperties that is already created in the doc ?? For example, i have a part with a userrefproperties called "TEST" and i want to remove it via a macro (in order to make a recursive loop on all a produxt)
Thank you
Hello,
I have this following code that i try to modify. In fact I want to create a custom property named "AU_COMPO" = 2 in each components of my tree. The code works but the problem is that it adds as new string as the number of component : "AU_COMPO" , "AU_COMPO.1" , "AU_COMPO.2" "AU_COMPO.3"...
Hello Mark,
Thank you for your answer. I have just tried to modify the code, but I have still the same issue. It works on all the products of the tree, but it doesn't work for the parts inside the tree.
'********************************************************
'By MarkAF, some code borrowed...
Hello,
I am new in VBA and try to modify a code that change the instance name, in order that this code also change every catia properties of each parts, products ... in the complete tree. In fact I want that this instance rename code also change component DescriptionRef and Nomenclature with...