Adding a counter to a macro is a easy way to find out how useful
your macro is to others. You can even put in hidden comments like
owing you a coffee after so many uses.
I also like to be able to find out what users use it.
Can you tell me how to get the users id name...
Sorry ferdo I should of pick a better name for it. Thank you for the star.
I made a video on it's uses if anyone would lke to see how it works.
catia v5 catvba to Rename, edit Instance Names and SAVE ALL AS PART NUMBER
Hello
I made a catvba program that has been
very useful for me and I like to share it
with you. It's called File Cleanup.
There is 3 parts to this program.
Rename:
Is a search and replace,add to beginning or Add to End function.
That will go thru your tree and edit
Part Number,Instance...
I'm sorry about that I thought the password was turn off
Here is the Properties editor.catvba
with no passwordhttp://files.engineering.com/getfile.aspx?folder=628a2a63-5d60-4527-b350-12d0acf09591&file=Properties_editor.catvba
I use this type of script to get through a lot of editing
try this
catscript
Public StringToReplace As String
Sub CATmain()
Dim myproduct As Product
Set myproduct = CATIA.ActiveDocument.Product
StringToReplace = "XXX"
'msg to tell what your adding
Msg = "THIS WILL ADD (C (XXXX)_Rev--)...
Public TEA(500) As String
Public TEB(500) As String
Set opart = CATIA.ActiveDocument
Set PartDoc = CATIA.ActiveDocument.GetItem(opart.Name)
Set partnum = PartDoc
PNUM = partnum.PartNumber
descr = partnum.DescriptionRef
On Error Resume Next
Dim XTemp As Long
Dim TE As String
XTemp = 1
A1 =...
Hi I was playing with vba and created a catvba to put properties and added properties on a catpart or product
It will also
-allows you to select from screen or tree
-change all instance names inside a product at the same time
-allows you to take added properties from selecting another...
I just got involed with a project using stl part files and what is needed is to cut a solid with this data so far i found a software on www.downloads.com called ctrlveiw 3.1 that will convert a stl to iges a nice software but the translate iges data will take to long for the projects goal
so now...