Dispatch Delete

Discuss SolidWorks PDM
Sylvain
Posts: 7
Joined: Fri May 28, 2021 6:37 am
Answers: 0
x 4

Dispatch Delete

Unread post by Sylvain »

Hello, I have a problem to delete a file in a folder :
Image
In this image I want to delete red file , In my my workflow I will click on the blue file and activate my disptach to delete the red file but nothing happen when I acitvate the dispatch to delete the red file. So I show you how I set my dispatch , If some one have an idea :)
User avatar
AlexB
Posts: 501
Joined: Thu Mar 18, 2021 1:38 pm
Answers: 28
x 269
x 445

Re: Dispatch Delete

Unread post by AlexB »

How are your variables set up? Whenever I want to make sure I have everything working with Dispatch, I output my final filepath and/or variables to an "OK MessageBox" to verify they're correct. Eventually, I'll end up deleting the message box since it's only helpful during setup.
image.png
Sylvain
Posts: 7
Joined: Fri May 28, 2021 6:37 am
Answers: 0
x 4

Re: Dispatch Delete

Unread post by Sylvain »

Hello , Thanks for you answer , with the message box I have seen than my variables are empty, I chosed on the variable, the value of variable of data card of the select file but the system no takes this data.
Someone knows how recover the data of data card ?
Sylvain
Posts: 7
Joined: Fri May 28, 2021 6:37 am
Answers: 0
x 4

Re: Dispatch Delete

Unread post by Sylvain »

In this picture , is the set up of my message to verify my variable :
Image

In this one, is the message and we can see than the variables are empty :
Image

How I set up my variable :
Image

And the last picture is my data card :
Image

So I don't know why the variables of data card aren't taken , if someone knows it's will be greatful :D

(Sorry my Solidworks is in French )
User avatar
AlexB
Posts: 501
Joined: Thu Mar 18, 2021 1:38 pm
Answers: 28
x 269
x 445

Re: Dispatch Delete

Unread post by AlexB »

For the set-up of the Designation and Revision variables, I believe you have to put something for the configuration. Try placing an "@" in the configuration text box and see if that fixes it.
image.png
Sylvain
Posts: 7
Joined: Fri May 28, 2021 6:37 am
Answers: 0
x 4

Re: Dispatch Delete

Unread post by Sylvain »

Hello, it worked thanks :)
Post Reply