Solidedge ST9 - Ribbon in vb.net

Creator
Creator

Hi everyone,

 

hope someone can help me on this one. I developed a Solidedge Addin which has different buttons inside the ribbon.

 

This is working just fine in Solidegde ST6, but it doesn't work in ST9 for some reason.

 

What I'm doing to load my custom ribbon is:

Inside the Event "SolidEdgeFramework.ISolidEdgeAddIn.OnConnectToEnvironment"

 

  • pAddinEx.SetAddInInfo

 

pAddinEx.SetAddInInfo(ResHandle, EnvCatID, CategoryName,
                                    CmdImageMediumColor, CmdImageLargeColor,
                                    CmdImageMediumBlackAndWhite,
                                    CmdImageLargeBlackAndWhite, commandsCount,
                                    commandNames, commandIDs)

 

  • I'm adding my commands in a loop using: AddCommandBarButton

 

 Dim oCmdButton As CommandBarButton =
                    pAddinEx.AddCommandBarButton(EnvCatID,
                                                 sGroupName,
                                                 iID)
oCmdButton.Enabled = True
oCmdButton.Style = oRibbonButton.Style

 

Now I have the following issues with that code in ST9:

  1. My ribbon does not have its own name within the ribbons tab, as all my commands are within the "Add-Ins" tab
  2. All commands are greyed out (disabled)

 

Unfortunately the exact same code is working with ST6, so I'm kind of stuck on that one.

 

Now, what I came across is the "Solid Edge Community Template" by Jason Newell, which is great and it works just fine as it adds the ribbon buttons. But I don't want to use right now, because I would need to rewrite all the code, but this is way toooo much. Or do I have to use it, because the "old api" doesn't work anylonger?

 

Any help would be greatly appreciated.

 

Regards,

AP

2 REPLIES

Betreff: Solidedge ST9 - Ribbon in vb.net

Honored Contributor
Honored Contributor

Hi @AP

 

 

maybe this question is better located at the developers forum rather than here in the common SE forum

 



regards
Wolfgang

Betreff: Solidedge ST9 - Ribbon in vb.net

Creator
Creator
Hi Wolfgang,
yes, you're right.
Regards,
AP