Command ID variation




Through an external batching tool i am running an add-in command in Solid Edge. to do that i use the specific command id for that add-in command. 


The strange thing is, that this command id is changing every time i reboot solid edge. is there an alternative way to run this command by using its name or what so ever instead of using spy every time?


Re: Command ID variation

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom


since there can be various Add-Ins installed, unlike the build in commands, the command id's of an Add-In are dynamically assigned when the add is loaded.


Your program could try to lookup the name of the command in the specific environment in the the CommandCategories object and read the ID from the CommandInfo object:



This is an screenshot with the Community AddIn example  using Spy for Solid Edge 


VS2015, SE ST10