Update Folder datacards on multiple folders

Discuss SolidWorks PDM
csh
Posts: 9
Joined: Mon Jul 01, 2024 3:38 am
Answers: 0
x 4
x 2

Update Folder datacards on multiple folders

Unread post by csh »

Has anyone fold a was to update variables on a foldercard, on multiple foldes at the same time?

I have some variables which are controlled by the folder datacard. Working perfect on new projects, but I want to update the values on legacy projects.
I have made a dispatch to update the variables I want (Combining 2 variables in a 3rd variable), and this works fine. But only for 1 folder at the time. If I choose multiple folders, I will get the value from the first folder in all folders.

All the tricks I know by now are for handling file variables. But how to handle folders?
by jcapriotti » Tue Dec 03, 2024 12:29 pm
@csh I can't think of a way in the UI or dispatch to do this. If I had to do this in house, we'd write a T-SQL script to modify the folder variable in the "VariableValue" in the DB directly. This table is fairly safe to edit....just back it up first.
Go to full post
User avatar
mp3-250
Posts: 654
Joined: Tue Sep 28, 2021 4:09 am
Answers: 20
Location: Japan
x 735
x 357

Re: Update Folder datacards on multiple folders

Unread post by mp3-250 »

not folder related, but do you have a documents section (iirc) in your dispatch to allow multiple files selection?
all the dispatch statements should be inside that section to be applied to each selection properly.
User avatar
jcapriotti
Posts: 1897
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 32
Location: The south
x 1236
x 2029

Re: Update Folder datacards on multiple folders

Unread post by jcapriotti »

@csh I can't think of a way in the UI or dispatch to do this. If I had to do this in house, we'd write a T-SQL script to modify the folder variable in the "VariableValue" in the DB directly. This table is fairly safe to edit....just back it up first.
Jason
csh
Posts: 9
Joined: Mon Jul 01, 2024 3:38 am
Answers: 0
x 4
x 2

Re: Update Folder datacards on multiple folders

Unread post by csh »

@jcapriotti That could be a way to do it, eventhough i was hoping for something more simple :)
Thanks
Post Reply