ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About MFC Toolbar Support By ObjectARX AddIn.

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
382 Views, 3 Replies

About MFC Toolbar Support By ObjectARX AddIn.

EveryOne, Can you help me?

I'm tring to add MFC Toolbar to MDIFrame of AutoCAD by ObjectARX AddIn.
Now I am able to make my toolbar showable in AutoCAD.
But I don't know that how to execute an command,example "Circle", when some button of the toolbar is clicked.

I have already done it by "AcToolbar::OnButton32777()", but it is nothing.

If you know, can you help me?

Thanks.
Liucr.
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

You have to send a command to the command line from
the button:

 

void MyToolBar::OnMyButton() {

    acDocManager->sendStringToExecute(curDoc(),
"CIRCLE");

}

 

I hope this helps.

size=2>


--

Krishna Kalvai
Developer Consulting Group 
WW Support &
Services, Autodesk
Discussion Q&A:
href="http://www.autodesk.com/discussion">http://www.autodesk.com/discussion



size=2>

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
EveryOne,
Can you help me?

I'm tring to add MFC Toolbar to MDIFrame of AutoCAD by ObjectARX AddIn.

Now I am able to make my toolbar showable in AutoCAD.
But I don't know
that how to execute an command,example "Circle", when some button of the
toolbar is clicked.

I have already done it by "AcToolbar::OnButton32777()", but it is nothing.

If you know, can you help me?

Thanks.
Liucr.

Message 3 of 4
Anonymous
in reply to: Anonymous

Hi,Krishna Kalvai.

Thank you for your help.

It is Probably that I have no an elucidation
white.

If you don't mind, I send my code to
you,Ok?

 

I already sent it to you by Outlook.

I hope you help me again.

 

Regard.

Liucr.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Krishna" <
href="mailto:discussion.support@autodesk.com">discussion.support@autodesk.com
>
写入消息新闻:BC9BBFB814E0D970F63BAAF0C34619E7@in.WebX.maYIadrTaRb...

You have to send a command to the command line
from the button:

 

void MyToolBar::OnMyButton() {

    acDocManager->sendStringToExecute(curDoc(),
"CIRCLE");

}

 

I hope this helps.

size=2>


--

Krishna Kalvai
Developer Consulting Group 
WW Support &
Services, Autodesk
Discussion Q&A:
href="http://www.autodesk.com/discussion">http://www.autodesk.com/discussion



size=2>

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
EveryOne,
Can you help me?

I'm tring to add MFC Toolbar to MDIFrame of AutoCAD by ObjectARX AddIn.

Now I am able to make my toolbar showable in AutoCAD.
But I don't
know that how to execute an command,example "Circle", when some button of
the toolbar is clicked.

I have already done it by "AcToolbar::OnButton32777()", but it is
nothing.

If you know, can you help me?

Thanks.
Liucr.

Message 4 of 4
Anonymous
in reply to: Anonymous


Hi,Krishna Kalvai.

Thank you for your help.

It is Probably that I have no an elucidation
white.

If you don't mind, I send my code to
you,Ok?

 

I already sent it to you by Outlook.

I hope you help me again.

 

Regard.

Liucr.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost