AnsweredAssumed Answered

Need a little help with EventListeners

Question asked by Sanya Shmidt on Jul 12, 2014
Latest reply on Jul 15, 2014 by Deepak Gupta

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?

 

Thanks,

Alex.

Outcomes