If you are talking about CAAV5 / C++ API, then refer to « 3D PLM
Architecture / User Interface » in the C++ API documentation.You will
find many use cases on that (large) subject.
What you probably want to know is how to run your own script macro
from a command in a toolbar.
You can do 90% of the job in the "Tools / Customize" Menu where you can
- Create new workbenches (in the « User Workbenches » Tab)
- Insert or create a toolbar in a workbench (in the « Toolbars » Tab)
- Insert a command in a toolbar (in the « Command » Tab)
You will easily find out how to manage the first 2 steps.
Now, to insert YOUR macro, go into the « Command » Tab, where you have
to choose the « Macro » category. The list of your available macros
should appear.
Select the one and drag and drop it in the Toolbar of your choice.
Note that a macro command has no Icon.
To choose an Icon, click on the « Show Properties » Button, then on
the « ... » Button to access the Icon Browser (where you will select
the icon of your choice)