Command ID variation

Experimenter
Experimenter

Goodmorning,

 

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?

1 REPLY

Re: Command ID variation

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

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:

 CommandIDofAddin.PNG

 

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

regards

JB
VS2015, SE ST10