Reply

Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Hello,

 

have somebody allready try to a new menu Item in SE.

I would be nice when somebody have a pice of Code in VB.NET for me.

I want to Implement it in the SEAddin (vb.net)

 

Greetings

 

 

Posted by: Joachim Schuhböck
Post date: 1/25/2006 12:47:44 AM

9 REPLIES

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Joachim,

 

I can work up an example for you over the weekend. I'll reply back when I have something.

 

Posted by: Jason Newell
Post date: 1/27/2006 5:20:53 AM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Hello Jason,

 

you find allready something about my problem ??

 

 

Greetings Joachim

 

Posted by: Joachim Schuhböck
Post date: 1/30/2006 1:13:53 AM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Joachim,

 

I used my VS.NET templates that you can download for free if you have not done so already. I had to add a bit of code for the menus but it should all be there. Let me know if you have any questions.

 

Posted by: Jason Newell
Post date: 1/30/2006 5:33:56 AM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Hello Jason,

 

your work looks fine, a million Thanks for it.

 

 

But me still have a next 2 Questions:

 

1.) Is its possible to add the menu as last item (after Help) or

add it after the File menu ?

 

2.) When i run this command

 

Dim objCommand As SolidEdgeFramework.Command

objCommand = application.CreateCommand(1)

objCommand.Start()

objCommand = Nothing

 

i get a runtime error when SE started but no document load and when i load a document

and let run the command it work fine. How this can be ?

 

 

Greetings Joachim

 

 

 

 

Posted by: Joachim Schuhböck
Post date: 1/31/2006 12:03:57 AM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Hi Jason,

 

a next question is how can i add a MenuSeperator?

 

Greeting Joachim

 

Posted by: Joachim Schuhböck
Post date: 2/1/2006 11:28:30 PM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Joachim,

 

I do not know of a way to specify your custom menu's index.

 

You should also take a look at this file:

"C:\Program Files\Solid Edge VXX\SDK\Samples\Addins\Doc\addin.doc"

It has most of the answers that you've been looking for.

 

There is a way to add a separator and I have done it before but the example is at my home computer so I'll have to upload the example tonight

 

Posted by: Jason Newell
Post date: 2/2/2006 12:05:24 AM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Hello Jason,

 

you find already the Example to add a seperator to a menu ??

 

 

Greeting Joachim

 

Posted by: Joachim Schuhböck
Post date: 2/6/2006 5:58:10 PM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

.

 

Posted by: Joachim Schuhböck
Post date: 2/6/2006 8:54:24 PM

RE: Add Tab to EdgeBar and add new Menu in the menubar

[ Edited ]

Joachim,

 

Read page 188 of the addin.doc. Specifically, read the comments on the CommandNames parameter of SetAddinInfo. My implementation was in C# which is a little different in VB.

 

Quoting the documentation "If the first character of any substring (including the first) is itself a backslash, Solid Edge will add a separator preceding the menu entry."

 

Hope this helps

 

Posted by: Jason Newell
Post date: 2/7/2006 1:50:15 AM