thread560-358816
Hi
the code works great,
another scenario is when there are two fields with the same text, the two are replaced, and in my case I wanted only one to be changed.
is it possible to saddle the text with mause, and only change what is selected? in my case I can blow the block...
hi
ferdo,
look at the code,
Sub CATMain ()
Set partDocument1 = CATIA.ActiveDocument
Set product1 = partDocument1.GetItem ("")
Set oCATIAFileSys = CATIA.FileSystem
Set oFile = oCATIAFileSys.GetFile (sDocPath & "C: \ Users \ Eddy and Sarah \ Documents \ Projects \ VBScript \ 123.txt")
Set...
hello
Sub CATMain()
Set partDocument1 = CATIA.ActiveDocument
Set product1 = partDocument1.GetItem("")
Set parameters1 = product1.UserRefProperties
Set strParam1 = parameters1.CreateString("teste01", "")
strParam1.ValuateFromString "testando1"
Set product1 = product1.ReferenceProduct
End Sub
I...
Hi,
Ferdo
insert in catpart user custom properties, with a txt file.
exemplo
menu-editar-product-define othrer properties - external properties
load the txt file, myproperties.txt.
This file has properties defined for other catparts
I have a macro to insert the properties,
insert txt file...