Add command like SE Mirror CMD in C++?

 

Dear All, I created a project with AddinWizard. And I want to add a command like se command.

1. When I click the button, there should be a command group in the window,

2. I can select geometry in drawing window, for example select a surface,  and the command move to next step.

3. add a feature on the surface

4. end command by click right mouse button.

Who can give a sample with AddinWizard?

Thanks!

 

Posted by: assassin 007
Post date: 5/7/2009 5:42:58 PM

7 REPLIES

RE: Add command like SE Mirror CMD in C++?

Hi, Jason, Could you help me?

 

Posted by: assassin 007
Post date: 5/10/2009 3:55:32 PM

RE: Add command like SE Mirror CMD in C++?

Hi,Jason, could you give me a sample of ISolidEdgeCommandBar?

Includ two groups.

 

Posted by: assassin 007
Post date: 5/10/2009 4:09:55 PM

RE: Add command like SE Mirror CMD in C++?

I've solved the problem.

long hwnd;

m_pSECommand->QueryInterface(&m_cmdBar);

m_cmdBar->raw_AddCommandBarHeader(VARIANT_TRUE,VARIANT_TRUE,_bstr_t("XXX"),_bstr_t("YYY"));

 

hr=m_cmdBar->raw_AddGroup(103,202,205,_bstr_t("project1.dll"),VARIANT_TRUE,VARIANT_TRUE,VARIANT_TRUE,VARIANT_TRUE,&hwnd);

m_cmdBar->ShowGroups();

But the title is not display correctly.

 

Posted by: assassin 007
Post date: 5/11/2009 12:21:34 AM

RE: Add command like SE Mirror CMD in C++?

Nest Question:

How to use the buttons of "Options" and "doit"?

 

 

 

Posted by: assassin 007
Post date: 5/11/2009 12:25:46 AM

RE: Add command like SE Mirror CMD in C++?

 

The group title is not display correctly, who can help me? The title shouble be display in Chinese.

 

Posted by: assassin 007
Post date: 5/11/2009 12:27:35 AM

RE: Add command like SE Mirror CMD in C++?

The title can display correctly now, I modified the string table's property -- language, from english to chinese.

 

Posted by: assassin 007
Post date: 5/11/2009 1:00:07 AM

RE: Add command like SE Mirror CMD in C++?

The latest question, how to use the button "DoIt" and "Option"?

 

Posted by: assassin 007
Post date: 5/11/2009 1:05:55 AM