Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Execute COMSOL Ribbon buttons with VBA

Please login with a confirmed email address before reporting spam

Does anyone know if there is a way to execute COMSOL ribbon buttons (for example, it 'clicks' the mesh button or it clicks plot group and selects the correct plot)? Basically, what I doing is creating VBA macro buttons that when clicked will say, do update all, click compute, and then click on the appropriate plot group. Thereby saving the user (who does not know COMSOL in any capacitance) from dealing with the ribbon.

Judging from VBA code, it should be something along the lines of (I think): ribbon.button_name.execute. Any help is appreciated

1 Reply Last Post 6 déc. 2013, 05:21 UTC−5
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 6 déc. 2013, 05:21 UTC−5

Does anyone know if there is a way to execute COMSOL ribbon buttons (for example, it 'clicks' the mesh button or it clicks plot group and selects the correct plot)? Basically, what I doing is creating VBA macro buttons that when clicked will say, do update all, click compute, and then click on the appropriate plot group. Thereby saving the user (who does not know COMSOL in any capacitance) from dealing with the ribbon.

Judging from VBA code, it should be something along the lines of (I think): ribbon.button_name.execute. Any help is appreciated


This is a very good question.

We are looking into providing such functionality, but it is currently not available. As far as I know there are no workarounds.


--
Lars Gregersen
Comsol Denmark
[QUOTE] Does anyone know if there is a way to execute COMSOL ribbon buttons (for example, it 'clicks' the mesh button or it clicks plot group and selects the correct plot)? Basically, what I doing is creating VBA macro buttons that when clicked will say, do update all, click compute, and then click on the appropriate plot group. Thereby saving the user (who does not know COMSOL in any capacitance) from dealing with the ribbon. Judging from VBA code, it should be something along the lines of (I think): ribbon.button_name.execute. Any help is appreciated [/QUOTE] This is a very good question. We are looking into providing such functionality, but it is currently not available. As far as I know there are no workarounds. -- Lars Gregersen Comsol Denmark

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.