How can i rename all filenames of parts in an assembly with a macro ?
You can use Pack and Go to rename the files depending on what is the current names are.
Deepak Gupta is right use pack and go
This is just tangentially related to your post. It looks like that pack-and-go in your screenshot shows a "93816C-342" assembly inside of another "93816C-342". What's going on there?
No idea on that one - I would assume a SW way of doing things, I usually don't worry how it compiles everything as long as it works in the end...
NO that is correct, he just need to use Flat view
question is: you want to create (copy) an active assembly to a new assembly with parts in it or just want to rename all parts in the active assembly
For the 1st choice: PackNGo will be your best bet
2nd Choice: you want to rename actual parts file names or just names in the assembly but keep parts file name the same?
Just a thought
why you need a macro for this task?
with a macro running, you still need to select a file name and type a new name for each part from a list in macro and update
without a macro, just hit F2 and type a new name and the assembly is updated itself
For bulk operations, this is probably better handled with the Document Manager API, but it can be done in SolidWorks using a VBA macro. See "Rename Component and Update References Example (VBA)".
SolidWorks API Training and Services
Keith Rice Will this rename a assy and all its parts and drafts to a new name and not leave a copy behind??????
This question i ask, because i want put the relaese in the filename. I see there are 2 options. By the documentmanager and by pack and go.
I only need too to change the properties what is not possible in pack&go
Are you saying that you need to copy the assembly with a different file name? Then use Pack & Go
Are you saying you need to change file name and custom properties? Then use Pack & Go and the attached macro
You'll just have to try it out. I don't know why it would leave a copy behind, though.
Retrieving data ...