ObjectARX

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

Active command communicating with the Ribbon

130 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

 

Mike Caruso
Autodesk Certified Instructor
Softdesk/Autodesk Product Support/QA 9 yrs
Carlson Software Engineer 2 yrs
www.civil3d.guru
-------------------------------------------
Rockin' Civil 3D 2015 on a 13-inch MacBook Air | Intel i5 | 4GB RAM | 128GB SSD | Intel HD5000 | Slammed on Chrome 20's
Distinguished Mentor
owenwengerd
Posts: 645
Registered: ‎08-06-2002
Message 2 of 2 (105 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.