How to add a label for a group of buttons in XML file

ZZ.tang
ZZ.tang Member Posts: 23
10 Comments First Anniversary Name Dropper
**

Hello,
How to add below highlighted text label in XML file.

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 303
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    Hi @ZZ.tang do you mean to add these with ACT or PyMechanical or something else? Have you tried anything already and how did that go? What software are you using and which version? I have tagged @AKD-Scripting-Team who might be able to help, but if you can give any more information it will be super helpful for them.

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 353
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    I think the closest you can do is dropdown lists:

    <toolbar name="Piezoelectric And MEMS" caption="Piezoelectric And MEMS">
      <separator/>
      <entry name="Electric BCs" icon="ec">
        <entry name="Electric Charge" icon="ec" userobject="Electric Charge"/>
        <entry name="Surface Charge Density" icon="sc" userobject="Surface Charge Density"/>
        <entry name="Volume Charge Density" icon="vc" userobject="Volume Charge Density"/>
      </entry>
      <separator/>
      <entry name="Thermal BCs" icon="tempr">
        <entry name="Temperature" icon="tempr" userobject="Temperature"/>
        <entry name="Convection" icon="tempr" userobject="Convection"/>
        <entry name="Heat Generation" icon="hgen" userobject="HGeneration"/>
      </entry>
    </toolbar>