4 Replies Latest reply on Jul 15, 2014 6:46 AM by Deepak Gupta

    Need a little help with EventListeners

    Sanya Shmidt

      Hi Guys!


      I`ve been looking at the EventListener option for almost 4 hours already :-) I guess not enough, reading different posts @ SW portal.


      Here is what I want to do:

      - I`d like to embedd a macro (attached) in to the part template (Design Binder)

      - I`d like that macro to auto start listening events when user open the template. (How I do this? Through variables ("Var1"= 1::swApp.RunAttachedMacro "nMain.swp", "mMain", "main"????)

      - This macro will copy Material name from material library and it will assign it to the custom property Material, so its shows correctly on the drawing.


      Can someone help me please?