ObjectARX

ObjectARX

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

Active command communicating with the Ribbon

132 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 - Civil 3D Autodesk Certified Professional 2014, 2015
www.civil3d.guru - Are you ready to be a Guru?
-------------------------------------------
Rockin' Civil 3D 2015 on a 13-inch MacBook Air | Intel i5 | 4GB RAM | 128GB SSD | Intel HD5000
Distinguished Mentor
owenwengerd
Posts: 692
Registered: ‎08-06-2002
Message 2 of 2 (107 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
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.