AnsweredAssumed Answered

Macro Feature, Embedded Macro, Event Listener?

Question asked by Ctm Pdm Admin on Jun 16, 2018
Latest reply on Jun 17, 2018 by Deepak Gupta

The Goal: Make sure configuration name matches the file name (instead of "Default") every time user creates a new Part from the template (we are using PDM).

 

Half of the Solution: I have a simple macro that renames the active configuration (short version below). I want this macro to be part of the SLDPRT template and run automatically (because I can't rely on users to press that macro button every time they start a new model).

     If swConfig.Name = "Default" Then

          swConfig.Name = FileName

     End If

 

The Problem: I tried embedded-macro triggered-by-equation method, but it doesn't seem to work in newer versions of SWx.

I have read a little about "Macro Feature" and "Event Listener" and can't figure out how any of them work. Can someone let me know how I can run this simple macro as part of the SW Part template?

 

Any other method to achieve the same goal is also appreciated.

 

Thanks

Outcomes