ObjectARX

Reply
Mentor
odoshi
Posts: 178
Registered: ‎06-05-2006
Message 1 of 2 (119 Views)

Active command communicating with the Ribbon

119 Views, 1 Replies
09-12-2012 06:12 PM

Hello,

 

I would like to start a command, let's call it MYSINSERT, that inserts a block. When the command is started, I want to display a ribbon with custom controls for options. -- This part I think I can handle.

 

My question is, how do I make the MYINSERT command listen for option changes made in the ribbon via the custom controls? I think my controls will have to be WPF and I have worked with some .NET samples that communicate that way.

 

For sake of example, let's say I want a SCALE dropdown with 1, 2, 3, 4 listed as options. When the user selects 2 or 3, the block preview following the mouse should scale 2 or 3 times and then the user can click the location.

 

Do ObjectARX commands allow for communication with the Ribbon while mid-command? I'm just looking for an angle of approach or a sample in the ObjectARX kit.

 

Thanks

 

www.civil3d.guru
-------------------------------------------
Rockin' Civil 3D 2015 on a 13-inch MacBook Air | Intel i5 | 4GB RAM | 128GB SSD | Intel HD5000
Distinguished Mentor
owenwengerd
Posts: 604
Registered: ‎08-06-2002
Message 2 of 2 (94 Views)

Re: Active command communicating with the Ribbon

09-13-2012 10:54 AM in reply to: odoshi

The standard way to implement this is by implementing your command so that you can change the parameters by entering keywords at the input prompt(s). Once you have the command working, you can add ribbon or menu controls that send the appropriate keywords to the executing command in the same way that a user would by typing them in.

--
Owen Wengerd
ManuSoft

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community