ILGEGIO
Guest
Good morning to all
I would like to create a macro catia (using catiascript) able to automatically rename all parameters, with the same name, contained in a product.
for now I have written this but it stops at the first part. .
I hope you can help me. Thank you.
sub catmain()
sfiltervalue = "xxxx" 'default value
sfiltervalue = inputbox(" insert new code", "filtering value", sfiltervalue)
if (sfiltervalue < ) then)
dfiltervalue = cdbl(sfiltervalue)
end if
for each doc in catia.documents
set productdocument = catia. active document
set product = productdocument.product
set parameters = product.parameters
set strparam = parameters.item("code")
strparam.value = sfiltervalue
next
end
I would like to create a macro catia (using catiascript) able to automatically rename all parameters, with the same name, contained in a product.
for now I have written this but it stops at the first part. .
I hope you can help me. Thank you.
sub catmain()
sfiltervalue = "xxxx" 'default value
sfiltervalue = inputbox(" insert new code", "filtering value", sfiltervalue)
if (sfiltervalue < ) then)
dfiltervalue = cdbl(sfiltervalue)
end if
for each doc in catia.documents
set productdocument = catia. active document
set product = productdocument.product
set parameters = product.parameters
set strparam = parameters.item("code")
strparam.value = sfiltervalue
next
end