AnsweredAssumed Answered

Baffled c# noob:  Cant assign to array from AddCommandItem2 Method

Question asked by Rob Edwards on Nov 5, 2019
Latest reply on Nov 5, 2019 by Frederick Law

So I've took the plunge and moved up from VBA to C#.

Yesterday I managed to get my AddIn registered and connected to Solidworks and today I've been looking at the Command Manager.

 

I got a menu working easy enough but then when I started trying to add buttons it just stopped working.

It took me a while to figure out what stopped it from working.

 

What is really perplexing is why does this work

but this doesn't

 

Build succeeds but when starting Solidworks nothing happens.. It's all silent.  

Apologies...  I've only read the first 3 chapters of my c# book.

Outcomes