SolidWorks Macro to Execute a Job in a PDM Transition

Hello!

I would like to know if it is possible to run a macro in Solidworks as a result of a transition in PDM.
To be clearer, I now have a macro that I run in Soliworks to create a revision table in my plan (I want to specify that I didn't develop this macro because I unfortunately don't know anything about it...)   So I would like my macro to run at the time of the transition, through a task, so that my array comes to fit into my plan. That way, when I make a transition with revise, my table is created, and when I make a transition without revising, my plan remains blank.

 I'm attaching my current macro,

Thanks in advance,


revision.swp

Hello

You will have to create your own add-in in a custom task, see http://help.solidworks.com/2017/french/EnterprisePDM/Admin/c_Print_Plot_Convert.htm so if you don't know anything about macro, it may be best to get in touch with your Solidworks / EPDM reseller.

The other solution would be to execute a command instead of a task in the transition action, see http://help.solidworks.com/2017/french/EnterprisePDM/Admin/IDD_TRANS_ACT_PARENT.htm#itd1450377109794__section_B18F0F2D4A5043549FFFA9AADE78B3CA, but suddenly it's a program to control Solidworks that you have to launch so the problem remains the same if you don't have any programming knowledge.

Or by going through the Dispatch module, see http://help.solidworks.com/2017/french/EnterprisePDM/Admin/c_dispatch_overview.htm?id=78cb0e1d434c48cc842c407e37f1cd67#Pg0&ProductType=&ProductName=, There is a simlar question that has remained unvalidated for a while but maybe this person has finally found the solution, see http://www.lynkoa.com/forum/3d/epdm-et-macro-sw.

Kind regards

1 Like

The creation of an EPDM "spot" seems to be adapted to the problem.

The language of the EPDM task appears to be the same as that of macros.

Following its configuration, the task can be launched manually (via a right click) or automatically in the workflow.

We manage our pdf printouts via a task when approving plans (creation of a pdf in the EDPM vault and another accessible to the whole company on a network path).

Other tasks are used to do stp, igs.... on demand (the interest is to be able to select several files and that everything is done automatically in the background on the users' PCs: it's much faster and you don't have any surprises on the names of the generated files since it's an immutable rule that applies (but it is configurable if you want to rename manually))

1 Like