Run a macro before checking in the file

Hello everyone
I am looking for a function that should be performed automatically before checking in each part. Not once, but always.
The process should look something like this.

  1. Is it a part? (yes/no)
  2. Is the value A, B or C entered in field X in the data card of this part? (Done by the designer)
    3a. If not, don't do anything.
    3b. If so, is there a bounding box in the feature tree?
    4a. If so, don't do anything
    4b. If not, create one.
  3. Check-in part

Can this be done with « Tasks » in the PDM admin tool?
Is there a macro somewhere where a similar function is implemented, so that I, as a non-macro experiencer, can be « inspired » with this macro!?

Hello
To be tested with dispatch scripts.
I do it on a Word file, if it doesn't correspond to the expected I close the file, tell the user what is not compliant and reopen the initial file.
Not tested on SW but the behavior should be the same.

1 Like